Replies: 0
Hi all
I have an AWS EC2 instance, which I use for a WordPress site. It’s been running for a month or so just fine.
I’m very new at this – this is my first experience with AWS. Have been struggling for a few days so decided to ask for help.
I cannot access the site at all, am getting “Error establishing a database connection”. It started the same time as I installed SSL but I was told (on the Certbot forums) that it’s unlikely to be related?
When I type https://mydomain (using https instead of http) into the browser I get:
This site can’t be reached
mydomain refused to connect.
ERR_CONNECTION_REFUSED
Yesterday I updated Apache (from 2.2.31 to 2.4.25) and PHP (from 5.3.29 to 5.6.29) and reinstalled WordPress but that didn’t help.
I’ve checked file permissions, .htaccess, wp-config. I’ve disabled installed themes and plugins.
One of the things I did while installing SSL was I changed the hostname from the IP to the domain name. Not sure if that’s a problem.
Error log after Apache/PHP updates reads (repeatedly):
(Thu Feb 16 14:22:50.729088 2017) (mpm_prefork:notice) (pid 9948) AH00169: caught SIGTERM, shutting down
(Thu Feb 16 14:22:50.954636 2017) (suexec:notice) (pid 10078) AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
(Thu Feb 16 14:22:50.976659 2017) (auth_digest:notice) (pid 10079) AH01757: generating secret for digest authentication …
(Thu Feb 16 14:22:50.977227 2017) (lbmethod_heartbeat:notice) (pid 10079) AH02282: No slotmem from mod_heartmonitor
(Thu Feb 16 14:22:50.994155 2017) (mpm_prefork:notice) (pid 10079) AH00163: Apache/2.4.25 (Amazon) PHP/5.6.29 configured — resuming normal operations
(Thu Feb 16 14:22:50.994171 2017) (core:notice) (pid 10079) AH00094: Command line: ‘/usr/sbin/httpd’
Error log before updates read (repeatedly):
(Wed Feb 15 15:00:54 2017) (notice) caught SIGTERM, shutting down
(Wed Feb 15 15:00:54 2017) (notice) suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
(Wed Feb 15 15:00:54 2017) (notice) Digest: generating secret for digest authentication …
(Wed Feb 15 15:00:54 2017) (notice) Digest: done
(Wed Feb 15 15:00:54 2017) (notice) Apache/2.2.31 (Unix) DAV/2 PHP/5.3.29 mod_ssl/2.2.31 OpenSSL/1.0.1k-fips configured — resuming normal operations
Before updates I was also occasionally getting these messages interspersed:
zend_mm_heap corrupted
(Wed Feb 08 19:38:50 2017) (error) (12)Cannot allocate memory: fork: Unable to fork new process
(Wed Feb 08 19:38:54 2017) (error) (client 191.96.249.70) WordPress database error Lost connection to MySQL server during query for query SELECT wp_posts.* FROM wp_posts WHERE 1=1 AND ( \n ( YEAR( wp_posts.post_date ) = 2017 AND MONTH( wp_posts.post_date ) = 1 AND DAYOFMONTH( wp_posts.post_date ) = 27 )\n) AND wp_posts.post_name = ‘drink-me’ AND wp_posts.post_type = ‘post’ ORDER BY wp_posts.post_date DESC made by wp_xmlrpc_server->serve_request, IXR_Server->IXR_Server, IXR_Server->__construct, IXR_Server->serve, IXR_Server->call, wp_xmlrpc_server->pingback_ping, url_to_postid, WP_Query->__construct, WP_Query->query, WP_Query->get_posts
Could anyone point me in the right direction?
Thank you.