CyberPanel Community

PHP mail() not working in Cyberpanel

5 replies
Cr
Craig #6

Have you installed the modules required as they are not pre installed?

Here is the tutorial and see the comments i made in there as i was also installing php mail on ubuntu

Cr
Craig #8

Php mail is not part of the 25 installable extensions within cyberpanel, you have to manually install it following the tutorial in the last post

Mo
Mohammed #10

Hi,

Done following things on ssh

cd /usr/local/lsws/lsphp81/bin

wget Source of ', htmlspecialchars($_GET['viewsource']), '

./lsphp go-pear.phar

/usr/local/lsws/lsphp81/bin/pear install mail mail_mime mail_mimedecode

install ok: channel://pear.php.net/Mail-1.5.0
install ok: channel://pear.php.net/Mail_Mime-1.10.11
install ok: channel://pear.php.net/Mail_mimeDecode-1.5.6

systemctl restart lsws

php restarted from cyberpanel

But only previous 25 extensions still showing in cyberpanel php extensions install section

Thanks

Cr
Craig #11

Thats right, they do not show up as extensions in cyberpanel, you have to create an info.php file to check they have installed, also there is another command you have not run for the install, check the end part of the tutorial just below how to create the info.php

Sign in to reply