• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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