Kod: Zaznacz cały
(2)No such file or directory: FastCGI: failed to connect to server "/usr/lib/cgi-bin/php5-fcgi_php5.local": connect() failed
FastCGI: incomplete headers (0 bytes) received from server "/usr/lib/cgi-bin/php5-fcgi_php5.local"
/etc/apache2/mods-available/fastcgi.conf
Kod: Zaznacz cały
<IfModule mod_fastcgi.c>
FastCgiIpcDir /var/run/
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>
Allow from all
</Directory>
</IfModule>
Kod: Zaznacz cały
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName php5.local
DocumentRoot /var/www/php5.local
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory "/var/www/php5.local">
DirectoryIndex index.html index.php
</Directory>
<IfModule mod_fastcgi.c>
Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi_php5.local
FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi_php5.local -socket /var/run/php5-fpm_php5.local.sock -pass-header Authorization
<Directory /usr/lib/cgi-bin>
Allow from all
</Directory>
</IfModule>
</VirtualHost>
Kod: Zaznacz cały
[php5.local]
listen = /var/run/php5-fpm_php5.local.sock
listen.allowed_clients = 127.0.0.1