• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

php script cannot get to PEAR

P

pixeline

Guest
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 ?
 
> PHP Version 4.3.8
You should upgrade

You should listen to the warning. Add /usr/share/pear to your open_basedir path.
 
Originally posted by worker
> PHP Version 4.3.8
You should upgrade

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...
You should listen to the warning. Add /usr/share/pear to your open_basedir path.
possible to do it in another way than via shell access ?
 
Your php info shows:
include_path .:/usr/share/pear
What is up with the .: before the /usr/share/pear?
possible to do it in another way than via shell access ?
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
 
Back
Top