I have a website on a shared hosting provider. Since the very beginning my visitors have randomly got several types of errors, including 502 Bad Gateway / nginx
(blank page with the error text). I have contacted the support several times, and in the end they always claim that the error is in my PHP scripts. I see no errors in PHP logs and my code works perfectly on my home servers.
Other types of errors I have seen:
open_basedir restriction in effect. File(A PHP FILE ON MY SITE) is not
within the allowed path(s): (/home/u514320864:/tmp:/var/tmp:/opt/php-5.3/pear) in ...
Firstly, the user u514320864
is not my username. This string doesn't appear anywhere in my code. Randomly my home directory is not within the allowed paths, until I refresh the page and things start working again.
Then I've also seen a blank page with message No input file specified.
That's it, nothing in the error logs.
I have seen the last two errors quite rarely (like a dozen times), but the first one (502) is a pain in the ass. On "bad days" it appears on every 10th page request or so. It always goes back to normal with a page refresh though.
I develop mobile apps, and the 502 error sometimes makes our Android apps nearly unusable (every user action needs some communication between the app and server side).
Is there anything I could do? I have an SSH access to the host server with very limited privileges. I have checked the DNS settings and they seem to be correct.
open_basedir
set to (normally)? – MrWhite Jan 12 '16 at 9:02open_basedir
is set to/home/uXXXXXXXXX:/tmp:/var/tmp:/opt/php-5.5/pear
where uXXXXXXXXX is my correct username. – Aleksiv95 Jan 12 '16 at 10:01