Answers.Body: <p>Even thought this is an old thread, I recently ran in to the same problem. It turned out to be a PHP version issue. I was running MAMP with PHP 7.0.0, once I switched that host to 5.6.10 it worked perfectly.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-26T10:37:19.647Z
Answers.Text: Craft is compatible with PHP 7 since 2.5 — are you running an older version?
Answers.UserDisplayName: Patrick Harrington
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-11-25T23:48:21.370Z
Answers.Text: We have a site running Craft v2.3.2620 where I ran into this issue and  where this solution worked in resolving it too.
Answers.UserDisplayName: Ben Parizek
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-26T09:21:57.613Z
Answers.LastActivityDate: 2016-05-26T09:21:57.613Z
Answers.UserDisplayName: Tom
Body: <p>Getting this error in the PHP error log file while trying to install craft. </p>
  
  <p><strong>PHP Fatal error:  Class 'Craft\DbCommand' not found</strong></p>
  
  <p>The file is there, permissions are granted and I've tried reinstalling twice. Any other ideas?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-06-15T20:17:36.440Z
Comments.Text: Sounds like a file is missing/corrupt.  Can you try again with a fresh copy of Craft from http://buildwithcraft.com?
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-06-15T20:52:43.920Z
Comments.Text: Now I'm just getting a flash of a 500 error in the console on refresh, and then nothing. There's no log anymore either, since I completely reinstalled it.
Comments.UserDisplayName: strandall
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-06-15T22:21:21.800Z
Comments.Text: You're following the installation instructions here? http://buildwithcraft.com/docs/installing
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-06-16T13:27:59.647Z
Comments.Text: I am, although I'm putting it in a subfolder since I don't want it to be the main site yet. I've done that before and haven't had any issues...
Comments.UserDisplayName: strandall
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-06-16T17:12:59.687Z
Comments.Text: Now I got "PHP Fatal error:  Class 'Craft\InfoModel' not found" in the php log a twice (but not every time I refresh so I don't think that's the issue anymore. I'm getting "Could not find your craft/ folder. Please ensure that $craftPath is set correctly in .../public/index.php" on the page now. I know the path is correct and the permissions are set to 774.
Comments.UserDisplayName: strandall
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-06-16T17:46:47.747Z
Comments.Text: Maybe you've got PHP `openbase_dir` restrictions in place?
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-06-16T18:01:01.490Z
Comments.Text: it's set to {WEBSPACEROOT}/:{TMP}/
Comments.UserDisplayName: strandall
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-06-16T18:35:17.717Z
Comments.Text: Looks like your host is doing some fancy stuff with dynamic paths in `openbase_dir`. I'd contact them and let them know what you're seeing. 95% chance that's the cause of it.
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-05-09T23:55:00.397Z
Comments.Text: Did you ever resolve this issue, @strohrdanz?
Comments.UserDisplayName: Matt Stein
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-05-16T21:26:04.003Z
Comments.Text: @MattStein nope... think i switched hosting. it was awhile ago this happened
Comments.UserDisplayName: strandall
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-05-16T22:49:17.470Z
Comments.Text: Bummer. I guess there's no perfect ending to this post, then. Thanks for responding @strohrdanz, and sorry you had to switch hosts to avoid the problem!
Comments.UserDisplayName: Matt Stein
Tags: <database><error-message><installation>
Title: Class 'Craft\DbCommand' not found
ThreadText: # Class 'Craft\DbCommand' not found
  
  (Asked by: username_0 on 2015-06-15)
  
  Getting this error in the PHP error log file while trying to install craft.
  
  **PHP Fatal error: Class 'Craft\DbCommand' not found**
  
  The file is there, permissions are granted and I've tried reinstalling twice. Any other ideas?
  
  **Tags:** database, error-message, installation
  
  > **Comments:**
  > **username_1**: Sounds like a file is missing/corrupt.  Can you try again with a fresh copy of Craft from http://buildwithcraft.com?  
  > **username_0**: Now I'm just getting a flash of a 500 error in the console on refresh, and then nothing. There's no log anymore either, since I completely reinstalled it.  
  > **username_1**: You're following the installation instructions here? http://buildwithcraft.com/docs/installing  
  > **username_0**: I am, although I'm putting it in a subfolder since I don't want it to be the main site yet. I've done that before and haven't had any issues...  
  > **username_0**: Now I got "PHP Fatal error:  Class 'Craft\InfoModel' not found" in the php log a twice (but not every time I refresh so I don't think that's the issue anymore. I'm getting "Could not find your craft/ folder. Please ensure that $craftPath is set correctly in .../public/index.php" on the page now. I know the path is correct and the permissions are set to 774.  
  > **username_1**: Maybe you've got PHP `openbase_dir` restrictions in place?  
  > **username_0**: it's set to {WEBSPACEROOT}/:{TMP}/  
  > **username_1**: Looks like your host is doing some fancy stuff with dynamic paths in `openbase_dir`. I'd contact them and let them know what you're seeing. 95% chance that's the cause of it.  
  > **username_2**: Did you ever resolve this issue, @strohrdanz?  
  > **username_0**: @username_2 nope... think i switched hosting. it was awhile ago this happened  
  > **username_2**: Bummer. I guess there's no perfect ending to this post, then. Thanks for responding @strohrdanz, and sorry you had to switch hosts to avoid the problem!  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2016-05-26. Score: 3
  
  Even thought this is an old thread, I recently ran in to the same problem. It turned out to be a PHP version issue. I was running MAMP with PHP 7.0.0, once I switched that host to 5.6.10 it worked perfectly.
  
  > **Comments:**
  > **username_4**: Craft is compatible with PHP 7 since 2.5 — are you running an older version?  
  > **username_5**: We have a site running Craft v2.3.2620 where I ran into this issue and  where this solution worked in resolving it too.  
  
  ---
  
  