<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>

CC BY-SA 3.0
2016-05-26T10:37:19.647Z
Craft is compatible with PHP 7 since 2.5 — are you running an older version?
Patrick Harrington
CC BY-SA 3.0
2016-11-25T23:48:21.370Z
We have a site running Craft v2.3.2620 where I ran into this issue and  where this solution worked in resolving it too.
Ben Parizek
CC BY-SA 3.0
2016-05-26T09:21:57.613Z
2016-05-26T09:21:57.613Z
Tom
<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>

CC BY-SA 3.0
2015-06-15T20:17:36.440Z
Sounds like a file is missing/corrupt.  Can you try again with a fresh copy of Craft from http://buildwithcraft.com?
Brad Bell
CC BY-SA 3.0
2015-06-15T20:52:43.920Z
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.
strandall
CC BY-SA 3.0
2015-06-15T22:21:21.800Z
You're following the installation instructions here? http://buildwithcraft.com/docs/installing
Brad Bell
CC BY-SA 3.0
2015-06-16T13:27:59.647Z
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...
strandall
CC BY-SA 3.0
2015-06-16T17:12:59.687Z
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.
strandall
CC BY-SA 3.0
2015-06-16T17:46:47.747Z
Maybe you've got PHP `openbase_dir` restrictions in place?
Brad Bell
CC BY-SA 3.0
2015-06-16T18:01:01.490Z
it's set to {WEBSPACEROOT}/:{TMP}/
strandall
CC BY-SA 3.0
2015-06-16T18:35:17.717Z
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.
Brad Bell
CC BY-SA 3.0
2017-05-09T23:55:00.397Z
Did you ever resolve this issue, @strohrdanz?
Matt Stein
CC BY-SA 3.0
2017-05-16T21:26:04.003Z
@MattStein nope... think i switched hosting. it was awhile ago this happened
strandall
CC BY-SA 3.0
2017-05-16T22:49:17.470Z
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!
Matt Stein
<database><error-message><installation>
Class 'Craft\DbCommand' not found
# 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**: @MattStein 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.  

---

