By ruairidhwm
Hi,
I’ve successfully install pear, pear-mail, Net_SMTP, Auth_SASL, and Mail_Mime. I’m also running ServerPilot.
I’m including Mail.php in my script but it generates a fatal error every time. I cannot seem to work out how to include PEAR in my PHP.ini to get it working in my scripts.
All help appreciated!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi, did you use the correct pear command for your version of PHP? On ServerPilot, there will be a different pear command for each PHP version:
pear5.4-sp
pear5.5-sp
If you’re running just pear, then you might have accidentally installed some other PHP which is unrelated to your websites.
Also, it’s similar for the PHP CLI and pecl in case you end up needing those, too:
https://serverpilot.io/community/articles/how-to-use-the-php-cli.html
https://serverpilot.io/community/articles/how-to-install-php-pecl-extensions.html
In general, any PHP-related command will end in “5.X-sp” where “5.X” is the PHP version.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.