1

I made some changes in a website. The website was initial static and to make some changes I changed the links of the website to .php.

I made the changes and it was working perfectly fine in localhost. I saw no errors and no warnings.

However when I moved it to a live server I saw this problem.

Server error
The website encountered an error while retrieving http://prakashchhetri.com.np/projects/hmaloha/. It may be down for maintenance or configured incorrectly.
Here are some suggestions:
Reload this webpage later.
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

I faced similar problem before but it was due to some syntax error in my PHP scripts (In my previous projects). However in this project, I dont think I have made any errors and If I had made any, the project would not run in my localhost.

I checked the website live in two different servers but still the same problem

prakashchhetri
  • 1,806
  • 4
  • 36
  • 61

2 Answers2

1

Be sure to check both apache and php error logs (if they're separate). You'll find your answer in there.

Alternatively, assuming php is the culprit, you can momentarily enable the following settings in php.ini:

display_errors = On
html_errors = On
error_reporting = E_ALL | E_STRICT

just be sure that you disable these again in the future so that you're not exposing users to potentially sensitive information.

0

make sure the user www-data has permission to read the php script

FvO
  • 72
  • 3
  • 12