Strange 500 error localhost WordPress install - wordpress

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

Related

MAMP server not working after OS Sierra update

I recently updated to the latest version of macOS and can't get an old MAMP-dependent project I have to run. It was working fine right before I upgraded. I googled my way around thinking the upgrade might be something simple like the previous OS upgrade fix that required simply renaming the file but I couldn't fine anything.
Has anyone else had any MAMP issues with the latest macOS update or what are some common local environment fixes to look into after an OS update?
apache_error_log:
[Sun Nov 27 17:40:12 2016] [notice] FastCGI: process manager initialized (pid 2517)
[Sun Nov 27 17:40:12 2016] [notice] Digest: generating secret for digest authentication ...
[Sun Nov 27 17:40:12 2016] [notice] Digest: done
[Sun Nov 27 17:40:13 2016] [notice] Apache/2.2.26 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.6 PHP/5.5.10 DAV/2 mod_ssl/2.2.26 OpenSSL/0.9.8zh mod_perl/2.0.8 Perl/v5.18.2 configured -- resuming normal operations
[Sun Nov 27 18:41:25 2016] [notice] caught SIGTERM, shutting down
[Sun Nov 27 18:41:34 2016] [notice] FastCGI: process manager initialized (pid 2928)
[Sun Nov 27 18:41:34 2016] [notice] Digest: generating secret for digest authentication ...
[Sun Nov 27 18:41:34 2016] [notice] Digest: done
[Sun Nov 27 18:41:35 2016] [notice] Apache/2.2.26 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.6 PHP/5.5.10 DAV/2 mod_ssl/2.2.26 OpenSSL/0.9.8zh mod_perl/2.0.8 Perl/v5.18.2 configured -- resuming normal operations
I was also having trouble with MAMP after having upgraded the Mac operating system to the High Sierra. The Apache Server was not starting. My MAMP is an old version (version 1.9). To solve I just created a folder called logs inside the Library folder. Only that and MAMP returned to normal operation.
I found this solution by seeing in the logs folder. In the Apache log (apache_error_log) I saw that it was looking for the "logs" folder inside the "Library" folder, which did not exist. So just creating this folder solved.

XAMPP / WP localhost loads one website fine, but Connection Reset on second

