• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

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