Answers.Body: <p>So as it turns out Vesta has a funny way of handing httpd config files.
  There was another one tucked away somewhere where "open_basedir"
  They are kept in "/home/admin(username)/conf/web/httpd.conf"</p>
  
  <p>Removing that fixed it.</p>
  
  <p>Such a pain, tooks me hours to figure out something so simple.
  I had already removed it from the httpd.conf in the default location.</p>
  
  <p>Something to keep in mind if anyone has the error and is running VESTA CP!</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-12T17:48:13.843Z
Answers.Text: Glad you got it sorted!
Answers.UserDisplayName: Brad Bell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-12T17:45:12.253Z
Answers.LastActivityDate: 2016-07-12T18:07:19.550Z
Answers.LastEditDate: 2016-07-12T18:07:19.550Z
Answers.UserDisplayName: Kitsune
Body: <p>I previously ran Vesta CP on Ubuntu and wanted to run something a little faster so chose centOS7 minimal. Installed Vesta CP and restored my backup. All my sites are running fine. Except for the ones running Craft CMS.</p>
  <p><strong>I would like to stress that the backup worked perfectly before</strong></p>
  <p>I get the error &quot;Please ensure that $craftPath is set correctly&quot;
  Now I'v been (honestly) trying for the past 6 hours to fix this on my own but I can't figure it out.</p>
  <p>PHP runs as adminBOB (determent using: )
  And checking my chmod the user and group are adminBOB:adminBOB (same as if I make a new folder or upload a new file)</p>
  <p>Apache/httpd runs as &quot;apache:apache&quot; changing the owner of all my files for this site doesn't make the error go away either.</p>
  <p>I'm also my http.conf (and tried php.ini) configured to have:</p>
  <blockquote>
  <p>php_admin_flag safe_mode off</p>
  <p>php_admin_value open_basedir none</p>
  </blockquote>
  <p>So I'm almost certain those two are not on.
  Everything (folder/files) wise is the same. Same control panel (that installs all services)</p>
  <p>I have no idea what to do next to try and get CraftCMS working again.
  Please assist! Thank you!!</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-07-11T20:15:17.483Z
Comments.Text: If I move my /craft/ folder (and adjust the index.php setting) Craft works. But I really want to have it outside of the public_html folder. So it's not a craft specific problem, but something else?
Comments.UserDisplayName: Kitsune
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-07-11T20:23:09.497Z
Comments.Text: By chance do you have something like Suhosin or mod_security installed?
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-07-11T20:29:02.303Z
Comments.Text: Thanks for the fast response. Just checked with phpinfo(); does not show mod_security nor Suhosin.
Comments.UserDisplayName: Kitsune
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-07-11T23:26:03.600Z
Comments.Text: I'm no sysadmin, but what happens if you change PHP to run under the `apache:apache` user and group?
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-07-12T09:37:25.740Z
Comments.Text: No worries. I did try that. "chown -R user:grouphere /home/kitsune/web/" (holds all my websites) where user:grouphere had any possible combination. PHP appears to be running as root (lsof -i | grep :http)
Comments.UserDisplayName: Kitsune
Tags: <install>
Title: Moved server (centOS7) "Please ensure that $craftPath is set correctly"
ThreadText: # Moved server (centOS7) "Please ensure that $craftPath is set correctly"
  
  (Asked by: username_0 on 2016-07-11)
  
  I previously ran Vesta CP on Ubuntu and wanted to run something a little faster so chose centOS7 minimal. Installed Vesta CP and restored my backup. All my sites are running fine. Except for the ones running Craft CMS.
  
  **I would like to stress that the backup worked perfectly before**
  
  I get the error "Please ensure that $craftPath is set correctly"
  Now I'v been (honestly) trying for the past 6 hours to fix this on my own but I can't figure it out.
  
  PHP runs as adminBOB (determent using: )
  And checking my chmod the user and group are adminBOB:adminBOB (same as if I make a new folder or upload a new file)
  
  Apache/httpd runs as "apache:apache" changing the owner of all my files for this site doesn't make the error go away either.
  
  I'm also my http.conf (and tried php.ini) configured to have:
  
  > php\_admin\_flag safe\_mode off
  >
  > php\_admin\_value open\_basedir none
  
  So I'm almost certain those two are not on.
  Everything (folder/files) wise is the same. Same control panel (that installs all services)
  
  I have no idea what to do next to try and get CraftCMS working again.
  Please assist! Thank you!!
  
  **Tags:** install
  
  > **Comments:**
  > **username_0**: If I move my /craft/ folder (and adjust the index.php setting) Craft works. But I really want to have it outside of the public_html folder. So it's not a craft specific problem, but something else?  
  > **username_1**: By chance do you have something like Suhosin or mod_security installed?  
  > **username_0**: Thanks for the fast response. Just checked with phpinfo(); does not show mod_security nor Suhosin.  
  > **username_1**: I'm no sysadmin, but what happens if you change PHP to run under the `apache:apache` user and group?  
  > **username_0**: No worries. I did try that. "chown -R user:grouphere /home/username_0/web/" (holds all my websites) where user:grouphere had any possible combination. PHP appears to be running as root (lsof -i | grep :http)  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2016-07-12. Score: 2 | Accepted answer
  
  So as it turns out Vesta has a funny way of handing httpd config files.
  There was another one tucked away somewhere where "open\_basedir"
  They are kept in "/home/admin(username)/conf/web/httpd.conf"
  
  Removing that fixed it.
  
  Such a pain, tooks me hours to figure out something so simple.
  I had already removed it from the httpd.conf in the default location.
  
  Something to keep in mind if anyone has the error and is running VESTA CP!
  
  > **Comments:**
  > **username_1**: Glad you got it sorted!  
  
  ---
  
  