Hello Ajay, In the httpd.service file did you try changing the Service type to forking? - https://bugzilla.redhat.com/show_bug.cgi?id=909703#c5 Otherwise, here is a link that others have found useful for this problem: - http://www.yodi.sg/fix-httpd-apache-wont-start-problem-in-fedora-18/ Take care, Mike Rumph On 7/21/2013 8:56 PM, Ajay Garg wrote:
Hi all.I have been trying to run HTTPD with "mod_wsgi" since last some days on a Fedora-18 ARM, and have been having issues.Following is the latest one. When I start HTTPD, it dies immediately. Following are the setup-files/logs. == /etc/httpd/conf/httpd.conf == ###################################################################################### WSGIRestrictEmbedded On WSGIPythonOptimize 1 LoadModule mpm_event_module modules/mod_mpm_event.so LoadModule wsgi_module modules/mod_wsgi.so LoadModule authz_core_module modules/mod_authz_core.so LoadModule unixd_module modules/mod_unixd.so LoadModule log_config_module modules/mod_log_config.so LoadModule expires_module modules/mod_expires.so User apache Group apache <VirtualHost *:80> ServerName localhost ErrorLog /var/www/sites/pathagar/logs/error.log CustomLog /var/www/sites/pathagar/logs/access.log combined WSGIDaemonProcess pathagar processes=2 threads=3 stack-size=1048576 maximum-requests=500 inactivity-timeout=300 display-name=%{GROUP} python-path=/var/www/sites/pathagar/env/lib/python2.7/site-packages WSGIProcessGroup pathagar WSGIScriptAlias / /var/www/sites/pathagar/src/pathagar/wsgi.py Options -Indexes ExpiresActive On ExpiresByType image/jpg "access plus 2 hours" ExpiresByType image/png "access plus 2 hours" ExpiresByType text/css "access plus 10 years" ExpiresByType application/x-javascript "access plus 10 years" <Directory "/var/www/sites/pathagar"> WSGIProcessGroup pathagar WSGIScriptReloading On Require all granted </Directory> </VirtualHost> Listen 80 ###################################################################################### == /lib/systemd/system/httpd.service == ###################################################################################### [Unit] Description=The Apache HTTP Server After=network.target remote-fs.target nss-lookup.target [Service] Type=notify EnvironmentFile=/etc/sysconfig/httpd #ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND ExecStart=/usr/sbin/httpd $OPTIONS -k start ExecReload=/usr/sbin/httpd $OPTIONS -k graceful ExecStop=/usr/sbin/httpd $OPTIONS -k graceful-stop# We want systemd to give httpd some time to finish gracefully, but still want# it to kill httpd after TimeoutStopSec if something went wrong during the # graceful stop. Normally, Systemd sends SIGTERM signal right after the# ExecStop, which would kill httpd. We are sending useless SIGCONT here to give# httpd time to finish. KillSignal=SIGCONT PrivateTmp=true [Install] WantedBy=multi-user.target ###################################################################################### == Command/Output sequence == ###################################################################################### ~]$ sudo service httpd status Redirecting to /bin/systemctl status httpd.service httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled) Active: inactive (dead) CGroup: name=systemd:/system/httpd.service Jul 22 03:39:19 dhcppc1 systemd[1]: Starting The Apache HTTP Server...Jul 22 03:39:20 dhcppc1 httpd[900]: AH00558: httpd: Could not reliably determine the server...sage Jul 22 03:39:20 dhcppc1 httpd[902]: AH00558: httpd: Could not reliably determine the server...sageJul 22 03:39:22 dhcppc1 systemd[1]: Started The Apache HTTP Server. Jul 22 03:40:12 dhcppc1 systemd[1]: Starting The Apache HTTP Server...Jul 22 03:40:13 dhcppc1 httpd[1076]: AH00558: httpd: Could not reliably determine the serve...sage Jul 22 03:40:13 dhcppc1 httpd[1078]: AH00558: httpd: Could not reliably determine the serve...sageJul 22 03:40:15 dhcppc1 systemd[1]: Started The Apache HTTP Server. ###################################################################################### == Error logs == ######################################################################################[Fri Jul 19 11:49:41.185572 2013] [mpm_event:notice] [pid 5461:tid 1074651136] AH00489: Apache/2.4.4 (Fedora) mod_wsgi/3.4 Python/2.7.3 configured -- resuming normal operations [Fri Jul 19 11:49:41.186377 2013] [core:notice] [pid 5461:tid 1074651136] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND' [Fri Jul 19 21:00:11.843443 2013] [mpm_event:notice] [pid 950:tid 1074184944] AH00489: Apache/2.4.4 (Fedora) mod_wsgi/3.4 Python/2.7.3 configured -- resuming normal operations [Fri Jul 19 21:00:11.849983 2013] [core:notice] [pid 950:tid 1074184944] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND' [Fri Jul 19 21:04:15.458708 2013] [core:warn] [pid 1218:tid 1075474432] AH00098: pid file /run/httpd/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [Fri Jul 19 21:04:15.463761 2013] [mpm_event:notice] [pid 1218:tid 1075474432] AH00489: Apache/2.4.4 (Fedora) mod_wsgi/3.4 Python/2.7.3 configured -- resuming normal operations [Fri Jul 19 21:04:15.463987 2013] [core:notice] [pid 1218:tid 1075474432] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND' [Fri Jul 19 21:05:00.056912 2013] [mpm_event:notice] [pid 1218:tid 1075474432] AH00491: caught SIGTERM, shutting down [Fri Jul 19 21:05:01.154154 2013] [mpm_event:notice] [pid 1373:tid 1075400704] AH00489: Apache/2.4.4 (Fedora) mod_wsgi/3.4 Python/2.7.3 configured -- resuming normal operations [Fri Jul 19 21:05:01.154944 2013] [core:notice] [pid 1373:tid 1075400704] AH00094: Command line: '/usr/sbin/httpd' [Fri Jul 19 21:05:03.005914 2013] [mpm_event:notice] [pid 1373:tid 1075400704] AH00491: caught SIGTERM, shutting down [Fri Jul 19 21:05:08.084680 2013] [mpm_event:notice] [pid 1528:tid 1079611392] AH00489: Apache/2.4.4 (Fedora) mod_wsgi/3.4 Python/2.7.3 configured -- resuming normal operations [Fri Jul 19 21:05:08.085400 2013] [core:notice] [pid 1528:tid 1079611392] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND' [Fri Jul 19 21:10:07.875917 2013] [core:warn] [pid 1917:tid 1074671616] AH00098: pid file /run/httpd/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [Fri Jul 19 21:10:07.913300 2013] [mpm_event:notice] [pid 1917:tid 1074671616] AH00489: Apache/2.4.4 (Fedora) mod_wsgi/3.4 Python/2.7.3 configured -- resuming normal operations [Fri Jul 19 21:10:07.913535 2013] [core:notice] [pid 1917:tid 1074671616] AH00094: Command line: '/usr/sbin/httpd' [Fri Jul 19 21:10:08.199971 2013] [mpm_event:notice] [pid 1917:tid 1074671616] AH00492: caught SIGWINCH, shutting down gracefully [Fri Jul 19 21:15:29.047187 2013] [mpm_event:notice] [pid 1581:tid 1074089984] AH00489: Apache/2.4.4 (Fedora) mod_wsgi/3.4 Python/2.7.3 configured -- resuming normal operations [Fri Jul 19 21:15:29.324027 2013] [core:notice] [pid 1581:tid 1074089984] AH00094: Command line: '/usr/sbin/httpd' [Fri Jul 19 21:15:29.324429 2013] [mpm_event:notice] [pid 1581:tid 1074089984] AH00492: caught SIGWINCH, shutting down gracefully [Sat Jul 20 10:07:51.073201 2013] [mpm_event:notice] [pid 917:tid 1076002816] AH00489: Apache/2.4.4 (Fedora) mod_wsgi/3.4 Python/2.7.3 configured -- resuming normal operations [Sat Jul 20 10:07:51.103237 2013] [core:notice] [pid 917:tid 1076002816] AH00094: Command line: '/usr/sbin/httpd' [Sat Jul 20 10:07:51.359461 2013] [mpm_event:notice] [pid 917:tid 1076002816] AH00492: caught SIGWINCH, shutting down gracefully [Sat Jul 20 10:08:12.116998 2013] [mpm_event:notice] [pid 1058:tid 1075032064] AH00489: Apache/2.4.4 (Fedora) mod_wsgi/3.4 Python/2.7.3 configured -- resuming normal operations [Sat Jul 20 10:08:12.117758 2013] [core:notice] [pid 1058:tid 1075032064] AH00094: Command line: '/usr/sbin/httpd' [Sat Jul 20 10:08:12.378070 2013] [mpm_event:notice] [pid 1058:tid 1075032064] AH00492: caught SIGWINCH, shutting down gracefully [Sat Jul 20 10:08:18.333423 2013] [mpm_event:notice] [pid 1185:tid 1075752960] AH00489: Apache/2.4.4 (Fedora) mod_wsgi/3.4 Python/2.7.3 configured -- resuming normal operations [Sat Jul 20 10:08:18.334243 2013] [core:notice] [pid 1185:tid 1075752960] AH00094: Command line: '/usr/sbin/httpd' [Sat Jul 20 10:08:18.586454 2013] [mpm_event:notice] [pid 1185:tid 1075752960] AH00492: caught SIGWINCH, shutting down gracefully [Sat Jul 20 10:53:04.428284 2013] [mpm_event:notice] [pid 4630:tid 1074245632] AH00489: Apache/2.4.4 (Fedora) mod_wsgi/3.4 Python/2.7.3 configured -- resuming normal operations [Sat Jul 20 10:53:04.441308 2013] [core:notice] [pid 4630:tid 1074245632] AH00094: Command line: '/usr/sbin/httpd' [Sat Jul 20 10:53:04.745841 2013] [mpm_event:notice] [pid 4630:tid 1074245632] AH00492: caught SIGWINCH, shutting down gracefully [Sat Jul 20 11:16:50.275150 2013] [mpm_event:notice] [pid 923:tid 1074409472] AH00489: Apache/2.4.4 (Fedora) mod_wsgi/3.4 Python/2.7.3 configured -- resuming normal operations [Sat Jul 20 11:16:50.307523 2013] [core:notice] [pid 923:tid 1074409472] AH00094: Command line: '/usr/sbin/httpd' [Sat Jul 20 11:16:50.588987 2013] [mpm_event:notice] [pid 923:tid 1074409472] AH00492: caught SIGWINCH, shutting down gracefully [Sat Jul 20 11:19:26.475498 2013] [mpm_event:notice] [pid 1084:tid 1075015680] AH00489: Apache/2.4.4 (Fedora) mod_wsgi/3.4 Python/2.7.3 configured -- resuming normal operations [Sat Jul 20 11:19:26.476221 2013] [core:notice] [pid 1084:tid 1075015680] AH00094: Command line: '/usr/sbin/httpd' [Sat Jul 20 11:19:26.718899 2013] [mpm_event:notice] [pid 1084:tid 1075015680] AH00492: caught SIGWINCH, shutting down gracefully [Sat Jul 20 11:21:40.624759 2013] [mpm_event:notice] [pid 1265:tid 1074913280] AH00489: Apache/2.4.4 (Fedora) mod_wsgi/3.4 Python/2.7.3 configured -- resuming normal operations [Sat Jul 20 11:21:40.625562 2013] [core:notice] [pid 1265:tid 1074913280] AH00094: Command line: '/usr/sbin/httpd' [Sat Jul 20 11:21:41.072432 2013] [mpm_event:notice] [pid 1265:tid 1074913280] AH00492: caught SIGWINCH, shutting down gracefully [Sat Jul 20 11:24:52.434738 2013] [mpm_event:notice] [pid 1624:tid 1074921472] AH00489: Apache/2.4.4 (Fedora) mod_wsgi/3.4 Python/2.7.3 configured -- resuming normal operations [Sat Jul 20 11:24:52.435498 2013] [core:notice] [pid 1624:tid 1074921472] AH00094: Command line: '/usr/sbin/httpd' [Sat Jul 20 11:24:52.710882 2013] [mpm_event:notice] [pid 1624:tid 1074921472] AH00492: caught SIGWINCH, shutting down gracefully [Sat Jul 20 11:27:45.009303 2013] [mpm_event:notice] [pid 2102:tid 1074737152] AH00489: Apache/2.4.4 (Fedora) mod_wsgi/3.4 Python/2.7.3 configured -- resuming normal operations [Sat Jul 20 11:27:45.010188 2013] [core:notice] [pid 2102:tid 1074737152] AH00094: Command line: '/usr/sbin/httpd' [Sat Jul 20 11:27:45.327168 2013] [mpm_event:notice] [pid 2102:tid 1074737152] AH00492: caught SIGWINCH, shutting down gracefully [Mon Jul 22 03:39:20.268589 2013] [mpm_event:notice] [pid 901:tid 1075367936] AH00489: Apache/2.4.4 (Fedora) mod_wsgi/3.4 Python/2.7.3 configured -- resuming normal operations [Mon Jul 22 03:39:20.310882 2013] [core:notice] [pid 901:tid 1075367936] AH00094: Command line: '/usr/sbin/httpd' [Mon Jul 22 03:39:20.584766 2013] [mpm_event:notice] [pid 901:tid 1075367936] AH00492: caught SIGWINCH, shutting down gracefully [Mon Jul 22 03:40:13.082070 2013] [mpm_event:notice] [pid 1077:tid 1074995200] AH00489: Apache/2.4.4 (Fedora) mod_wsgi/3.4 Python/2.7.3 configured -- resuming normal operations [Mon Jul 22 03:40:13.082850 2013] [core:notice] [pid 1077:tid 1074995200] AH00094: Command line: '/usr/sbin/httpd' [Mon Jul 22 03:40:13.358304 2013] [mpm_event:notice] [pid 1077:tid 1074995200] AH00492: caught SIGWINCH, shutting down gracefully###################################################################################### On a side note, is WSGI supported in Apache-HTTPD on Fedora-18 ARM at all? Any pointers will be highly appreciated :) Regards, Ajay
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx