• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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