I migrated my site to a new host that I installed Virtualmin on. When I access index.html via the IP (XX.XXX.XXX.X/index.html) the page loads fine, however when I try loading my main site via index.php I get an Error 500. This also happens with Roundcube, which I installed through Virtualmin.
I checked the access log but nothing there looks out of the ordinary. The Apache error log only has one issue I’m not sure about:
AH02811: script not found or unable to stat: /home/XXXXX/cgi-bin/luci
The PHP error log has a lot of these:
PHP Fatal error: Failed opening required '/home/fanedit/web/XXXXX/public_html/wordfence-waf.php' (include_path='.:/usr/share/php') in Unknown on line 0
PHP Warning: Unknown: Failed to open stream: No such file or directory in Unknown on line 0
Now, I’m unsure where it’s getting that first path since I can’t seem to find it referenced anywhere in a config file.
Since the index.html file is loading but index.php is not, I assume this is a PHP issue. I haven’t installed any PHP mods or anything yet, and this is a pretty vanilla Virtualmin install.
The file does exist, yes. The path used to be /home//web//public_html and that’s where something is looking for the file. The new path with Virtualmin is as you mentioned. I checked the wp-config.php file but can’t find any reference to that file, so I’m not sure what’s calling it. I also have Xenforo installed in a subdirectory and that doesn’t load either, which is why I think there’s something up with PHP. I could be wrong though.
And no, I didn’t install Wordpress through Virtualmin. I just rsynced the old public_html dir over to the new host. All permissions look to be the same.
<?php
// Before removing this file, please verify the PHP ini setting `auto_prepend_file` does not point to this.
if (file_exists(__DIR__.'/wp-content/plugins/wordfence/waf/bootstrap.php')) {
define("WFWAF_LOG_PATH", __DIR__.'/wp-content/wflogs/');
include_once __DIR__.'/wp-content/plugins/wordfence/waf/bootstrap.php';
}
How did you install this? If you used the Virtualmin script to install wordpress it should just work. Also, is that wordfence a plugin? I don’t know WP but someone mentioned adding it for security at one point.