Some sites showing a 403 on PHP pages

Created:

2016-11-16 13:11:58 UTC

Modified:

2017-04-24 11:54:54 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Some sites showing a 403 on PHP pages

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

Some sites were showing a 403 on PHP pages. Attempted the following commands which have meant all sites now display the same things:

/usr/local/psa/admin/bin/httpdmng --reconfigure-all
/usr/local/psa/bootstrapper/pp12.5.30-bootstrapper/bootstrapper.sh repair

Cause

Invalid rewrite rules specified in domain .htaccess file.

Resolution

  • Enable rewrite rules debug in /var/www/vhosts/system/domain.tld/conf/httpd.conf by adding the section below:

    RewriteEngine OnRewriteLog "/var/log/httpd/rewrite.log"RewriteLogLevel 9

  • Restart or reload apache web server.

  • Analyze /var/log/httpd/rewrite.log to find failed rule.

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