I can't make Apache/WAMP start after I removed a vhost, and it doesn't start after I restored the config. This is driving me nuts :)
Starting it from the command line doesn't give me anything.
C:\wamp\bin\apache\Apache2.2.11\bin>httpd.exe
C:\wamp\bin\apache\Apache2.2.11\bin>
Tried debug mode:
C:\wamp\bin\apache\Apache2.2.11\bin>httpd.exe -e debug
[Fri Sep 13 13:26:23 2013] [debug] mod_so.c(246): loaded module actions_module
[Fri Sep 13 13:26:23 2013] [debug] mod_so.c(246): loaded module alias_module
[Fri Sep 13 13:26:23 2013] [debug] mod_so.c(246): loaded module asis_module
[Fri Sep 13 13:26:23 2013] [debug] mod_so.c(246): loaded module auth_basic_module
[Fri Sep 13 13:26:23 2013] [debug] mod_so.c(246): loaded module authn_default_module
[Fri Sep 13 13:26:23 2013] [debug] mod_so.c(246): loaded module authn_file_module
[Fri Sep 13 13:26:23 2013] [debug] mod_so.c(246): loaded module authz_default_module
[Fri Sep 13 13:26:23 2013] [debug] mod_so.c(246): loaded module authz_groupfile_module
[Fri Sep 13 13:26:23 2013] [debug] mod_so.c(246): loaded module authz_host_module
[Fri Sep 13 13:26:23 2013] [debug] mod_so.c(246): loaded module authz_user_module
[Fri Sep 13 13:26:23 2013] [debug] mod_so.c(246): loaded module autoindex_module
[Fri Sep 13 13:26:23 2013] [debug] mod_so.c(246): loaded module cgi_module
[Fri Sep 13 13:26:23 2013] [debug] mod_so.c(246): loaded module dir_module
[Fri Sep 13 13:26:23 2013] [debug] mod_so.c(246): loaded module env_module
[Fri Sep 13 13:26:23 2013] [debug] mod_so.c(246): loaded module include_module
[Fri Sep 13 13:26:23 2013] [debug] mod_so.c(246): loaded module isapi_module
[Fri Sep 13 13:26:23 2013] [debug] mod_so.c(246): loaded module log_config_module
[Fri Sep 13 13:26:23 2013] [debug] mod_so.c(246): loaded module mime_module
[Fri Sep 13 13:26:23 2013] [debug] mod_so.c(246): loaded module negotiation_module
[Fri Sep 13 13:26:23 2013] [debug] mod_so.c(246): loaded module rewrite_module
[Fri Sep 13 13:26:23 2013] [debug] mod_so.c(246): loaded module setenvif_module
[Fri Sep 13 13:26:23 2013] [debug] mod_so.c(246): loaded module php5_module
C:\wamp\bin\apache\Apache2.2.11\bin>
But if I try to start it from Services, it actually says it fails. From the Windows Event log:
The Apache2.2 service terminated with service-specific error Incorrect function..
My first thought was that something (Skype) was using port 80, so I scanned open ports, but don't see it is being used:
C:\wamp\bin\apache\Apache2.2.11\bin>netstat -ano | findstr 80
TCP 0.0.0.0:1026 0.0.0.0:0 LISTENING 980
TCP 127.0.0.1:4380 0.0.0.0:0 LISTENING 3768
TCP 192.168.1.18:1289 108.160.162.51:80 ESTABLISHED 3920
TCP 192.168.1.18:1677 204.62.114.180:443 ESTABLISHED 4608
TCP 192.168.1.18:1678 204.62.114.180:443 ESTABLISHED 4608
TCP 192.168.1.18:1679 204.62.114.180:443 ESTABLISHED 4608
TCP 192.168.1.18:1680 204.62.114.180:443 ESTABLISHED 4608
TCP 192.168.1.18:1681 204.62.114.180:443 ESTABLISHED 4608
TCP 192.168.1.18:2125 38.123.7.203:80 ESTABLISHED 4608
TCP 192.168.1.18:2126 38.123.7.203:80 ESTABLISHED 4608
TCP 192.168.1.18:2127 38.123.7.203:80 ESTABLISHED 4608
TCP 192.168.1.18:2128 76.74.254.123:80 ESTABLISHED 4608
TCP 192.168.1.18:2131 173.194.32.45:80 ESTABLISHED 4608
TCP 192.168.1.18:2136 173.194.32.57:80 ESTABLISHED 4608
TCP 192.168.1.18:2137 173.194.32.38:80 ESTABLISHED 4608
TCP 192.168.1.18:2138 66.155.9.250:80 ESTABLISHED 4608
TCP 192.168.1.18:2141 173.194.32.57:80 ESTABLISHED 4608
TCP 192.168.1.18:2143 23.3.90.208:80 ESTABLISHED 4608
TCP 192.168.1.18:2144 173.241.240.153:80 TIME_WAIT 0
TCP 192.168.1.18:2152 184.169.176.87:80 ESTABLISHED 4608
TCP 192.168.1.18:2161 107.21.38.221:80 ESTABLISHED 4608
TCP 192.168.1.18:2162 193.149.47.98:80 ESTABLISHED 4608
TCP 192.168.1.18:2166 66.155.9.250:80 ESTABLISHED 4608
TCP 192.168.1.18:2170 74.121.138.232:80 TIME_WAIT 0
TCP 192.168.1.18:2172 23.21.44.43:80 ESTABLISHED 4608
TCP 192.168.1.18:2173 173.192.220.64:80 ESTABLISHED 4608
TCP 192.168.1.18:2174 63.251.249.49:80 TIME_WAIT 0
TCP 192.168.1.18:2179 23.3.90.171:80 ESTABLISHED 4608
TCP 192.168.1.18:2180 23.3.91.115:80 ESTABLISHED 4608
TCP 192.168.1.18:2181 66.119.33.141:80 ESTABLISHED 4608
TCP 192.168.1.18:2182 63.251.249.50:80 TIME_WAIT 0
TCP 192.168.1.18:2186 23.21.44.43:80 ESTABLISHED 4608
TCP [::]:1026 [::]:0 LISTENING 980
UDP 169.254.129.250:60880 *:* 4724
UDP [fe80::212e:6fdb:926d:bd2a%10]:546 *:* 980
UDP [fe80::212e:6fdb:926d:bd2a%10]:1900 *:* 4724
UDP [fe80::212e:6fdb:926d:bd2a%10]:60876 *:* 4724
UDP [fe80::8835:6af0:18df:81fa%22]:546 *:* 980
UDP [fe80::8835:6af0:18df:81fa%22]:1900 *:* 4724
UDP [fe80::8835:6af0:18df:81fa%22]:5353 *:* 1820
UDP [fe80::8835:6af0:18df:81fa%22]:60877 *:* 4724
Sorry for the super long question. Hope somebody knows what might be going on!
Related
I'm setting up this OSX Mavericks following this guide but I cannot get http://localhost/~giulio to work ('giulio' is this mac username).
Looks like it doesn't find the /users/giulio.conf
This is what's inside the /private/var/log/apache2/error_log
[Thu Feb 27 13:54:41 2014] [notice] caught SIGTERM, shutting down
[Thu Feb 27 13:54:48 2014] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
httpd: Could not reliably determine the server's fully qualified domain name, using iMac-di-Giulio.local for ServerName
[Thu Feb 27 13:54:48 2014] [notice] Digest: generating secret for digest authentication ...
[Thu Feb 27 13:54:48 2014] [notice] Digest: done
[Thu Feb 27 13:54:48 2014] [notice] Apache/2.2.24 (Unix) DAV/2 PHP/5.4.17 mod_ssl/2.2.24 OpenSSL/0.9.8y configured -- resuming normal operations
[Thu Feb 27 13:54:55 2014] [error] [client ::1] File does not exist: /Library/WebServer/Documents/index-maintenance.html
Solved redoing the whole process and adding Servername Localhost
and adding the follwing code into giulio.conf file into users folder.
<Directory "/Users/giulio/Sites/">
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
</Directory>
I'm attempting to override the ErrorLog location in my httpd.conf file by specifying it in my .vhost, but it's creating the file only and still writing to the .conf one.
I have the following in my httpd.conf file:
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here. If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog "logs/error.log"
# Virtual hosts
Include conf/vhosts/xyz_apache.vhost
Then I have this in my xyz_apache.vhost file (on one line):
ErrorLog "C:/Program Files (x86)/Apache Software Foundation/
Apache2.2/logs/xyzerrors.log"
If I start up apache and look in my logs directory to see what was created, I see a blank xyzerrors.log and an error.log file with startup messages in it ("Starting thread to listen on port 80, etc.).
Any idea why this might be happening, or advice as to how I can fix it? The xyzerrors.log file was clearly created, so it seems my file paths and spelling of "ErrorLog" and my vhost configuration and all the obvious parts should be correct. But it's writing to the file specified in my httpd.conf, which, if I understand correctly, should only be the backup location, should there not be one specified in the .vhost. I wondered if permissions might be an issue somehow (maybe it didn't have write access to the xyzerror.log it created so it wrote to error.log instead?), but both files are in the same directory. Is there another configuration piece I missed?
I verified what was happening by renaming the .conf ErrorLog and deleting the .vhost ErrorLog, and again saw the .vhost log created and the .conf log created and written to. I have similar setups running in Linux with no problems.
Update: Here's another piece. I was fixing an issue with lxml (I got an error, installed a newer version of it, then restarted apache), and noticed that a couple of messages appeared in my xyzerror.log. Here's what it looks like:
error.log
[Wed Oct 09 09:14:52 2013] [notice] Child 42900: Starting thread to listen on port 80.
[Wed Oct 09 09:48:11 2013] [error] ERROR:django.request:Internal Server Error: /admin/
[Wed Oct 09 09:48:11 2013] [error] Traceback (most recent call last):
[Wed Oct 09 09:48:11 2013] [error] ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed. (Rest of traceback omitted)
[Wed Oct 09 09:54:50 2013] [notice] Parent: Received shutdown signal -- Shutting down the server.
Apache server interrupted...
Apache server interrupted...
Apache server interrupted...
Apache server interrupted...
Apache server interrupted...
Released the start mutex
[Wed Oct 09 09:54:52 2013] [notice] Child 42900: All worker threads have exited.
[Wed Oct 09 09:54:52 2013] [notice] Child 42900: Child process is exiting
[Wed Oct 09 09:54:52 2013] [notice] Parent: Child process exited successfully.
[Wed Oct 09 09:54:53 2013] [warn] mod_wsgi: Compiled for Python/2.7.
[Wed Oct 09 09:54:53 2013] [warn] mod_wsgi: Runtime using Python/2.7.2.
[Wed Oct 09 09:54:53 2013] [notice] Apache/2.2.22 (Win32) mod_wsgi/3.3 Python/2.7.2 configured -- resuming normal operations
[Wed Oct 09 09:54:53 2013] [notice] Server built: Jan 28 2012 11:16:39
[Wed Oct 09 09:54:53 2013] [notice] Parent: Created child process 40284
[Wed Oct 09 09:54:53 2013] [warn] mod_wsgi: Compiled for Python/2.7.
[Wed Oct 09 09:54:53 2013] [warn] mod_wsgi: Runtime using Python/2.7.2.
[Wed Oct 09 09:54:53 2013] [notice] Child 40284: Child process is running
[Wed Oct 09 09:54:53 2013] [notice] Child 40284: Acquired the start mutex.
[Wed Oct 09 09:54:53 2013] [notice] Child 40284: Starting 64 worker threads.
[Wed Oct 09 09:54:53 2013] [notice] Child 40284: Starting thread to listen on port 80.
xyzerror.log
[Wed Oct 09 09:47:54 2013] [info] [client 127.0.0.1] mod_wsgi (pid=42900, process='', application='XYZ.sysname.mydomain.local|'): Loading WSGI script 'C:/Users/etc/etc/XYZ_wsgi.py'.
[Wed Oct 09 09:48:11 2013] [error] [client 127.0.0.1] client denied by server configuration: C:/Users/etc/etc/site_media
So maybe these aren't ErrorLog messages and I need to investigate my CustomLog settings? I'm seeing similar behavior with those (an xyzaccess.log file is being written but my access.log in my .conf is being written to), but I didn't include it here for simplicity.
Update 2:
If I continue to browse my site and watch the log files, I see that logs are eventually getting written to the xyzerror.log (and the xyzaccess.log) in my vhost location. Only the initial startup messages ("listening on port..", etc.) and one site-related error were in the conf location.
Can anyone explain or suggest a solution?
Apache 2.2/Windows 7/Django 1.5/Python 2.7
if I understand correctly, should only be the backup location, should there not be one specified in the .vhost
Not at all !
This is normal behaviour, because the ErrorLog directive can either apply globally, or to the VirtualHost it is declared in.
Think about it. When an error is reported to the error log for apache internal events, such as startup events or module loading failure, how can it use a specific virtual host's error log, since virtual host resolution is not even possible yet ?
Apache knows which Virtual Host to use only when a client makes a request and the request is identified to refer to a specific virtual host, either via IP resolution or Hostname resolution.
Therefore, only those errors will appear in your vhost-specific error log, such as PHP errors pertaining to that vhost, or HTTP errors such as 401 or 404 codes.
I've been using XAMPP ever since, I get this problem. Whenever I go to my page "127.0.0.1/advancedtempl" It doesn't give me an error, Just a blank soulless page, I'm not sure what's going on, I've tried putting index.php and trying other pages but no avail. What do I do?
EDIT:
This is my error logs:
[Thu Aug 15 22:25:23.186600 2013] [mpm_winnt:notice] [pid 7224:tid 344] AH00430: Parent: Child process 2036 exited successfully.
[Thu Aug 15 22:25:37.607600 2013] [ssl:warn] [pid 6540:tid 344] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Thu Aug 15 22:25:38.359600 2013] [ssl:warn] [pid 6540:tid 344] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Thu Aug 15 22:25:38.498600 2013] [mpm_winnt:notice] [pid 6540:tid 344] AH00455: Apache/2.4.4 (Win32) OpenSSL/0.9.8y PHP/5.4.16 configured -- resuming normal operations
[Thu Aug 15 22:25:38.498600 2013] [mpm_winnt:notice] [pid 6540:tid 344] AH00456: Server built: Feb 23 2013 13:07:34
[Thu Aug 15 22:25:38.498600 2013] [core:notice] [pid 6540:tid 344] AH00094: Command line: 'C:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Thu Aug 15 22:25:38.502600 2013] [mpm_winnt:notice] [pid 6540:tid 344] AH00418: Parent: Created child process 5868
[Thu Aug 15 22:25:39.881600 2013] [ssl:warn] [pid 5868:tid 244] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Thu Aug 15 22:25:40.868600 2013] [ssl:warn] [pid 5868:tid 244] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Thu Aug 15 22:25:41.005600 2013] [mpm_winnt:notice] [pid 5868:tid 244] AH00354: Child: Starting 150 worker threads.
Im using ubuntu and XAMPP for linux and I have a problem when I try to upload an extension greater than 500kb in Joomla, I get an "HTTP Error 500"
http://s4.postimage.org/7wgxcfveq/error500.jpg
My php.ini file is configured following the joomla recomendations:
"display_errors=Off"......
here is my error log
[Mon Jun 06 14:12:45 2011] [notice]
suEXEC mechanism enabled (wrapper:
/opt/lampp/bin/suexec) [Mon Jun 06
14:12:45 2011] [warn] RSA server
certificate is a CA certificate
(BasicConstraints: CA == TRUE !?) [Mon
Jun 06 14:12:45 2011] [warn] RSA
server certificate CommonName (CN)
localhost' does NOT match server
name!? [Mon Jun 06 14:12:46 2011]
[notice] Digest: generating secret for
digest authentication ... [Mon Jun 06
14:12:46 2011] [notice] Digest: done
[Mon Jun 06 14:12:47 2011] [warn] RSA
server certificate is a CA certificate
(BasicConstraints: CA == TRUE !?) [Mon
Jun 06 14:12:47 2011] [warn] RSA
server certificate CommonName (CN)
localhost' does NOT match server
name!? [Mon Jun 06 14:12:48 2011]
[notice] Apache/2.2.17 (Unix) DAV/2
mod_ssl/2.2.17 OpenSSL/1.0.0c
PHP/5.3.5 mod_apreq2-20090110/2.7.1
mod_perl/2.0.4 Perl/v5.10.1 configured
-- resuming normal operations [Mon Jun 06 14:15:34 2011] [error] [client
192.168.56.1] PHP Fatal error: Maximum execution time of 30 seconds
exceeded in
/opt/lampp/htdocs/csu/libraries/joomla/filesystem/archive/tar.php
on line 154, referer:
http://192.168.56.101/csu/administrator/index.php?option=com_installer&view=install
The PHP Fatal error is "Maximum execution time of 30 seconds exceeded".
You could try increasing this by altering the max_execution_time in the php.ini file or create a .htaccess file containing..
php_value max_execution_time 60
Should the installation of an extension take longer than 30 seconds?
There might be a script issue, such as an endless loop, that's causing problems.
I'm using XAMPP v1.7 on an Win XP-64 bit machine, my Symantec AV is turned off as is my Windows Firewall, and I can't connect to localhost from a browser.
I originally had these errors:
[Wed Jan 07 16:24:55 2009] [error] (OS 10038)An operation was attempted on something that is not a socket. : Child 2716: Encountered too many errors accepting client connections. Possible causes: dynamic address renewal, or incompatible VPN or firewall software. Try using the Win32DisableAcceptEx directive
These errors went away after I added the Win32DisableAcceptEx directive to httpd.conf, but the net result remains the same: no joy.
Now, I get these errors:
[Wed Jan 07 16:40:15 2009] [notice] Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i mod_autoindex_color PHP/5.2.8 configured -- resuming normal operations
[Wed Jan 07 16:40:15 2009] [notice] Server built: Dec 10 2008 00:10:06
[Wed Jan 07 16:40:15 2009] [notice] Parent: Created child process 5916
[Wed Jan 07 16:40:15 2009] [notice] Disabled use of AcceptEx() WinSock2 API
[Wed Jan 07 16:40:15 2009] [notice] Digest: generating secret for digest authentication ...
[Wed Jan 07 16:40:15 2009] [notice] Digest: done
[Wed Jan 07 16:40:15 2009] [notice] Child 5916: Child process is running
[Wed Jan 07 16:40:15 2009] [notice] Child 5916: Acquired the start mutex.
[Wed Jan 07 16:40:15 2009] [notice] Child 5916: Starting 250 worker threads.
[Wed Jan 07 16:40:15 2009] [notice] Child 5916: Listening on port 443.
[Wed Jan 07 16:40:15 2009] [notice] Child 5916: Listening on port 80.
[Wed Jan 07 16:40:15 2009] [error] (OS 10038)An operation was attempted on something that is not a socket. : Too many errors in select loop. Child process exiting.
[Wed Jan 07 16:40:15 2009] [notice] Child 5916: Exit event signaled. Child process is ending.
[Wed Jan 07 16:40:16 2009] [notice] Child 5916: Released the start mutex
[Wed Jan 07 16:40:17 2009] [notice] Child 5916: All worker threads have exited.
[Wed Jan 07 16:40:17 2009] [notice] Child 5916: Child process is exiting
[Wed Jan 07 16:40:17 2009] [notice] Parent: child process exited with status 0 -- Restarting.
[Wed Jan 07 16:40:17 2009] [notice] Digest: generating secret for digest authentication ...
[Wed Jan 07 16:40:17 2009] [notice] Digest: done
And, apache seems to be crashing (Windows tells me so, and I can see the crash in the system events.)
I'm a n00b to apache, but need to get this running. Ideas?
Marcus
If anyone comes across this, try running
netsh winsock RESET
from the command line. It worked for me.