Applicable to:
- Plesk for Linux
Symptoms
-
After migrating or renaming a domain, WordPress website is not accessible with 500 error or a white page
-
The following error is shown in domain logs at 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 configuration was not migrated properly.
Resolution
-
Open Domains > example.com > File Manager > httpdocs > wordfence-waf.php
-
Replace
example2.com
withexample.com
in the file and save the changes -
Open Domains > example.com > File Manager > httpdocs > .user.ini
-
Replace
example2.com
withexample.com
in the file and save the changes
Comments
0 comments
Please sign in to leave a comment.