• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

open_basedir error

R

roshank

Guest
Hi All,

I have plesk installed on an RHEL-3 server. The plesk version installed on the server is psa v8.2.0. I have updated the server using up2date. Since then open_basedir is showing errors. Searched for a possible fix and came up with changing the "php_admin_value open_basedir none" in httpd.include and restarting apache. After this it started working fine. But when plesk is restarted the configurations reverted back to default.

Then I made the vhost.conf file under the domain having the problem and entered
"<Directory /var/www/vhosts/domain-name/httpdocs>
php_admin_flag safe_mode off
php_admin_value open_basedir none
</Directory>"

Once again restarted httpd and the domain was working fine. However if I restart plesk or run the command
/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=<domain_name> the changes just vanish and is reset to default.

Could you shed some light in order to solve this issue ASAP.

Thank you, All.

Warm Regards,
Roshan.
 
Like the comments in httpd.include say: don't ever edit httpd.include as changes will be overwritten. You can create a vhost.conf file to override/add vhost-specific settings (see Including Directives into Web Server Configuration File).

The open_basedir setting should be set to /var/www/vhosts/domain-name/httpdocs:/tmp by default. What is it set to when it's not working for you?
 
Hello,

Currently in the httpd.include file it is set as
php_admin_value open_basedir "/home/httpd/vhosts/domain-name/httpdocs:/tmp"

When I restart plesk or httpd the site shows error. So I have to comment the open_basedir line after a restart.

Should I make the vhost.conf exactly as that of the httpd.include ( with all the directives ) with the following entry :-
<Directory /var/www/vhosts/domain-name/httpdocs>
php_admin_flag safe_mode off
php_admin_value open_basedir none
</Directory>
? Or just the above entries only ?

Thanks,

Roshan.
 
Back
Top