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.
Related
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
I'm trying to install ownCloud on my Raspberry Pi. To install this I use this tutorial: http://forum.owncloud.org/viewtopic.php?f=21&t=21870 (it's in german)
So I did everything like described and after the configtest I wanted to restart with
apache2ctl restart
I got this:
httpd not running, trying to start
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs
Action 'restart' failed.
The Apache error log may have more information.
I found this information in the error log but I don't understand what the problem is:
[Mon Nov 03 09:17:46 2014] [notice] Apache/2.2.22 (Debian) configured -- resuming normal operations [Mon Nov 03 09:17:59 2014] [notice] caught SIGTERM, shutting down
[Mon Nov 03 09:18:01 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u14 configured -- resuming normal operations
[Mon Nov 03 09:18:46 2014] [notice] Graceful restart requested, doing restart apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Mon Nov 03 09:18:50 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u14 configured -- resuming normal operations
[Mon Nov 03 09:24:37 2014] [notice] caught SIGTERM, shutting down [Mon Nov 03 09:24:39 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u14 configured -- resuming normal operations [Mon Nov 03 09:32:51 2014] [notice] Graceful restart requested, doing restart
[Mon Nov 03 09:32:53 2014] [notice] Apache/2.2.22 (Debian) HP/5.4.4-14+deb7u14 configured -- resuming normal operations
[Mon Nov 03 09:36:33 2014] [notice] Graceful restart requested, doing restart
[Mon Nov 03 09:36:35 2014] [notice] Apache/2.2.22 (Debian) HP/5.4.4-14+deb7u14 configured -- resuming normal operations [Mon Nov 03 10:21:15 2014] [notice] SIGHUP received. Attempting to restart (98)Address already in use: make_sock: could not bind to address 0.0.0.0:443 no listening sockets available, shutting down Unable to open logs`
You have something else using port 443. Also, I believe the tutorial you mentioned is incorrect as you cannot bind an SSL VHost on a catchall IP (*:443 is not valid).
Change the vhost bind to read something like 192.168.1.60:443, where this is the static public IP of your Raspberry Pi.
Also, you should check what other services you are running on the system, and see if any of them is bound to run on port 443. You can do this by running the command netstat -lntp.
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
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.
I'm getting a 503 error whenever I try to request any page. I really don't know how to go about fixing this problem. I've checked the error.log and this is what it contains:
[Fri Jan 13 19:03:41 2012] [notice] caught SIGWINCH, shutting down gracefully
[Fri Jan 13 19:03:51 2012] [notice] Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.17 with Suhosin-Patch configured -- resuming normal operations
[Fri Jan 13 19:08:59 2012] [notice] caught SIGWINCH, shutting down gracefully
[Fri Jan 13 19:09:41 2012] [notice] Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.17 with Suhosin-Patch configured -- resuming normal operations
[Fri Jan 13 19:11:59 2012] [notice] caught SIGWINCH, shutting down gracefully
[Fri Jan 13 19:12:45 2012] [notice] Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.17 with Suhosin-Patch configured -- resuming normal operations
[Fri Jan 13 19:13:03 2012] [notice] caught SIGWINCH, shutting down gracefully
[Fri Jan 13 19:13:14 2012] [notice] Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.17 with Suhosin-Patch configured -- resuming normal operations
[Sat Jan 14 11:25:28 2012] [notice] caught SIGWINCH, shutting down gracefully
[Sat Jan 14 11:26:10 2012] [notice] Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.17 with Suhosin-Patch configured -- resuming normal operations
[Sat Jan 14 11:34:34 2012] [notice] caught SIGWINCH, shutting down gracefully
I assume this is just reporting that I've rebooted the server from the AWS console.
Phew, fixed! For the benefit of others, the 503 error seems to have been caused by my elastic load balancer not having any healthy instances to route requests to. This was because the URL I'd been using to check for health was throwing some database errors. I simply changed the health check ping target to a path that was working and everything started working again.