httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ajay Garg <ajaygargn...@gmail.com>
Subject Re: [users@httpd] "httpd" service timing-out
Date Fri, 19 Jul 2013 05:50:05 GMT
Mike,

Running either of the above two scripts, I get

"""
Passing arguments to httpd using apachectl is no longer suppored.
You can only start/stop/restart httpd using this script.
If you want to pass extra arguments to httpd, edit the
 /etc/sysconfig/httpd config file.
"""


:(


On Fri, Jul 19, 2013 at 4:40 AM, Mike Rumph <mike.rumph@oracle.com> wrote:

> Hello Ajay,
>
> You could try using "apachectl -k restart" or "apachectl -k graceful".
>
> The following link has these and other options for restarting Apache httpd:
>
> - http://httpd.apache.org/docs/**2.4/stopping.html#hup<http://httpd.apache.org/docs/2.4/stopping.html#hup>
>
> Thanks,
>
> Mike Rumph
>
>
>
> On 7/18/2013 2:54 PM, Ajay Garg wrote:
>
>> Hi all.
>>
>> I have used httpd to good effect since many months (mainly using it
>> for uploading/downloading files via WebDAV) on a Fedora-18 ARM
>> machine, and it has always worked like a charm.
>>
>> Now, we are in the process of setting up a book-server, based on
>> OPDS-spec, and WSGI.
>> However, when we setup the "httpd.conf" and do a "sudo service httpd
>> restart", the service times out :(
>>
>>
>>
>> Following are our setups ::
>>
>>
>> == /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
>> ##############################**##############################**
>> ##########################
>>
>>
>>
>>
>>
>>
>>
>> == Command/Output sequence==
>>
>> ##############################**##############################**
>> ##########################
>> [olpc@dhcppc1 ~]$ sudo service httpd restart
>> Redirecting to /bin/systemctl restart  httpd.service
>> Job for httpd.service failed. See 'systemctl status httpd.service' and
>> 'journalctl -n' for details.
>> ##############################**##############################**
>> ##########################
>>
>>
>>
>>
>>
>> == /var/log/messages ==
>>
>> ##############################**##############################**
>> ##########################
>> Jul 18 21:25:14 xo-c5-b9-6c systemd[1]: Starting The Apache HTTP Server...
>> Jul 18 21:26:44 xo-c5-b9-6c systemd[1]: httpd.service operation timed
>> out. Terminating.
>> Jul 18 21:28:14 xo-c5-b9-6c systemd[1]: httpd.service stopping timed
>> out (2). Killing.
>> Jul 18 21:28:14 xo-c5-b9-6c systemd[1]: Failed to start The Apache HTTP
>> Server.
>> Jul 18 21:28:14 xo-c5-b9-6c systemd[1]: Unit httpd.service entered failed
>> state
>> ##############################**##############################**
>> ##########################
>>
>>
>>
>>
>> Any ideas what is being done wrong?
>>
>> I will be grateful for some pointers :)
>>
>>
>>
>>
>> Regards,
>> Ajay
>>
>> ------------------------------**------------------------------**---------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.**apache.org<users-unsubscribe@httpd.apache.org>
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>>
>>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@httpd.**apache.org<users-unsubscribe@httpd.apache.org>
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


-- 
Regards,
Ajay

Mime
View raw message