• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Question Help with installing pear packages

Ivica

New Pleskian
Hello

Client is getting following error while using his scripts on plesk12.5 with couldlinux.

PHP Warning: include(): Failed opening 'Mail.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php'
PHP Fatal error: Class 'Mail' not found

I managed to fix that error on cloudlinux handler with installing install Net_SMTP

However if we use your plesk handler we can't get it to work properly.
How would I fix that error on this handler for instance.
/opt/plesk/php/7.0/

I did try "/opt/plesk/php/7.0/bin/pear install Net_SMTP" and it installed successfully but the error persists. Am I missing something?



Thank you in advance.
 
Perhaps your client need to either specify the full path to the PEAR Mail package that he has installed (instead of include 'Mail.php';), or include this path in PHP 7.0 php.ini's include_path.
 
Back
Top