• 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.

PHP Warning: mail(Mail.php): failed to open stream

E

edispah

Guest
Hi

Have been using Plesk 7.5.3 for a while now.

Ive got a new server installed a fresh copy of CentOS 4.4 and Plesk 8.1.

Ive moved a customers website across but cant get it to work correctly.

He uses the Pear modules so in his vhost.conf I added a line

<Directory /var/www/vhosts/domain.com/httpdocs>
php_admin_value open_basedir "/var/www/vhosts/domain.com/httpdocs:/tmp:/usr/share/pear"
</Directory>

Ive then ran websrvmng --reconfigure-vhost --vhost-name=domain.com and restarted apache.

Whenever I try to use a Pear module (which is defintly installed in /usr/share/pear) I get

PHP Warning: mail(Mail.php): failed to open stream: No such file or directory in /var/www/vhosts/domain.com/httpdocs/test.php on line 3
PHP Fatal error: main(): Failed opening required 'Mail.php' (include_path='.:') in /var/www/vhosts/domain.com/httpdocs/test.php on line 3

So it seems to be ignoring the open_basedir completly?

I managed to get it working by

1. Switching safe_mode off in the control panel for the domain

2. Editing /etc/php.ini and adding
include_path='.:/usr/share/pear')

Will this cause any problems? I checked the 7.5.3 set-up and I dont have this set in php.ini just the open_basedir - even with safe_mode switched off it ignores the open_basedir directive? any ideals?

Cheers

Paul
 
Back
Top