Report this

What is the reason for this report?

502 Bad Gateway nginx/1.4.6 (Ubuntu)

Posted on October 29, 2014

Hi, I am using LEMP server with ubontu. I am new on nginx. I had folled all advice and tutorial and able to run info.php file in my server. check here http://104.131.73.38:8080/info.php But when I had uploaded Joomla 3.2.x on my server its saying 502 Bad Gateway nginx/1.4.6 (Ubuntu) . I am really very confused. I had tried all solution I found by google but did not got success. Here is the error log

upstream sent invalid status "0 Folder does not exist and cannot be created: /home/codemela/www/demo/joomla/zollyness/cache/mod_news_show_sp2/nssp2_thumbs/282" while reading response header from upstream, client: 190.235.316.254, server: , request: "GET /demo/joomla/zollyness/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "104.131.73.38:8080"

Another issue. I had connected my domain and there its running on examplesite.com:8080 but when browsing www.examplesite.com or examplesite.com its comming with a port. Why?

Really I need solution. Any one can help me ? Thanks



This textbox defaults to using Markdown to format your answer.

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

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Not really, but post your Nginx configuration as well. Hard to see what you’re trying to achieve without it.

Are you sure that the user (probably www-data, given that you’re using the default php5-fpm-socket) has write access to those folders?

I’m not sure what you’re asking about in the last question, maybe port_in_redirect is what you’re looking for?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.