I cant start apache after upgrading to yosemite - apache

I updated to Yosemite and when I type localhost into the browser It says webpage not availible. I tried restarting apache but it still wouldn't work. Does anyone have advice?
Here are my error logs:
[Tue Oct 21 20:04:25 2014] [error] [client ::1] File does not exist: /Library/WebServer/Documents/favicon.ico
[Tue Oct 21 20:55:27 2014] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
httpd: Could not reliably determine the server's fully qualified domain name, using Cliffords-MacBook.local for ServerName
[Tue Oct 21 20:55:28 2014] [notice] Digest: generating secret for digest authentication ...
[Tue Oct 21 20:55:28 2014] [notice] Digest: done
[Tue Oct 21 20:55:28 2014] [emerg] (17)File exists: Couldn't create accept lock (/private/var/log/apache2/accept.lock.22) (5)
[Tue Oct 21 20:55:29 2014] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
httpd: Could not reliably determine the server's fully qualified domain name, using Cliffords-MacBook.local for ServerName
[Tue Oct 21 20:55:29 2014] [notice] Digest: generating secret for digest authentication ...
[Tue Oct 21 20:55:29 2014] [notice] Digest: done
[Tue Oct 21 20:55:29 2014] [warn] pid file /private/var/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Tue Oct 21 20:55:29 2014] [notice] Apache/2.2.26 (Unix) DAV/2 PHP/5.5.14 mod_ssl/2.2.26 OpenSSL/0.9.8y configured -- resuming normal operations
[Tue Oct 21 20:57:10 2014] [error] [client ::1] File does not exist: /Library/WebServer/Documents/favicon.ico
[Tue Oct 21 21:35:36 2014] [notice] caught SIGTERM, shutting down

Related

Apache start error -

Getting following error while starting the Apache. Tried all possible things found on Stackoverflow or google -
[Thu Jun 14 05:03:22.973799 2018] [ssl:trace2] [pid 13154] ssl_engine_rand.c(126): Init: Seeding PRNG with 144 bytes of entropy
[Thu Jun 14 05:03:22.973834 2018] [ssl:info] [pid 13154] AH01887: Init: Initializing (virtual) servers for SSL
[Thu Jun 14 05:03:22.973840 2018] [ssl:info] [pid 13154] AH01876: mod_ssl/2.4.25 compiled against Server: Apache/2.4.25, Library: OpenSSL/1.0.2h
[Thu Jun 14 05:03:22.973858 2018] [http2:debug] [pid 13154] mod_http2.c(103): AH03089: initializing post config dry run
[Thu Jun 14 05:03:22.974292 2018] [core:emerg] [pid 13154] (22)Invalid argument: AH00024: Couldn't set permissions on the rewrite-map mutex; check User and Group directives
AH00016: Configuration Failed

MAMP vhosts stopped working after a restart

