i ran following command find out port being occupied php-fpm
netstat -pl | grep fpm (no info read "-p": geteuid()=1000 should root.) unix 2 [ acc ] stream listening 9500 - /var/run/php5-fpm.sock
i have following proxypassmatch in web configuration file
proxypassmatch ^/(.+\.php.*)$ fcgi://127.0.0.1:9500/var/www/html/$1 timeout=1800
i have necessary dependencies installed processing php fpm fastcgi module.
<ifmodule mod_fastcgi.c> addhandler php5-fcgi .php action php5-fcgi /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> options execcgi followsymlinks sethandler fastcgi-script require granted </directory> </ifmodule>
my virtualhost directives in following set:
<virtualhost *:443> servername domain.com serveralias www.domain.com sslengine on ssloptions +fakebasicauth +exportcertdata +strictrequire sslcertificatefile /etc/apache2/ssl/private/ec1ed7d470bd0db4.crt sslcertificatekeyfile /etc/apache2/ssl/private/.key sslcertificatechainfile /etc/apache2/ssl/.crt documentroot /var/www/html/dir # setup php-fpm process php files # proxypassmatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9500/var/www/html/dir/$1 # proxypassmatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/html/$1 proxypassmatch ^/(.+\.php.*)$ fcgi://127.0.0.1:9500/var/www/html/$1 timeout=1800 </virtualhost>
i still following message after restarting apache , php fpm
service unavailable server temporarily unable service request due maintenance downtime or capacity problems
Comments
Post a Comment