I am running the latest XAMPP and Wordpress on my Windows 10 machine, and everything has been working fine for more than a week. I run two websites under XAMPP/htdocs, web1 and web2. This morning Chrome said Connection Reset for web2.
localhost/dashboard loads the XAMPP page correctly.
localhost/web1 loads web1 correctly.
From this I conclude that XAMPP, Apache, WP, and MySql are all working correctly, for web1.
But for some reason Chrome and IE get Connection Reset errors on web2.
I can't log into the wp-admin screen on web2 either.
I've looked for solutions on the net, emptied browser caches, etc, and even did a 'netsh winsock reset' on the whole computer, but with no success.
I think it's something wrong with wordpress on website 2, because web1 works fine, right beside web2. Does anyone have any ideas on how to troubleshoot this? I may end up reinstalling wordpress and all my plugins, etc.
Here's my apache error log. Not sure if these errors are relevant, because they are in the log when everything was working fine, too.
[Sat Oct 29 09:11:23.875588 2016] [mpm_winnt:notice] [pid 2248:tid 528] AH00428: Parent: child process 16144 exited with status 255 -- Restarting.
[Sat Oct 29 09:11:24.084459 2016] [ssl:warn] [pid 2248:tid 528] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sat Oct 29 09:11:24.105497 2016] [mpm_winnt:notice] [pid 2248:tid 528] AH00455: Apache/2.4.23 (Win32) OpenSSL/1.0.2h PHP/5.6.24 configured -- resuming normal operations
[Sat Oct 29 09:11:24.105497 2016] [mpm_winnt:notice] [pid 2248:tid 528] AH00456: Apache Lounge VC11 Server built: Jul 7 2016 11:13:22
[Sat Oct 29 09:11:24.105497 2016] [core:notice] [pid 2248:tid 528] AH00094: Command line: 'C:\\Users\\jameson\\Documents\\xampp\\apache\\bin\\httpd.exe -d C:/Users/jameson/Documents/XAMPP/apache'
[Sat Oct 29 09:11:24.106499 2016] [mpm_winnt:notice] [pid 2248:tid 528] AH00418: Parent: Created child process 17048
[Sat Oct 29 09:11:24.477157 2016] [ssl:warn] [pid 17048:tid 500] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sat Oct 29 09:11:24.563811 2016] [ssl:warn] [pid 17048:tid 500] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sat Oct 29 09:11:24.585366 2016] [mpm_winnt:notice] [pid 17048:tid 500] AH00354: Child: Starting 150 worker threads.
[Sat Oct 29 09:11:25.869511 2016] [mpm_winnt:notice] [pid 2248:tid 528] AH00428: Parent: child process 17048 exited with status 255 -- Restarting.
I finally gave up, reinstalled wordpress, and imported an old backup of the site. I lost a tiny bit of work (my backup was recent), but in total it was far less work than trying to debug the failed site.
One of the biggest problems with a "Connection reset" error is that you can't easily interact with the site through a browser. Unless you know exactly what the problem is under the hood (I didn't know), and know exactly what system / wordpress files to change (I didn't know), debugging is impossible.
I'm answering this question and closing it so that others might benefit from my experience, and reinstall their own failed site before wasting too much time like I did.

How to solve exit signal Segmentation fault (11)

After I migrated wordpress from a shared host to my own VPS I got the unpleasant surprise that half of the back-end pages on my websites rendered a No data receive ERR_EMPTY_RESPONSE.
Determined to find out what caused the problem I started troubleshooting. 7 of my 8 websites were affected, all running wordpress 4.1.5. Upgrading to 4.2.2 did not fix the problem.
The only unaffected website is an old website running on wordpress 3.3.1. Upgrading this website to run 4.2.2 results in the same errors. When I try to do a fresh wordpress install the same error pops up after step one (both when installing 4.2.2 and 3.3.1).
The 7 sites are running on 4 different themes, and I tried dis-enabling all plugins, still no luck.
I had a look at the error logs, I will copy a fragment here since they might provide some useful info. I've been googling all these lines but can't find the solution yet.
[Sun Jun 21 10:22:41 2015] [notice] caught SIGTERM, shutting down
[Sun Jun 21 10:22:42 2015] [notice] SSL FIPS mode disabled
[Sun Jun 21 10:22:42 2015] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Sun Jun 21 10:22:42 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Jun 21 10:22:43 2015] [notice] SSL FIPS mode disabled
[Sun Jun 21 10:22:43 2015] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Sun Jun 21 10:22:43 2015] [notice] Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips DAV/2 PHP/5.2.17 configured -- resuming normal operations
[Sun Jun 21 10:22:59 2015] [notice] child pid 3943 exit signal Segmentation fault (11)
[Sun Jun 21 10:23:00 2015] [notice] child pid 3944 exit signal Segmentation fault (11)
[Sun Jun 21 10:23:02 2015] [notice] child pid 3945 exit signal Segmentation fault (11)
[Sun Jun 21 10:23:03 2015] [notice] child pid 3942 exit signal Segmentation fault (11)
[Sun Jun 21 10:23:04 2015] [notice] child pid 4080 exit signal Segmentation fault (11)
[Sun Jun 21 10:23:05 2015] [notice] child pid 3946 exit signal Segmentation fault (11)
[Sun Jun 21 10:23:06 2015] [notice] child pid 4083 exit signal Segmentation fault (11)
[Sun Jun 21 10:23:07 2015] [notice] child pid 4082 exit signal Segmentation fault (11)

AWS Wordpress Site Crashed

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.

Cannot access Wordpress dashboard through WAMP

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/

Resources