$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>php - wordpress returns http error 500 on a fresh install|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

php - wordpress returns http error 500 on a fresh install

matteradmin10PV0评论

I have centos7 machine running MariaDB and phpMyAdmin running properly. I set wordpress for testing running on this machine some months ago and everything was running fine, I finished my test and left the server running for other purposes. Today I needed to access the wordpress sandbox on that server again, but I couldn't. I get the http 500 error I mentioned. I extracted a new wordpress folder in /var/www/html with the same result. I confirmed that the database was running fine, and that the apache server is running properly, but I still get the http 500 error. I also tried to enable debug mode in wp-config.php and I don't get any errors there as well.

Where else can I check for errors?

edit:

Here are the error messages in my /var/log/httpd/error_log

[Mon Mar 11 15:59:14.482983 2019] [:error] [pid 21485] [client 10.0.0.140:49559] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Mon Mar 11 15:59:14.483029 2019] [:error] [pid 21485] [client 10.0.0.140:49559] PHP Fatal error:  Unknown: Failed opening required '/var/www/html/wordpress/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0
Post a comment

comment list (0)

  1. No comments so far