HTTP Error 404 when accessing php page

Created:

2016-12-12 03:43:45 UTC

Modified:

2017-08-08 13:34:04 UTC

0

Was this article helpful?


Have more questions?

Submit a request

HTTP Error 404 when accessing php page

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

  1. Request to dynamic files like *.php returns HTTP 404 error.

  2. There is no information about the error in the /var/www/vhosts/system/example.com/logs/error_log file.

Cause

Mappings are incorrectly set in Apache configuration. That is why when Apache tries to serve dynamic files, it scan default server directory instead of website's one.

Resolution

Reconfigure website in order to restore apache mapping configuration. For Plesk 12.5 it can be done with the following command:

    # plesk repair web example.com

For other Plesk versions, please read KB #213384069 article

Have more questions? Submit a request
Please sign in to leave a comment.