502 error
-
Hi, I have run your script but havent installed anything.
My Default page is a 502 - bad gateway nginx page.
Posted 2 years ago # -
Hi Matthew .. sorry, don't understand .. did you run the script and it simply didn't install anything?
To help, what I really need is your VPS spec and the command line output following script execution.
Posted 2 years ago # -
Hi guv,
I've got a similar error:
502 Bad Gateway
My site works well but I get this error when I'm editing pages or posts in wordpress and there is any syntax error in the code. Requires server reboot every time. Any thoughts on where this comes from and how I can fix it?I've installed wordpress 3.0, with fastCGI on Ubuntu 10.04 (Lucid) x64 as per the step-by-step instructions on your site.
Cheers!
GabePosted 1 year ago # -
Things to check:
*Available RAM - use top and free on the command line.
Uninstall all plugins, try posting.
Unintall theme and try posting.
I've noticed that after a little while, when RAM is tight (ie a month plus without a reboot) the cache can deliver corrupt data if you're using WP-Supercache, delivering a 502 error. Clearing the cache may help, especially if you've got the cache logged in users set.
Posted 1 year ago # -
Thanks for the reply, but none of those suggestions seemed to help. I just launched the site 1 week ago and I have no users yet. I've rebooted about 50 times so far (10 times per day minimum). Are there other possible problems?
Posted 1 year ago # -
I've tried to follow some of the previous posts about 502 errors with no success:
1. Changed FCGI_HOST=localhost to FCGI_HOST=localhost in /etc/default/php-fastcgi
2. Tried to change the memory limit:
sudo nano /home/public_html/mysite.com/public/index.php
ini_set('memory_limit', '256M')
got blank white screen.
3. tried adding FCGI_WEB_SERVER_ADDR="127.0.0.1"
and then getting "Unable to connect" error.
4. Tried to follow the instructions from "How to Recompile PHP (from source) No Downtime" but I couldn't get past the first step because when I navigated to my phpPage.php i got the message: "No input file specified."
Running out of ideas.
Any suggestions?
Posted 1 year ago # -
Meant to say I changed to:
FCGI_HOST=127.0.0.1Posted 1 year ago # -
hey Gabe .. sorry for delay .. there are a bunch of posts here that should assist so have a scan
Posted 1 year ago # -
Dude! I am having the same problem. I ran the sexy kitty LEMP Stack script. I also use the Add wordpress script (which does not edit the wp-config.php btw)one my linode.
This 504 Gateway Time Outissue is killing me. I can not update my sites. I have to hit refresh a million times. These are new sites with zero traffic.
Posted 1 year ago # -
After watching it for a bit I randomly get 502 and 504 errors
Posted 1 year ago # -
Not sure how much RAM you have physically available, but I'm guessing it's possible you may have a resource issue. Check your swap and see if it's excessive.
Another possible is permission issues, particularly with mySQL.
Posted 1 year ago # -
Should add 256 meg set in PHP.ini is a tad excessive...
Posted 1 year ago # -
When I first setup my server it was a lamp server. With Apache I had no issues at all.
I am a complete noob. I can not find my PHP.ini file.
Posted 1 year ago # -
Found the files. I changed the timeout in the nginx.config to 0
So far so good.
Posted 1 year ago # -
Well, as I mentioned in my previous post I've thoroughly read all the other posts about 502 gateway errors and have not yet resolved the problem. Is there some file setting I should post here that would help solve the issue? Thanks again.
Posted 1 year ago # -
when i checked for free ram, here was what i got:
Total: 358
Used: 267
Free: 91
Buffers: 44
Cached: 91Is this too low? Do I need to purchase more RAM or is there a way to free it up. How do I clear the cache?
Posted 1 year ago # -
gabe can you show us your vhost file? The one that's like /usr/local/nginx/sites-available/yourdomain.com
Posted 1 year ago # -
ram looks fine Gabe .. restart php to free up cache:-
/etc/init.d/php-fpm restart
..for PHP-FPM or
/etc/init.d/php-fastcgi restart
.. for regular FastCGIPosted 1 year ago # -
thanks for the reply guys. i think my php install must not have been correct. I tried fast-cgi and was having the problems with 502 gateway errors and then tried to uninstall it and install php-fpm. but i don't know what i have and which one is working because I couldn't find my vhost file and neither of those restart commands worked. When I tried to restart fast-cgi I got this message:
* Restarting php-cgi in external FASTCGI mode php-fastcgi start-stop-daemon: warning: failed to kill 525: No such processWhen I tried to restart php-fpm I got this message:
bash: /etc/init.d/php-fpm: No such file or directory
What do you guys suggest? How do I reinstall php correctly (preferably with php-fpm)?
Posted 1 year ago # -
hey gabe .. to install fpm:-
or recompile:-
*then* to disable regular FastCGI (or any service):-
Speed Up 9.10 by Disabling Services [KARMIC KOALA BIBLE #11] - GUVNR
Posted 1 year ago # -
I had the same issue with the ubuntu script it didn't install php and php-fpm is ran the debian script on a debian server and it worked great.
How I'm trying to php and php-fpm per the guides above but ./configure dosn't work. can you please advise
Posted 1 year ago # -
hey Klein .. "./configure dosn't work"
.. would need an error, what does the terminal say?
Posted 1 year ago #
Reply
You must log in to post.
Want HTML?
a blockquote code em strong ul ol liPlace code between backticks `codeHere`
You've got it.
