Very odd error happened tonight. I have a ovh vps with cpanel. Every wordpress site went down tonight but non wordpress sites continued to work fine. The error stated PHP Fatal error: require_once(): Failed opening required '/home/stage/public_html/wp-config.php' (include_path='.:/opt/cpanel/ea-php73/root/usr/share/pear') in /home/stage/public_html/wp-load.php on line 37
After hours of trying to figure out the issue I changed the permission of wp-config file from 600 to 644 and the sites instantly came back up. Not sure if its a coincidence but in my log files was:
141.101.69.30 - - [10/Jun/2021:01:23:39 +0000] "GET /wp-config.php HTTP/1.1" 301 246 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0"
141.101.69.30 - - [10/Jun/2021:01:23:41 +0000] "GET /wp-config.txt HTTP/1.1" 301 246 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0"
141.101.69.30 - - [10/Jun/2021:01:23:46 +0000] "GET /wp-config.original HTTP/1.1" 301 251 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0"
ANy help would be appreciated.
After hours of trying to figure out the issue I changed the permission of wp-config file from 600 to 644 and the sites instantly came back up. Not sure if its a coincidence but in my log files was:
141.101.69.30 - - [10/Jun/2021:01:23:39 +0000] "GET /wp-config.php HTTP/1.1" 301 246 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0"
141.101.69.30 - - [10/Jun/2021:01:23:41 +0000] "GET /wp-config.txt HTTP/1.1" 301 246 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0"
141.101.69.30 - - [10/Jun/2021:01:23:46 +0000] "GET /wp-config.original HTTP/1.1" 301 251 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0"
ANy help would be appreciated.