Some PHP pages not displaying on site.

A

Anonymous

Guest
Hello,

I don't know much about PHP but we have a client who has an extensive website using PHP and MySQL. The majority of the website works well, but in some cases the I get an Internal Server Error with, additionally, a 500 Internal Server Error. So, in the process of trying to figure what the problem is, I created a basic php (Hello World) and put it in various spots in the website. In each case, I get the same Internal Server Error. I know there is nothing wrong with the file because if I put the same basic php (Hello World) on our own company's website, it works fine.

Does anybody know why a basic PHP file would not work on a website when most of the other PHP MySQL files work just fine?

PHP version is 5.6
 
Hi,
You should look into logs, there should be an answer.
Place of logs depends of http server, so if you can't find them then you can enable displaying errors on webpage (do not do that on production server!!):
https://www.php.net/manual/en/function.error-reporting.php
You can also install xdebug plugin to see more information in logs, the xdebug plugin allow you to catch any exception and debug the code line by line with posibility to check current value of variables
 
Back
Top