I have been using MAMP for a long time now, and everything has been fairly peachy until this week. I have looked through SO and google (inside and out), but I cannot for the life of me figure out why all of a sudden I cannot access my sites after I restarted my computer for an update...
Nothing has changed, I still have the proper names in my hosts and httpd-vhosts.conf files.
Has anyone had their vhosts with MAMP suddenly just stop working all together? This is driving me MAD!
<VirtualHost *>
DocumentRoot "/Applications/MAMP/htdocs/hoh/public/"
ServerName hoh.local
</VirtualHost>
and the hosts file:
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
127.0.0.1 hoh.local learning.dev mvc.dev
The site I was literally working on earlier today is the hoh.local one (it was hoh.dev but that wasn't working either so I changed it in hopes it would magically work again).
Apache Log:
[Fri Oct 17 17:23:46 2014] [notice] FastCGI: process manager initialized (pid 6730)
[Fri Oct 17 17:23:46 2014] [notice] Digest: generating secret for digest authentication ...
[Fri Oct 17 17:23:46 2014] [notice] Digest: done
[Fri Oct 17 17:23:46 2014] [notice] Apache/2.2.29 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.8 PHP/5.6.1 mod_ssl/2.2.29 OpenSSL/0.9.8za DAV/2 mod_perl/2.0.8 Perl/v5.20.0 configured -- resuming normal operations
[Fri Oct 17 17:29:40 2014] [notice] caught SIGTERM, shutting down
[Fri Oct 17 17:30:08 2014] [notice] FastCGI: process manager initialized (pid 380)
[Fri Oct 17 17:30:08 2014] [notice] Digest: generating secret for digest authentication ...
[Fri Oct 17 17:30:08 2014] [notice] Digest: done
[Fri Oct 17 17:30:08 2014] [notice] Apache/2.2.29 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.8 PHP/5.6.1 mod_ssl/2.2.29 OpenSSL/0.9.8za DAV/2 mod_perl/2.0.8 Perl/v5.20.0 configured -- resuming normal operations
[Fri Oct 17 17:30:13 2014] [error] [client ::1] File does not exist: /Applications/MAMP/htdocs/docs-assets
[Fri Oct 17 18:01:47 2014] [error] [client ::1] File does not exist: /Applications/MAMP/htdocs/docs-assets
[Fri Oct 17 18:09:13 2014] [error] [client ::1] client denied by server configuration: /Applications/MAMP/htdocs/.DS_Store, referer: http://localhost:8888/MAMP/?language=English
[Fri Oct 17 18:09:13 2014] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring!
[Fri Oct 17 18:12:16 2014] [notice] caught SIGTERM, shutting down
[Fri Oct 17 18:12:18 2014] [notice] FastCGI: process manager initialized (pid 1278)
[Fri Oct 17 18:12:18 2014] [notice] Digest: generating secret for digest authentication ...
[Fri Oct 17 18:12:18 2014] [notice] Digest: done
[Fri Oct 17 18:12:18 2014] [notice] Apache/2.2.29 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.8 PHP/5.5.17 mod_ssl/2.2.29 OpenSSL/0.9.8za DAV/2 mod_perl/2.0.8 Perl/v5.20.0 configured -- resuming normal operations
[Fri Oct 17 18:12:21 2014] [notice] caught SIGTERM, shutting down
[Fri Oct 17 18:13:13 2014] [notice] FastCGI: process manager initialized (pid 1426)
[Fri Oct 17 18:13:13 2014] [notice] Digest: generating secret for digest authentication ...
[Fri Oct 17 18:13:13 2014] [notice] Digest: done
[Fri Oct 17 18:13:13 2014] [notice] Apache/2.2.29 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.8 PHP/5.5.17 mod_ssl/2.2.29 OpenSSL/0.9.8za DAV/2 mod_perl/2.0.8 Perl/v5.20.0 configured -- resuming normal operations
[Fri Oct 17 18:15:45 2014] [notice] caught SIGTERM, shutting down
[Fri Oct 17 18:16:37 2014] [notice] FastCGI: process manager initialized (pid 1693)
[Fri Oct 17 18:16:37 2014] [notice] Digest: generating secret for digest authentication ...
[Fri Oct 17 18:16:37 2014] [notice] Digest: done
[Fri Oct 17 18:16:37 2014] [notice] Apache/2.2.29 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.8 PHP/5.5.17 mod_ssl/2.2.29 OpenSSL/0.9.8za DAV/2 mod_perl/2.0.8 Perl/v5.20.0 configured -- resuming normal operations

Apache: Could not initialize random number generator

I'm really frustrated, my apache server doesn't start, my error.log is this:
[Fri Jul 26 16:26:20.211050 2013] [core:notice] [pid 32240:tid 268] AH00094: Command line: 'c:\\users\\mrvisiont\\desktop\\xampp\\apache\\bin\\httpd.exe -d C:/Users/MrViSiOnT/Desktop/xampp/apache'
[Fri Jul 26 16:26:20.213050 2013] [mpm_winnt:notice] [pid 32240:tid 268] AH00418: Parent: Created child process 32112
[Fri Jul 26 16:26:20.225050 2013] [:crit] [pid 32112] (-2146173818)Unknown error: AH00141: Could not initialize random number generator
[Fri Jul 26 16:26:20.227051 2013] [mpm_winnt:crit] [pid 32240:tid 268] AH00419: master_main: create child process failed. Exiting.
I don't know what is the meaning of "Could not initialize random number generator"
Anybody knows what is the issue????
EDIT:
When I run httpd.exe, error.log is:
[Fri Jul 26 16:52:31 2013] [notice] Digest: generating secret for digest authentication ...
[Fri Jul 26 16:52:31 2013] [notice] Digest: done
[Fri Jul 26 16:52:31 2013] [notice] Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 configured -- resuming normal operations
[Fri Jul 26 16:52:31 2013] [notice] Server built: Sep 10 2011 11:34:11
[Fri Jul 26 16:52:31 2013] [notice] Parent: Created child process 16760
no listening sockets available, shutting down
Unable to open logs
[Fri Jul 26 16:52:31 2013] [crit] (OS 87)El parámetro no es correcto. : master_main: create child process failed. Exiting.
EDIT (FYI): Thank you people!
When I comment ServerName line from httpd.conf... error.log is:
httpd.exe: Could not reliably determine the server's fully qualified domain name, using fe80::8e3:cc40:2151:c412 for ServerName
[Fri Jul 26 17:03:11 2013] [notice] Digest: generating secret for digest authentication ...
[Fri Jul 26 17:03:11 2013] [notice] Digest: done
[Fri Jul 26 17:03:12 2013] [notice] Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 configured -- resuming normal operations
[Fri Jul 26 17:03:12 2013] [notice] Server built: Sep 10 2011 11:34:11
[Fri Jul 26 17:03:12 2013] [notice] Parent: Created child process 13816
httpd.exe: apr_sockaddr_info_get() failed for MRVISIONT-PC
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
no listening sockets available, shutting down
Unable to open logs
[Fri Jul 26 17:03:12 2013] [crit] (OS 6)Controlador no válido. : master_main: create child process failed. Exiting.
I had similar problem and troubleshooted for days before I finally stumbled upon the solution:
Ensure that your system's PATH environment variable does not contain illegal characters such as "b?????Ä/????????".
Removing such entries resolved the problem for me.
I had a similar problem:
[:crit] [pid 7368] (-2146173818)Unknown error: AH00141: Could not initialize random number generator
I checked the system's PATH environment variable and found Chinese signs in it.
Since I deleted them, Apache works fine.
Check your environment settings. There may be an invalid character in it. See http://www.apachelounge.com/viewtopic.php?t=5535
Besides that: it looks like you are missing the logs directory.
I ran into this issue today for a completely different reason: No PATH environment variable (at all).
The environment variable hint put me on the right track. Dumping environment vars via a test application instead of starting Apache revealed the underlying issue. The Windows CreateProcess() API is generally difficult to work with.

amazon ec2 apache crash

my apache server on amazon ec2 crashes for some reason,
[Tue Jun 18 09:28:26.008659 2013] [core:notice] [pid 4806] AH00052: child pid 6226 exit signal Segmentation fault (11)
[Tue Jun 18 09:28:26.008735 2013] [core:notice] [pid 4806] AH00052: child pid 6227 exit signal Segmentation fault (11)
[Tue Jun 18 09:28:26.008752 2013] [core:notice] [pid 4806] AH00052: child pid 6228 exit signal Segmentation fault (11)
[Tue Jun 18 09:28:28.017033 2013] [core:notice] [pid 4806] AH00052: child pid 6151 exit signal Segmentation fault (11)
[Tue Jun 18 09:28:46.035989 2013] [core:notice] [pid 4806] AH00052: child pid 6120 exit signal Segmentation fault (11)
[Tue Jun 18 09:28:47.388781 2013] [mpm_prefork:notice] [pid 4806] AH00169: caught SIGTERM, shutting down
[Tue Jun 18 09:28:51.712473 2013] [ssl:warn] [pid 6276] AH02292: Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Tue Jun 18 09:28:51.891491 2013] [ssl:warn] [pid 6277] AH02292: Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Tue Jun 18 09:28:51.891584 2013] [lbmethod_heartbeat:notice] [pid 6277] AH02282: No slotmem from mod_heartmonitor
[Tue Jun 18 09:28:51.943536 2013] [mpm_prefork:notice] [pid 6277] AH00163: Apache/2.4.3 (Unix) OpenSSL/1.0.1c PHP/5.4.12 configured -- resuming normal operations
what is causing that and what can i do ?
From what you posted, it looks like this the problem:
"Apache exit signal Segmentation fault (11)" [This is what you need to google]
Check if you have enough resources(Memory(free -m) and disk-space).
Then, if still stuck, you may want create dump as explained below and dig into that dump
Section: Debugging intermittent crashes
http://httpd.apache.org/dev/debugging.html

