How to resolve "service unavailable 503" error message after add new domain?

sumit_megaman

Verified User
Joined
Sep 13, 2013
Messages
22
How to resolve "service unavailable 503" error message after add new domain?

When I want to add new domain under special user in directadmin panel
i get this error message in all of my domain names under this special user
service unavailable 503

And I should do this steps to resolve that

nano /usr/local/directadmin/data/users/*****/httpd.conf

Code:
        <Directory ***/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>

TO

Code:
        <Directory ***/public_html>
                <FilesMatch "\.(inc|php|phtml|phps|php72)$">
                        ProxyErrorOverride on
                </FilesMatch>
        </Directory>
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/home/*****/domains/MYDOMAIN.com/public_html/$1
</VirtualHost>

AND THEN

Code:
service httpd restart

this is realy boring
and when i add new domain or subdomain under special user, all of my domain names under this special user changed

i dont want to change my other domain names condition under noted user

Of course, I changed chmod of this file, but it was not enough

How can i resolve this problem?
 
Last edited:
Hello,

Try and disable PHP support for the specific domain at user level, and then add your directive at admin level using HTTPd customization page.
 
Back
Top