Hi All,
        I was getting the following exceptions in my apache error log with an 
out of the box (EPEL 6) installation of cobbler on CentOS 6.2 x86_64 running in 
an VirtualBox VM (if that should matter) that looked like:

[Wed Jan 11 16:32:05 2012] [error] [client 192.168.56.4] Traceback (most recent 
call last):
[Wed Jan 11 16:32:05 2012] [error] [client 192.168.56.4]   File 
"/var/www/cobbler/svc/services.py", line 16, in <module>
[Wed Jan 11 16:32:05 2012] [error] [client 192.168.56.4]     from mod_python 
import Session
[Wed Jan 11 16:32:05 2012] [error] [client 192.168.56.4]   File 
"/usr/lib64/python2.6/site-packages/mod_python/Session.py", line 21, in <module>
[Wed Jan 11 16:32:05 2012] [error] [client 192.168.56.4]     import apache, 
Cookie
[Wed Jan 11 16:32:05 2012] [error] [client 192.168.56.4]   File 
"/usr/lib64/python2.6/site-packages/mod_python/apache.py", line 30, in <module>
[Wed Jan 11 16:32:05 2012] [error] [client 192.168.56.4]     import _apache
[Wed Jan 11 16:32:05 2012] [error] [client 192.168.56.4] ImportError: No module 
named _apache

        I google'd quite a bit for the error messages and around WSGI and 
mod_python, and the only way I was able to resolve this error (and move on to 
my other misconfigurations) was to add the following lines to my 
/etc/httpd/conf.d/cobbler.conf file (as denoted by >):

<Directory "/var/www/cobbler">
    Options Indexes FollowSymLinks
    Order allow,deny
    Allow from all
>    AddHandler mod_python .py
>    PythonHandler /var/www/cobbler/svc/services.py
</Directory>

        

        Is there a better way to correct for this error? 

        My config is basically a minimalist install of CentOS 6.2 and adding 
just the EPEL repository followed by all the dependencies for cobbler....

        Thanks and Regards,
        Nate

_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to