Install php and fastcgi on CentOS 7

April 26th, 2017 by admin Leave a reply »

This assumes you already installed CentOS 7.

to get fastcgi and php do the following:

yum install epel-release  
yum install openssh-clients rsync net-tools mc iptraf htop nc ifconfig wget
yum install php-xcache httpd php-mbstring php-bcmath php-mysql php-xml php-xmlrpc php-pecl-memcached php-pecl-memcache php  php-cli php-fpm  mod_fcgid

vi /etc/httpd/conf.d/php.conf

# line 5: change like follows

#    SetHandler application/x-httpd-php
    SetHandler "proxy:fcgi://" 

systemctl start php-fpm
systemctl enable php-fpm
systemctl restart httpd
systemctl enable  httpd
if you found this helpful feel free to donate to:
ZEC: t1NQp1UuqQbmnXzazbLTSreS2AbaZpRBuTM
LTC: LZyNF1qkBUA7XFz83m5xwzGgmmj1owQn9d

Leave a Reply

You must be logged in to post a comment.