• 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

Plesk 10.4.4 : big pbm with open_basedir restrictions

regisg

Regular Pleskian
Hello,

All my domains hosted in Parallels Plesk Panel are no more accessible by php scripts (like include("/var/www/vhosts/mywebsite.com/config/connect.php") ) ... after update Plesk 10.3 to 10.4.4 !!

It seems that open_basedir restrictions are active again !

I tried again to set :
/usr/local/psa/admin/sbin/httpdmng --reconfigure-all
but i get an error : -bash: httpdmng: command not found
i dont understand because i can see httpdmng in the sbin folder !

What is the problem ?

Thx.
 
Check output of following commands:
# ll /usr/local/psa/admin/sbin/httpdmng
-rwxr-x--- 1 root root 535 Nov 2 18:42 /usr/local/psa/admin/sbin/httpdmng

# rpm -qf /usr/local/psa/admin/sbin/httpdmng
plesk-core-10.13.4-cos5.build1013111102.18
 
Thx for you quick answer.

So :

[root@s15464585 /]# ll /usr/local/psa/admin/sbin/httpdmng
-rwxr-x--- 1 root root 535 Nov 2 13:42 /usr/local/psa/admin/sbin/httpdmng
: OK

[root@s15464585 /]# rpm -qf /usr/local/psa/admin/sbin/httpdmng
plesk-core-10.13.4-cos5.build1013111102.18
: OK
 
/usr/local/psa/admin/sbin/httpdmng --reconfigure-all
Now it's OK ! Sorry i don't understand what happened...

I restarted Apache but unfortunately i have still the same problem with open_basedir retrictions :-(((
All my subdomains are inaccessible by php scripts
like include("/var/www/vhosts/mywebsite.com/config/connect.php")

Somthing has probably changed in the Apache Configuration...
 
It seems there is something wrong with vhost.conf ...

My open_basedir restrictions allways worked with this configuration :

<Directory /var/www/vhosts/domain/subdomain/>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir none
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir none
</IfModule>
</Directory>

Something has changed ?

Thx.
 
Problem resolved with adding a shared path (/var/www/vhosts/mydomain/config/) in the (new...) open_basedir setting in the php settings of my subdomains.

I put the same path in the php.ini (following : http://kb.parallels.com/432)
open_basedir = "/var/www/vhosts/mydomain/config/"
.... but it didn't work !
 
Back
Top