sudo apt-get update
sudo apt-get upgrade
sudo apt-get install php5-cli nginx php5-mysql php5-gd php5-fpm mysql-server mysql-client htop mc php5-curl php5-mcrypt apache2 libapache2-mod-fastcgi sendmail
sudo a2enmod actions fastcgi alias rewrite
sudo a2ensite example.com
Apache 2.4
/etc/apache2/mods-enabled/fastcgi.conf
<IfModule mod_fastcgi.c>
AddType application/x-httpd-fastphp5 .php
Action application/x-httpd-fastphp5 /php5-fcgi
Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -socket /var/run/php5-fpm.sock -pass-header Authorization
<Directory /usr/lib/cgi-bin>
Require all granted
</Directory>
</IfModule>
sudo /etc/init.d/apache2 restart
sudo service php5-fpm restart
sudo /etc/init.d/nginx restart
в помощь
https://www.linode.com/docs/websites/apache/running-fastcgi-php-fpm-on-debian-7-with-apache
Комментариев нет :
Отправить комментарий