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

php script cannot get to PEAR

Discussion in 'Plesk for Linux - 8.x and Older' started by pixeline, Sep 4, 2005.

  1. pixeline

    pixeline Guest

    0
     
    hello,

    i can't seem to get to PEAR, here is the message i got :

    Warning: dbinit(): open_basedir restriction in effect. File(/usr/share/pear/DB.php) is not within the allowed path(s): (/home/httpd/vhosts/mydomain.be/httpdocs:/tmp) in /home/httpd/vhosts/mydomain.be/httpdocs/_lib/classes/authentication.class.php on line 209

    Warning: dbinit(DB.php): failed to open stream: Operation not permitted in /home/httpd/vhosts/mydomain.be/httpdocs/_lib/classes/authentication.class.php on line 209

    Fatal error: dbinit(): Failed opening required 'DB.php' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/mydomain.be/httpdocs/_lib/classes/authentication.class.php on line 209


    yet, pear is installed and notified in the include_path

    my php info

    can anybody help me ?
     
  2. worker

    worker Guest

    0
     
    > PHP Version 4.3.8
    You should upgrade

    You should listen to the warning. Add /usr/share/pear to your open_basedir path.
     
  3. pixeline

    pixeline Guest

    0
     

    true, but the host manager charges 100 EUR for that. At the rythm of php updates, it would cost 200 EUR per year on average .
    it's just too bad one cannot do it from within plesk !
    but of course in substance, you're right...
    possible to do it in another way than via shell access ?
     
  4. jamesyeeoc

    jamesyeeoc Guest

    0
     
    Your php info shows:
    What is up with the .: before the /usr/share/pear?
    Generally editing the /etc/php.ini (global changes), or the domain's vhost.conf file is done with SSH root access. I've never used the Plesk Domains File Manager myself, but you could try to see if it will allow you to replace an existing vhost.conf file with another.?

    I find it interesting that you don't have the path to /tmp or the domain's docroot included in the open_basedir. I normally put at least the following:

    /home/httpd/vhosts/domain.tld/httpdocs:/tmp:/usr/share/pear
     
Loading...