• 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
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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