Articles in this section

Plesk hosted site shows 500 error or blank page: Operation not permitted in Unknown on line 0

Plesk for Linux kb: technical ext: migrator ABT: Group A

Applicable to:

  • Plesk for Linux

Symptoms

  • WordPress website example.com is not accessible with 500 error or a white page
  • example2.com is mentioned in error message in Domains > example.com > Logs:

    AH01071: Got error 'PHP message: PHP Warning: Unknown: open_basedir restriction in effect. File(/var/www/vhosts/example2.com/httpdocs/wordfence-waf.php) is not within the allowed path(s): (/var/www/vhosts/example.com/:/tmp/) in Unknown on line 0PHP message: PHP Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0PHP message: PHP Fatal error: Unknown: Failed opening required '/var/www/vhosts/example2.com/httpdocs/wordfence-waf.php' (include_path='.:/opt/plesk/php/7.4/share/pear') in Unknown on line 0'

Cause

Wordfence plugin and/or local PHP configuration contains a reference to example2.com (could remain after migration, for example).

Resolution

  1. Log into Plesk
  2. Open Domains > example.com > File Manager > httpdocs > wordfence-waf.php
  3. Replace example2.com with example.comin the file and save the changes
  4. Open Domains > example.com > File Manager > httpdocs > .user.ini
  5. Replace example2.com with example.comin the file and save the changes
Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.