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
- Log into Plesk
- Open Domains > example.com > File Manager > httpdocs > wordfence-waf.php
- Replace
example2.comwithexample.comin the file and save the changes - Open Domains > example.com > File Manager > httpdocs > .user.ini
- Replace
example2.comwithexample.comin the file and save the changes
Comments
Please sign in to leave a comment.