I have installed a WordPress site in AWS EC2 t3.micro on platform Linux/UNIX. The ec2 instance stops responding every few hours. That means if I try to call the website from the browser I get "This site can't be reached" message. The site starts to work again if I reboot the instance from the ec2 console. The inbound rules for HTTP and HTTPS set to 0.0.0.0/0. There is a number of website visitors. There is 4.2G available space on the EC2 instance. The latest error log entries are:
[Tue Jul 12 09:01:50.142638 2022] [mpm_prefork:notice] [pid 566] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Tue Jul 12 09:01:50.142711 2022] [core:notice] [pid 566] AH00094: Command line: '/usr/sbin/apache2'
[Tue Jul 12 10:23:11.216290 2022] [php:warn] [pid 1077] [client X.X.X.X:57861] PHP Warning: Undefined array key "referrer" in /var/www/html/wp-content/plugins/elementor-pro/modules/forms/classes/form-record.php on line 179, referer: https://SITE-NAME-REMOVED/contact-us/
[Tue Jul 12 10:23:11.217667 2022] [php:warn] [pid 1077] [client X.X.X.X:57861] PHP Warning: Undefined array key "referrer" in /var/www/html/wp-content/plugins/elementor-pro/modules/forms/classes/form-record.php on line 179, referer: https://SITE-NAME-REMOVED/contact-us/
sh: 1: /usr/sbin/sendmail: not found
[Mon Jul 11 00:00:01.527769 2022] [mpm_prefork:notice] [pid 570] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Mon Jul 11 00:00:01.527800 2022] [core:notice] [pid 570] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jul 11 13:44:17.339898 2022] [mpm_prefork:notice] [pid 577] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Mon Jul 11 13:44:17.347833 2022] [core:notice] [pid 577] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jul 11 13:44:26.721451 2022] [php:warn] [pid 727] [client x.X.x.x:35130] PHP Warning: Undefined array key "referrer" in /var/www/html/wp-content/plugins/elementor-pro/modules/forms/classes/form-record.php on line 179, referer: https://SITE-NAME-REMOVED/contact-us/
[Mon Jul 11 13:44:26.722285 2022] [php:warn] [pid 727] [client x.x.x.x:35130] PHP Warning: Undefined array key "referrer" in /var/www/html/wp-content/plugins/elementor-pro/modules/forms/classes/form-record.php on line 179, referer: https://SITE-NAME-REMOVED/contact-us/
sh: 1: /usr/sbin/sendmail: not found
[Mon Jul 11 14:37:11.427820 2022] [mpm_prefork:notice] [pid 577] AH00169: caught SIGTERM, shutting down
[Mon Jul 11 17:32:49.756249 2022] [mpm_prefork:notice] [pid 600] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Mon Jul 11 17:32:49.756835 2022] [core:notice] [pid 600] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jul 11 20:15:40.358852 2022] [mpm_prefork:notice] [pid 600] AH00169: caught SIGTERM, shutting down
Could anyone please advise?
Related
Ok so this happened to me the other day and I was able to resolve it by reinstalling WordPress, my WordPress theme and all of its plugins (took forever)
It has now happened again so I need to get to the root of the issue.
I have a website running on my localhost (using MAMP)
When I visit localhost:8888/ I am able to access my entire file directory.
All other sites on my localhost are loading without issue, except for the site I need to access. I am getting a 500 error in the browser.
When I enable WP Debug it doesn't change from the 500 error in the browser.
I have not modified this site in any way to cause this issue, it literally just randomly bricks itself. The same thing happened before to the exact same site.
I have gone through a ton of guides and am completely lost at what is causing the issue.
Would really appreciate some help troubleshooting.
This is my latest error log from apache.
[Tue Jul 05 14:43:49 2016] [notice] caught SIGTERM, shutting down
[Tue Jul 05 14:43:52 2016] [notice] Digest: generating secret for digest authentication ...
[Tue Jul 05 14:43:52 2016] [notice] Digest: done
[Tue Jul 05 14:43:52 2016] [notice] FastCGI: process manager initialized (pid 1372)
[Tue Jul 05 14:43:52 2016] [notice] Apache/2.2.29 (Unix) mod_wsgi/3.4 Python/2.7.8 PHP/5.5.23 mod_ssl/2.2.29 OpenSSL/0.9.8zh DAV/2 mod_fastcgi/2.4.6 mod_perl/2.0.8 Perl/v5.20.0 configured -- resuming normal operations
[Tue Jul 05 14:44:05 2016] [notice] caught SIGTERM, shutting down
[Tue Jul 05 14:44:07 2016] [notice] Digest: generating secret for digest authentication ...
[Tue Jul 05 14:44:07 2016] [notice] Digest: done
[Tue Jul 05 14:44:07 2016] [notice] FastCGI: process manager initialized (pid 1414)
[Tue Jul 05 14:44:07 2016] [notice] Apache/2.2.29 (Unix) mod_wsgi/3.4 Python/2.7.8 PHP/5.6.7 mod_ssl/2.2.29 OpenSSL/0.9.8zh DAV/2 mod_fastcgi/2.4.6 mod_perl/2.0.8 Perl/v5.20.0 configured -- resuming normal operations
[Tue Jul 05 16:48:35 2016] [error] [client ::1] client denied by server configuration: /Users/brettgolding/Google Drive/htdocs/.DS_Store
I´ve got a problem with installing wordpress on centos 7.
I used this guide to install it cause I´m quite new to linux:
https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-on-centos-7
I did everything step by step but it didn´t work. So I decided to reinstall my root server cause I wanted to have a new clean machine on which I could try it again. Then I used this guide to install it:
http://www.linuxveda.com/2015/09/15/install-wordpress-centos-7/
Same error as before..
The last entries in my error_log are:
[Wed Apr 13 12:16:06.794902 2016] [:error] [pid 23495] [client 66.249.93.167:41393] PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
[Wed Apr 13 12:16:06.794974 2016] [:error] [pid 23495] [client 66.249.93.167:41393] PHP Fatal error: Unknown: Failed opening required '/home/Soluna/homepages/stormcloud/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0
[Wed Apr 13 12:16:07.352614 2016] [:error] [pid 23496] [client 79.196.171.71:51928] PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
[Wed Apr 13 12:16:07.352706 2016] [:error] [pid 23496] [client 79.196.171.71:51928] PHP Fatal error: Unknown: Failed opening required '/home/Soluna/homepages/stormcloud/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0
[Wed Apr 13 12:16:07.671419 2016] [:error] [pid 23497] [client 5.79.100.165:49709] PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
[Wed Apr 13 12:16:07.671488 2016] [:error] [pid 23497] [client 5.79.100.165:49709] PHP Fatal error: Unknown: Failed opening required '/home/Soluna/homepages/stormcloud/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0
[Wed Apr 13 12:16:18.058248 2016] [:error] [pid 23494] [client 79.196.171.71:51933] PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
[Wed Apr 13 12:16:18.058303 2016] [:error] [pid 23494] [client 79.196.171.71:51933] PHP Fatal error: Unknown: Failed opening required '/home/Soluna/homepages/stormcloud/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0
[Wed Apr 13 12:16:21.985259 2016] [:error] [pid 23495] [client 79.196.171.71:51934] PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
[Wed Apr 13 12:16:21.985311 2016] [:error] [pid 23495] [client 79.196.171.71:51934] PHP Fatal error: Unknown: Failed opening required '/home/Soluna/homepages/stormcloud/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0
Can anyone help me? Since now I´ve got nothing installed on the server except teamspeak 3. On my old root server (Hetzner Online) everything worked well but now it doesn´t...Any ideas of how to fix it? I already changed the permissions of all wordpress files but still the same error..
They key is
Permission denied
Check permissions of the folder and files where you are storaging your wordpress files, apache should be able to read them.
Site was working fine this morning and now just a white screen after about a 45 second load. Latency is super high and saw a huge spike in database requests before crash. Here is some info from the error log:
[Tue Jan 20 19:35:35.758727 2015] [:error] [pid 5259] [client 10.164.61.169:9962] PHP Notice: Undefined offset: 0 in /var/app/current/content/themes/thereserve/_modules/z_interactive_map/_admin/settings-properties.php on line 217
[Tue Jan 20 19:35:35.761324 2015] [:error] [pid 5259] [client 10.164.61.169:9962] PHP Notice: Trying to get property of non-object in /var/app/current/content/themes/thereserve/_modules/z_interactive_map/_admin/settings-properties.php on line 217
[Tue Jan 20 19:41:34.521481 2015] [mpm_prefork:error] [pid 1867] AH00161: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting
[Tue Jan 20 20:53:29.784736 2015] [mpm_prefork:notice] [pid 1867] AH00171: Graceful restart requested, doing restart
[Tue Jan 20 20:53:34.308282 2015] [auth_digest:notice] [pid 1867] AH01757: generating secret for digest authentication ...
[Tue Jan 20 20:53:34.344476 2015] [lbmethod_heartbeat:notice] [pid 1867] AH02282: No slotmem from mod_heartmonitor
[Tue Jan 20 20:53:34.427428 2015] [mpm_prefork:notice] [pid 1867] AH00163: Apache/2.4.6 (Amazon) configured -- resuming normal operations
[Tue Jan 20 20:53:34.427451 2015] [core:notice] [pid 1867] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
The fact that the "server reached MaxRequestWorkers setting" is a little alarming. I can't answer why that happens, but that might be the result of another problem.
If hitting the MaxRequestWorkers setting itself is not the RESULT of another problem but the problem itself, you can raise the "MaxRequestWorkers" ceiling in /etc/apache2/mods-available/mpm_worker.conf, then restart Apache.
I can access the actual wordpress site via WAMP's localhost route, but I cannot log into the admin/dashboard page of the wordpress site.
I think it is a problem with apache.
Can anybody help me?
here are messages from the apache error logs:
[Sun Nov 03 07:11:17.294107 2013] [mpm_winnt:notice] [pid 2700:tid 416] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Sun Nov 03 07:11:19.296221 2013] [mpm_winnt:notice] [pid 5784:tid 324] AH00364: Child: All worker threads have exited.
[Sun Nov 03 07:11:19.328223 2013] [mpm_winnt:notice] [pid 2700:tid 416] AH00430: Parent: Child process 5784 exited successfully.
[Sun Nov 03 07:11:22.842424 2013] [mpm_winnt:notice] [pid 5408:tid 416] AH00455: Apache/2.4.4 (Win32) PHP/5.4.16 configured -- resuming normal operations
[Sun Nov 03 07:11:22.842424 2013] [mpm_winnt:notice] [pid 5408:tid 416] AH00456: Server built: Feb 23 2013 13:07:34
[Sun Nov 03 07:11:22.842424 2013] [core:notice] [pid 5408:tid 416] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.4\\bin\\httpd.exe -d C:/wamp/bin/apache/Apache2.4.4'
[Sun Nov 03 07:11:22.844424 2013] [mpm_winnt:notice] [pid 5408:tid 416] AH00418: Parent: Created child process 4348
[Sun Nov 03 07:11:24.173500 2013] [mpm_winnt:notice] [pid 4348:tid 324] AH00354: Child: Starting 150 worker threads.
More info:
The error is not a 404. Rather wordpress doesnt recognize my username/password.
final edit:
found a solution to my problem:
http://www.velvetblues.com/web-development-blog/how-to-add-an-admin-user-to-a-wordpress-database/
I was installing Ceilometer using this guide: http://docs.openstack.org/developer/ceilometer/install/manual.html
After I have finished everything, I try to test it by using: ceilometer meter-list and it gives me this error: HTTPInternalServerError (HTTP 500)
Here's what I have in the log:
root#iaas-hk01:/etc/apache2/sites-enabled# tail -f /var/log/apache2/ceilometer_error.log
[Wed Jul 24 18:35:48 2013] [error] File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/strategies.py", line 80, in connect
[Wed Jul 24 18:35:48 2013] [error] return dialect.connect(*cargs, **cparams)
[Wed Jul 24 18:35:48 2013] [error]
[Wed Jul 24 18:35:48 2013] [error] File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 281, in connect
[Wed Jul 24 18:35:48 2013] [error] return self.dbapi.connect(*cargs, **cparams)
[Wed Jul 24 18:35:48 2013] [error]
[Wed Jul 24 18:35:48 2013] [error] OperationalError: (OperationalError) unable to open database file None None
[Wed Jul 24 18:35:48 2013] [error]
[Wed Jul 24 18:35:48 2013] [error] [client 192.168.10.16] mod_wsgi (pid=2178): Exception occurred processing WSGI script '/opt/stack/ceilometer/ceilometer/api/app.wsgi'.
[Wed Jul 24 18:35:48 2013] [error] [client 192.168.10.16] TypeError: expected byte string object for header value, value of type int found
Hopefully someone can provide me some guidance in fixing this.
you should set the keystone api - end points. so that ceilometer api can talk with keystone...
Here are steps...
Create a service for ceilometer in keystone
$ keystone service-create --name=ceilometer \
--type=metering \
--description="Ceilometer Service"
Create an endpoint in keystone for ceilometer
$ keystone endpoint-create --region RegionOne \
--service_id $CEILOMETER_SERVICE \
--publicurl "http://$SERVICE_HOST:8777/" \
--adminurl "http://$SERVICE_HOST:8777/" \
--internalurl "http://$SERVICE_HOST:8777/"
Note that: 8777 is the default port of ceilometer if you have customised use the customised one..