首页 后院 哥学社 CNFLEX组织

PHP-FPM配置sendmail支持PHP发信

当下常用的环境CentOS+nginx+php-fpm+mysql.

之前五四陈科学院曾有一文章是介绍环境的配置的,挖一挖水,链接在这里:

wordpress nginx php-cgi mysql在128m内存下的vps安装和优化手记[原创]

如果要使用mail功能,需要按如下步骤操作:

第一步、安装sendmail

yum install sendmail

第二步、启动sendmail

service sendmail start

第三步、设置为auto start

chkconfig sendmail on

第四步、修改php-fpm.conf:

搜索sendmail,去掉那一行两头的注释如下:

<value name=”sendmail_path”>/usr/sbin/sendmail -t -i</value>

第五步、php-fpm reload


原创文章如转载,请注明:转载自五四陈科学院[http://www.54chen.com]
本文链接: http://www.54chen.com/php-tech/php-fpm-configuration-sendmail.html

相关阅读:

分类: linux, php   Tags: , ,

[五四陈科学院出品]

网友评论:

    没有评论

    (Required)
    (Required, will not be published)

推广信息

返回顶部