Hello Ajay,
Then in that case the following link is more applicable:
- http://httpd.apache.org/docs/2.4/programs/apachectl.html
Apparently, the apachectl script can operate in two different modes.
Your environment appears to be set up only for the second.
So for this you would need to use "apachectl restart" or "apachectl graceful".
I also found this related bug report from RedHat:
- https://bugzilla.redhat.com/show_bug.cgi?id=909703
Take care,
Mike
On 7/18/2013 10:50 PM, Ajay Garg wrote:
If you want to pass extra arguments to httpd, edit theYou can only start/stop/restart httpd using this script.Passing arguments to httpd using apachectl is no longer suppored.Mike,Running either of the above two scripts, I get
"""
/etc/sysconfig/httpd config file.
"""
:(
On Fri, Jul 19, 2013 at 4:40 AM, Mike Rumph <mike.rumph@xxxxxxxxxx> 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
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@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
--
Regards,
Ajay