500 & 5xx server errors after upgrading to PHP 7

Hi all,

Im using Apache and PHP, then I upgraded from PHP 5.7 or sth to PHP 7. After that Google Webmaster/Console screen reported the site had lots of 500 server errors. Then I fixed it with modifying hosts file and httpd.conf, now the console screen didnt show any error.

Webmaster still reporting lots of increasing 5xx errors, and yesterday server was restarted dozen times like the following log file. Then I didn’t know how to fix. Then it’s ok again though i didnt do anything. But the server errors seem still existed. What should i do now?

Thank you,


[Sun Apr 10 03:13:27 2016] [notice] Graceful restart requested, doing restart
httpd: apr_sockaddr_info_get() failed for EE.Jan8
httpd: Could not reliably determine the server's fully qualified domain name, using for ServerName
[Sun Apr 10 03:13:27 2016] [warn] NameVirtualHost has no VirtualHosts


[Sun Apr 17 01:43:27 2016] [error] [client ::1] script '/var/www/html/wp-cron.php' not found or unable to stat
[Sun Apr 17 01:44:13 2016] [notice] caught SIGTERM, shutting down
[Sun Apr 17 01:44:13 2016] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Apr 17 01:44:13 2016] [notice] Digest: generating secret for digest authentication ...
[Sun Apr 17 01:44:13 2016] [notice] Digest: done
[Sun Apr 17 01:44:13 2016] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/7.0.5 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips SVN/1.6.11 configured -- resuming normal operations

MY HOST FILE   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

You have some certain errors like file not found (or not enough file permissions to access the file), but main question is - do you really need to upgrade to php7? Probably the best option for you will be to rollback to php5.7 and resume normal operation