Moved server (centOS7) "Please ensure that $craftPath is set correctly" 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 &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.
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 &quot;apache:apache&quot; 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!!
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!