502 Error After Stackscript Install
-
Hey,
I am a new subscriber here and I really like your work! Thanks for putting this together... Ok here's my problem:
I have a VPS with 1GB ram and 50GB hdd virtualized with OpenVZ. I have Debian 5 installed and I used your 10 minute stackscript and successfully installed it.
However, php is returning 502 errors! After installing the stackscript, I immediately typed my website address and there was the 502 error. Then, I created a test .htm file and uploaded to the root dir and it works-I can see the content. This means that the problem is with php. I created an info.php file but it returned the 502 error as well.
I tried to reduce xcache size in php.ini but the problem didn't go away!
Anything I can do?
Thanks,
JoshPosted 1 year ago # -
Here's my error log contents:
2010/08/26 02:47:40 [error] 3392#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 41.212.141.210, server: mydomain.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "mydomain.com"
2010/08/26 02:47:40 [error] 3392#0: *1 open() "/home/myusername/public_html/mydomain.com/public/favicon.ico" failed (2: No such file or directory), client: 41.212.141.210, server: mydomain.com, request: "GET /favicon.ico HTTP/1.1", host: "mydomain.com"
2010/08/26 02:47:43 [error] 3392#0: *1 open() "/home/myusername/public_html/mydomain.com/public/favicon.ico" failed (2: No such file or directory), client: 41.212.141.210, server: mydomain.com, request: "GET /favicon.ico HTTP/1.1", host: "mydomain.com"
2010/08/26 02:47:51 [error] 3392#0: *3 open() "/home/myusername/public_html/mydomain.com/public/robots.txt" failed (2: No such file or directory), client: 207.241.227.81, server: mydomain.com, request: "GET /robots.txt HTTP/1.1", host: "mydomain.com"
2010/08/26 02:49:38 [error] 3392#0: *5 connect() failed (111: Connection refused) while connecting to upstream, client: 41.212.141.210, server: mydomain.com, request: "GET /info.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "mydomain.com"
2010/08/26 03:01:31 [error] 25702#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 41.212.141.210, server: mydomain.com, request: "GET /info.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "mydomain.com"
2010/08/26 03:02:07 [error] 25702#0: *3 open() "/home/myusername/public_html/mydomain.com/public/favicon.ico" failed (2: No such file or directory), client: 41.212.141.210, server: mydomain.com, request: "GET /favicon.ico HTTP/1.1", host: "mydomain.com"
2010/08/26 03:02:11 [error] 25702#0: *3 connect() failed (111: Connection refused) while connecting to upstream, client: 41.212.141.210, server: mydomain.com, request: "GET /info.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "mydomain.com"
2010/08/26 03:11:12 [error] 9617#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 41.212.141.210, server: mydomain.com, request: "GET /info.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "mydomain.com"
2010/08/26 03:11:13 [error] 9617#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 41.212.141.210, server: mydomain.com, request: "GET /info.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "mydomain.com"
2010/08/26 03:11:14 [error] 9617#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 41.212.141.210, server: mydomain.com, request: "GET /info.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "mydomain.com"
2010/08/26 03:11:52 [error] 9617#0: *5 connect() failed (111: Connection refused) while connecting to upstream, client: 41.212.141.210, server: mydomain.com, request: "GET /info.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "mydomain.com"
2010/08/26 03:14:35 [error] 9617#0: *10 open() "/home/myusername/public_html/mydomain.com/public/phpmyadmin" failed (2: No such file or directory), client: 41.212.141.210, server: mydomain.com, request: "GET /phpmyadmin HTTP/1.1", host: "mydomain.com"
2010/08/26 03:19:08 [error] 9617#0: *12 open() "/home/myusername/public_html/mydomain.com/public/7s7/article/pagedList.do" failed (2: No such file or directory), client: 208.69.40.100, server: mydomain.com, request: "GET /7s7/article/pagedList.do?language=fr&navigationItemId=1505&navigation=&nodeId=203222&nodeTitle=Congo-Kinshasa HTTP/1.1", host: "mydomain.com", referrer: "http://www.mydomain.com/7s7/article/pagedList.do?language=fr&navigationItemId=1505&navigation=&nodeId=203222&nodeTitle=Congo-Kinshasa"
2010/08/26 03:22:33 [error] 9617#0: *13 open() "/home/myusername/public_html/mydomain.com/public/robots.txt" failed (2: No such file or directory), client: 207.46.13.100, server: mydomain.com, request: "GET /robots.txt HTTP/1.1", host: "mydomain.com"
2010/08/26 03:25:38 [error] 9617#0: *15 open() "/home/myusername/public_html/mydomain.com/public/robots.txt" failed (2: No such file or directory), client: 67.195.112.45, server: mydomain.com, request: "GET /robots.txt HTTP/1.0", host: "mydomain.com"
2010/08/26 03:25:40 [error] 9617#0: *17 open() "/home/myusername/public_html/mydomain.com/public/robots.txt" failed (2: No such file or directory), client: 67.195.112.167, server: mydomain.com, request: "GET /robots.txt HTTP/1.0", host: "mydomain.com"Posted 1 year ago # -
I wiped out everything and installed everything manually! Everything working fine now! :)
Posted 1 year ago # -
Hi Josh
Welcome - it is a cool site :) I've got right into running my own VPS because of it.
Anyway, glad you got it sorted - looking at the error log, did you edit in all your details - as these look like the default:
"myusername/public_html/mydomain.com"
Unless you own mydomain.com and choose myusername! :P
Ben.
Posted 1 year ago # -
lol, of course I edited them :p
Posted 1 year ago # -
Hmm.. now I'm getting slightly worried, since this seems to have persisted quite some time and no update to the main script...
Joash, what do you mean by "installed everything manually"? I'd love to get this working...
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.
