• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

How I can enable PEAR in PHP ??

B

BillieGDJoe

Guest
Hi folks,




My customers need to use PEAR framework which by default is installed in /usr/share/pear. My problem is how to tell to PHP to allow access to that directory (open_basedir) if I can't change http.include file inside domain configuration directory. Also tried vhost.conf file, but now works too. Thanks in advice.
 
Hi

can you post the solution please, i have the same problem i think?

Warning: main() [function.main]: open_basedir restriction in effect. File(/usr/share/pear/post.php) is not within the allowed path(s): (/var/www/vhosts/marco-schultewolter.de/subdomains/blog/httpdocs:/tmp) in /var/www/vhosts/marco-schultewolter.de/subdomains/blog/httpdocs/wp-content/themes/fasttrack/category.php on line 28

and i create a vhost.conf with the following content but error still exists
<Directory "/var/www/vhosts/marco-schultewolter.de/subdomains/blog/httpdocs">
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir "/var/www/vhosts/marco-schultewolter.de/subdomains/blog/httpdocs:/tmp:/usr/share/pear/post.php"
</IfModule>

THX
ACID25
 
Use the PEAR directory /usr/share/pear in your open_basedir path instead of the /usr/share/pear/post.php file. Don't forget to run websrvmng and reload apache after creating your vhost.conf.
 
Looking at the error it seems that /usr/share/pear has not been added to the open_basedir path.
 
Back
Top