Fedora 24
Sponsored Link

PHP + PHP-FPM
2016/06/26
 
Install PHP-FPM to make PHP scripts be fast.
[1]
[2] Install PHP-FPM.
[root@www ~]#
dnf -y install php-fpm
[3] Configure Apache httpd.
[root@www ~]#
mv /etc/httpd/conf.modules.d/10-php.conf /etc/httpd/conf.modules.d/10-php.conf.org

[root@www ~]#
systemctl start php-fpm

[root@www ~]#
systemctl enable php-fpm

[root@www ~]#
systemctl restart httpd

[4] Create phpinfo and access to it, then it's OK if "FPM/FastCGI" is displayed.
[root@www ~]#
echo '<?php phpinfo(); ?>' > /var/www/html/info.php

Matched Content
 
Tweet