0

I have 503 Service Unavailable problem log review is:

[proxy:error] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /usr/local/php72/sockets/admin.sock (*) failed [proxy_fcgi:error] AH01079: failed to make connect ion to backend: httpd-UDS 

But the problem is here! I don't have admin.sock file basically and my www.conf file is:

listen = 127.0.0.1:9000 

How can I resolve this problem? Another details :

httpd -v Server version: Apache/2.4.37 (Unix) Server built: Dec 8 2018 14:57:21 

Apache configuration:

 ServerRoot "/etc/httpd" Listen 80 <IfModule unixd_module> User apache Group apache </IfModule> Include /etc/httpd/conf/extra/httpd-phpmodules.conf ServerAdmin admin@localhost DocumentRoot "/var/www/html" <IfModule dir_module> DirectoryIndex index.html index.htm index.shtml index.php index.php5 index.php4 index.php3 index.phtml index.cgi index.pl </IfModule> <Files ".ht*"> Require all denied </Files> <Files ".user.ini"> Require all denied </Files> ErrorLog /var/log/httpd/error_log LogLevel warn <IfModule log_config_module> #replace %b with %O for more accurate logging <IfModule mod_logio.c> LogFormat "%a %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%a %l %u %t \"%r\" %>s %O" common LogFormat "%O %I" bytes LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio </IfModule> CustomLog /var/log/httpd/access_log common </IfModule> <IfModule alias_module> Include conf/extra/httpd-alias.conf </IfModule> <IfModule mime_module> TypesConfig conf/mime.types AddType application/x-gzip .tgz AddEncoding x-compress .Z AddEncoding x-gzip .gz .tgz AddType application/x-compress .Z AddType application/x-gzip .gz .tgz AddHandler cgi-script .cgi AddHandler type-map var AddType text/html .shtml AddOutputFilter INCLUDES .shtml AddType video/x-ms-asf .avi AddType video/mpeg .mpg AddType video/mpeg .mpeg AddType video/quicktime .mov AddType video/x-ms-wmv .wmv </IfModule> Include conf/extra/httpd-includes.conf Include conf/extra/httpd-directories.conf Include conf/extra/httpd-nginx.conf Include conf/extra/httpd-mpm.conf Include conf/extra/httpd-multilang-errordoc.conf Include conf/extra/httpd-autoindex.conf Include conf/extra/httpd-languages.conf Include conf/extra/httpd-info.conf Include conf/extra/httpd-suphp.conf Include conf/extra/httpd-dav.conf Include conf/extra/httpd-default.conf Include conf/extra/httpd-ssl.conf Include conf/extra/httpd-deflate.conf Include conf/extra/httpd-php-handlers.conf Include conf/extra/httpd-vhosts.conf Include conf/extra/directadmin-vhosts.conf <IfModule ssl_module> SSLRandomSeed startup builtin SSLRandomSeed connect builtin </IfModule> 

Apache Virtual Host Setting:

<Directory "/home/admin/public_html"> <FilesMatch "\.(inc|php|phtml|phps|php72)$"> AddHandler "proxy:unix:/usr/local/php72/sockets/admin.sock|fcgi://localhost" .inc .php .phtml .php72 </FilesMatch> <IfModule mod_fcgid.c> SuexecUserGroup admin admin </IfModule> </Directory> <VirtualHost *:80 > ServerName www.test.com ServerAlias www.test.com test.com ServerAdmin [email protected] DocumentRoot /home/admin/domains/test.com/public_html ScriptAlias /cgi-bin/ /home/admin/domains/test.com/public_html/cgi-bin/ UseCanonicalName OFF <IfModule !mod_ruid2.c> SuexecUserGroup admin admin </IfModule> CustomLog /var/log/httpd/domains/test.com.bytes bytes CustomLog /var/log/httpd/domains/test.com.log combined ErrorLog /var/log/httpd/domains/test.com.error.log <Directory /home/admin/domains/test.com/public_html> <FilesMatch "\.(inc|php|phtml|phps|php72)$"> ProxyErrorOverride on AddHandler "proxy:unix:/usr/local/php72/sockets/admin.sock|fcgi://localhost" .inc .php .phtml .php72 </FilesMatch> </Directory> </VirtualHost> 
7
  • Where did this configuration come from, then? Who created it? What is the configuration? Commented Jan 5, 2019 at 1:00
  • @Michael Hampton I do that, Which configuration you need to know? Commented Jan 5, 2019 at 11:43
  • The Apache configuration, of course. Commented Jan 5, 2019 at 13:05
  • I edited my post with to add apache configuration Commented Jan 5, 2019 at 13:36
  • How about the relevant bits, such as your virtual host configuration? Commented Jan 5, 2019 at 13:44

1 Answer 1

0

I found that I changed my php-fpm handler and I used 127.0.0.1 instead of it. like nginx Setting apache need to change php-fpm handler for any Domain within virtual Domain setting, thanks from Michael Hampton to help me to find this problem

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.