I get the following warning in my WP debug log:
[04-Nov-2021 08:20:49 UTC] PHP Warning: file_exists(): open_basedir restriction in effect. File(/var/www/clients/client1/web19/web/wp-content/db.php) is not within the allowed path(s): (/var/www/clients/client1/web19/web:/var/www/clients/client1/web19/private:/var/www/clients/client1/web19/tmp:/var/www/example.com/web:/srv/www/example.com/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/dev/random:/dev/urandom) in /var/www/clients/client1/web19/web/wp-includes/load.php on line 545
[04-Nov-2021 08:20:49 UTC] PHP Stack trace:
[04-Nov-2021 08:20:49 UTC] PHP 1. {main}() /var/www/clients/client1/web19/web/wp-admin/admin-ajax.php:0
[04-Nov-2021 08:20:49 UTC] PHP 2. require_once() /var/www/clients/client1/web19/web/wp-admin/admin-ajax.php:22
[04-Nov-2021 08:20:49 UTC] PHP 3. require_once() /var/www/clients/client1/web19/web/wp-load.php:50
[04-Nov-2021 08:20:49 UTC] PHP 4. require_once() /var/www/clients/client1/web19/web/wp-config.php:129
[04-Nov-2021 08:20:49 UTC] PHP 5. require_wp_db() /var/www/clients/client1/web19/web/wp-settings.php:124
[04-Nov-2021 08:20:49 UTC] PHP 6. file_exists($filename = '/var/www/clients/client1/web19/web/wp-content/db.php') /var/www/clients/client1/web19/web/wp-includes/load.php:545
However, when I check my ISPConfig control panel Domains >> Websites >> Options >> PHP open_basedir: I have:
/var/www/clients/client1/web19/web:/var/www/clients/client1/web19/private:/var/www/clients/client1/web19/tmp:/var/www/example.com/web:/srv/www/example.com/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/dev/random:/dev/urandom
Which clearly shows that /var/www/clients/client1/web19/web/wp-content/db.php
is inside of an allowed directory?
Any have any suggestions on how I should resolve this?
The solution that I have was to restart mysql, which I tried, but the problem persists.