• 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.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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