502 Bad Gateway nginx_apache

Rezaa

Verified User
Joined
Dec 15, 2010
Messages
75
Hey guys,
I installed nginx + php-fpm on a CentOS server and also installed APC on PHP-FPM.
Now my customer wants to use nginx_apache instead of nginx+php-fpm
I first switched from php-fpm to fastcgi using the following commands
Code:
./build set php1_mode fastcgi
./build set mod_ruid2 no
./build set use_hostname_for_alias yes
./build php n
./build rewrite_confs

and then installed nginx_apache zEitEr's way

Now I'm facing 502 Bad Gateway on all static and non-static pages.
Am I missing something?
Any help would be greatly appreciated

Update: I'm using custombuild2 + DA 1.50.1
 
Last edited:
Solved the issue.
Reinstalled Apache and then installed nginx_apache again but this time with mod_php (I'm not sure if it makes any difference). that's it !
Code:
cd /usr/local/directadmin/custombuild
./build update
./build update_da
./build set webserver apache
./build apache
./build rewrite_confs

./build set webserver nginx_apache
./build nginx_apache
./build rewrite_confs
 
Last edited:
Hello,

When you change PHP mode in certain cases you might need to rebuild Apache. If you want you could try to reproduce the issue and update with results. If the issue repeats then it could be investigated.
 
Back
Top