• 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!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

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