Apache won't start after memcache installation

I installed memcache on my Ubuntu 10.04 machine but when it comes to restarting apache it gives me an error. My main root is /var/www/ and there is only index.php file in it.
Everything was working before installing memcache.
This is what I did.
Help please
ERROR:
myubuntu#ubuntu:~$ service apache2 restart
* Restarting web server apache2 (13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
APACHE LOG:
myubuntu#ubuntu:~$ tail -f /var/log/apache2/error.log
[Sun Mar 04 14:04:45 2012] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9.10 with Suhosin-Patch configured -- resuming normal operations
[Sun Mar 04 18:54:35 2012] [notice] caught SIGTERM, shutting down
[Wed Mar 07 20:32:59 2012] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9.10 with Suhosin-Patch configured -- resuming normal operations
[Wed Mar 07 21:01:57 2012] [notice] caught SIGTERM, shutting down
[Fri Mar 09 22:20:06 2012] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9.10 with Suhosin-Patch configured -- resuming normal operations
[Sat Mar 10 01:45:00 2012] [notice] caught SIGTERM, shutting down
[Sat Mar 10 10:58:24 2012] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9.10 with Suhosin-Patch configured -- resuming normal operations
[Sat Mar 10 11:16:49 2012] [error] [client ::1] File does not exist: /var/www/favicon.ico
[Sat Mar 10 11:16:49 2012] [error] [client ::1] File does not exist: /var/www/favicon.ico
You have to be root. You may want to use sudo when starting Apache.