Last update at :2024-07-01,Edit by888u
LNMP is also a commonly used one-click website environment package in Linux VPS hosts. Its various security and applicability are quite good. Sometimes after the default installation, users mention that the email reminder functions such as on-site comments and registration are not working. Snail has previously shared in the article "Solution to the problem of sendmail not being able to send emails" that the method of reinstalling the sendmail component could be solved at that time, but some friends still said that it could not be solved.
Here, Snail reinstalls the LNMP environment on a test machine, and then refers to some online tutorials to determine whether to continue using the SENDMAIL component to complete and debug the installation. After installing the WORDPRESS program, you can receive email reminders (such as using comments, Retrieve password, etc.).
First, reinstall the sendmail component
Before reinstalling, it is best to clear the sendmail component (yum -y remove sendmail), in case it was installed before.
yum -y install sendmail
The above command reinstalls the sendmail component based on centos. If it is a debian system, it is apt-get.
Second, restart the php-fpm process
/etc/init.d/php-fpm restart
Third, start sendmail
/etc/init.d/sendmail start
You need to wait for a while when starting. Don't think that it is stuck. In fact, it requires us to wait and don't be so anxious.
Fourth, check whether sendmail is running
/etc/init.d/sendmail status
It is detected that it is running, but make sure it is fully compatible and then perform the following steps.
Fifth, modify the php.ini document
Edit the /usr/local/php/etc/php.ini document, find the sendmail_path line, and set it to:
sendmail_path = /usr/sbin/sendmail -t -i
Finally, restart php-fpm
/etc/init.d/php-fpm restart
In this way, complete sendmail can be implemented, such as password retrieval, registration reminder, etc. If you need a comment reminder, for example, some WordPress themes require support for components and functions, and not all themes are supported.
Recommended site searches: Hong Kong IP, local IP query, shopex virtual host, large bandwidth server rental, French proxy server, godaddy space, free virtual host, icp filing query network, Jiangsu high defense server, how to rent a server, < /p>
发表评论