502 Bad Gateway nginx/1.1.19 Joomla 3.x

November 8, 2013 21.7k views
Hi there Anybody know how to get Joomla running properly on NGINX and Ubuntu setup. I followed the instructions on digital ocean somewhere to get mysql, phpmyadmin, php etc. up and running via command line All of that looks fine, but when I try to log into Joomla front or backend, I get this page: 502 Bad Gateway

502 Bad Gateway


nginx/1.1.19
2 comments
2 Answers
What's the output of:
sudo service nginx status
I guess this a Nginx related configuration issue. you can solve this by adding two lines into configuration file.

edit Nginx configuration file /etc/nginx/nginx.conf :

> nano /etc/nginx/nginx.conf

add two lines below:

http {
...
fastcgi_buffers 8 16k;
fastcgi_buffer_size 32k;
...
}
save the file and restart the service:

>service nginx restart

this should solve your problem.
Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!