500 error (nothing in logs?) after Ubuntu upgrade
I started out with Apache not starting and complaining about syntax errors. I managed to google those away. Now Apache starts but I get a 500 error when trying to load my site. Nothing in the error logs that I can find.
I have looked at this
Does anybody have an idea what to try next? Help would be most welcome. Thanks in advance.
8 Replies
If you're using a cPanel set up at all, look for an error_log file in your main WP install path.
If you're not, look under /var/log (or check what the errorlog directive is defined as in your phpinfo()), if you can get a phpinfo() file by itself working inside of your WP install directory but not WP, then it's probably just a PHP issue inside of WP and should be logged to whatever the errorlog directive is, or by default the main apache error_log under like /var/log/apache (or something along those lines, been a while since I've used a basic Apache configuration admittedly)
My initial guess however would be that perhaps you've upgraded into PHP7 and have a plugin or something still using mysql_* (which has since been removed from PHP as of v7), causing a fatal.
You could try turning on debug mode in wp-config as well which may echo any fatal errors out to the browser itself rather than just throw the generic 500 error.
Topic on workaround here:
This line is what I had added to my wpconfig that caused the 500 error after latest updates.
function gzopen($filename , $mode, $use_include_path = 0 ) { return gzopen64($filename, $mode, $use_include_path); }
I don't imagine this was the issue with others, but there it is.
Good luck to everyone!