Description of problem:
fpaste-server install a httpd config file which load mod_wsgi but the package does not require this module, thus httpd fails to start
# service httpd start
Starting httpd: httpd: Syntax error on line 210 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf.d/fpaste_server.conf: Cannot load /etc/httpd/modules/mod_wsgi.so into server: /etc/httpd/modules/mod_wsgi.so: cannot open shared object file: No such file or directory
# head /etc/httpd/conf.d/fpaste_server.conf
LoadModule wsgi_module modules/mod_wsgi.so
WSGIScriptAlias / /usr/lib/python2.4/site-packages/fpaste_server/conf/fpaste_server.wsgi
Alias /static /usr/lib/python2.4/site-packages/fpaste_server/static
Allow from all
Version-Release number of selected component (if applicable):
fpaste-server does not require mod_wsgi
fpaste-server should require mod_wsgi
Installing mod_wsgi makes httpd start:
# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: [ OK ]
fpaste-server doesn't require mod_wsgi because it is a django application that could be run with nginx and fcgi. Therefore, installing mod_wsgi is out of scope for fpaste-server.
(In reply to comment #1)
> fpaste-server doesn't require mod_wsgi because it is a django application that
> could be run with nginx and fcgi. Therefore, installing mod_wsgi is out of
> scope for fpaste-server.
Sorry for misleading,
my point was fpaste-server should not install httpd and fpaste_server.conf unless it's an application that work only with Apache httpd.
(fpaste-server pulls httpd)
# rpm -qR fpaste-server
config(fpaste-server) = 0.1-3.el5
django-dpaste >= 0.2.4
django-mptt >= 0.4.2
django-simple-captcha >= 0.2.0
django-tracking >= 0.2.7
python(abi) = 2.4
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Maybe not requiring apache is appropriate. I will update that in the next release, but I don't see the major harm including a sample config. I do note though, that a newer version is about to release to the repositories which fixes the fpaste_server.conf and renames it to fpaste_server.conf.sample so as to not break an already installed and configured apache instance.
It can be found here, but I just promoted it to stable yesterday.