• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

server not reading vhost.conf?

michaellunsford

Regular Pleskian
I've created a vhost.conf file inside the /home/httpd/vhosts/domain.com/conf directory to add a specific directory open_basedir line. Problem is, no matter what I do with the basedir line, I get the same error in PHP.

open_basedir restriction in effect. File is not within the allowed path(s): (/home/httpd/vhosts/domain.com/httpdocs:/tmp)

for fun, I even deleted the /tmp from the open_basedir line, yet it still appears in the error.

To answer your first question, here is the current vhost.conf file:
Code:
<Directory /home/httpd/vhosts/domain.com/httpdocs>
php_admin_flag engine on
php_admin_value open_basedir /home/httpd/vhosts/domain.com/httpdocs/:/usr/local/images/:
</Directory>

also, I have restarted apache from the plesk control panel (there is no file called my_apci_rst in the /usr/local/psa/admin/bin/ directory).

Help!
 
php_admin_value open_basedir none

Try this instead and restart apache....
 
This will either clear something up or add to the confusion. I just changed my basedir restriction on another domain and restarted apache. phpinfo() reflects the change.

copied the vhost.conf file from the known good domain to the problem domain. Changed the <directory tag to reflect the correct directory, and modified the basedir to also include the right stuff. phpinfo() still reflects the generic /domain/ directory AND /tmp/ even though, temp has been removed. It is still not showing the /usr/local/image folder I added.

Is there a file somewhere that could be overriding the vhost.conf file, or a setting in plesk that is not allowing it to be read?
 
Back
Top