1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Plesk 10.4.4 : big pbm with open_basedir restrictions

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by regisg, Dec 21, 2011.

  1. regisg

    regisg Regular Pleskian

    24
    90%
    Joined:
    Jan 19, 2010
    Messages:
    114
    Likes Received:
    1
    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.
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,576
    Likes Received:
    1,244
    Location:
    Novosibirsk, Russia
    Check output of following commands:
     
  3. regisg

    regisg Regular Pleskian

    24
    90%
    Joined:
    Jan 19, 2010
    Messages:
    114
    Likes Received:
    1
    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
     
  4. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,576
    Likes Received:
    1,244
    Location:
    Novosibirsk, Russia
    Hmm... No problem for me:

     
  5. regisg

    regisg Regular Pleskian

    24
    90%
    Joined:
    Jan 19, 2010
    Messages:
    114
    Likes Received:
    1
    /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...
     
  6. regisg

    regisg Regular Pleskian

    24
    90%
    Joined:
    Jan 19, 2010
    Messages:
    114
    Likes Received:
    1
    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.
     
  7. regisg

    regisg Regular Pleskian

    24
    90%
    Joined:
    Jan 19, 2010
    Messages:
    114
    Likes Received:
    1
    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 !
     
Loading...