Set Repository
12345yum update-ycd /etc/yum.repos.dPHP-FPM 5.4
123456789yum install php-fpm php php-devel-y--enablerepo=remiyum install php-mbstring-y--enablerepo=remiyum install php-mcrypt-y--enablerepo=remiyum install php-mbstring-y--enablerepo=remiyum install php-soap-y--enablerepo=remiyum install php-intl-y--enablerepo=remiyum install php-apc-y--enablerepo=remiyum groupinstall"PHP Support"--enablerepo=remi-yPHP-FPM 5.5
123456yum install gd-last --enablerepo=remiyum install php-fpm php php-devel-y--enablerepo=remi-php55yum install php-mbstring php-mcrypt php-soap php-apc-y--enablerepo=remi-php55yum groupinstall"PHP Support"--enablerepo=remi-php55-yPHP-FPM 5.6
12345yum install php-fpm php php-devel-y--enablerepo=remi-php56yum install php-mbstring php-mcrypt php-soap php-apc-y--enablerepo=remi-php56yum install gd-last --enablerepo=remiyum groupinstall"PHP Support"--enablerepo=remi-php56-ySetting PHP-FPM
Change this line12345678910111213vim /etc/php-fpm.d/www.conflisten = /var/run/php5-fpm.socklisten.allowed_clients = 127.0.0.1listen.owner = nginxlisten.group = nginxlisten.mode = 0666user = nginxgroup = nginxservice php-fpm startchown nginx:nginx /var/run/php5-fpm.sockCheck PHP-FPM
12345678ps-ef| grep fpmroot 32211 1 0 18:48 ? 00:00:00 php-fpm: masterprocess(/etc/php-fpm.conf)nginx 32212 32211 0 18:48 ? 00:00:00 php-fpm: pool wwwnginx 32213 32211 0 18:48 ? 00:00:00 php-fpm: pool wwwnginx 32214 32211 0 18:48 ? 00:00:00 php-fpm: pool wwwnginx 32215 32211 0 18:48 ? 00:00:00 php-fpm: pool wwwnginx 32216 32211 0 18:48 ? 00:00:00 php-fpm: pool wwwConclusion
Well, you have done installing php-fpm, but still not complete, in the next tutorial we will connecting it with nginx virtual host, and using some php framework.
Installing php ngnix mysql on VPS using Command Line
Friday, 18 September 2015
Methods To Install PHP-FPM[Fcgi Process Manager] on Linux Centos 6.5 And 6.6
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment