[mod_python] mod_python installation issues

Grisha Trubetskoy grisha at modpython.org
Fri Mar 13 20:33:31 UTC 2015


Luke

It looks like it still isn't compiled correctly. If you're compiling it
yourself, you'll have better luck with using the latest github version
which has the "fatal: Not a git repository (or any of the parent
directories): .git" issue fixed:
https://github.com/grisha/mod_python/issues/20

But you might find it much easier to install the package for your
distribution.

Regards,

Grisha


On Fri, Mar 13, 2015 at 4:20 PM, Luke Marrott <luke.marrott at gmail.com>
wrote:

> I was trying to do some Python with just CGI and had some problems. So a
> friend suggested I use mod_python instead.
>
> The current error I am seeing in the Apache Error log is:
>
> [Fri Mar 13 20:11:34.126324 2015] [:warn] [pid 14707] WARNING: mod_python
> version mismatch, expected '3.5.0-', found 'fatal: Not a git repository (or
> any of the parent directories): .git'.
> [Fri Mar 13 20:11:34.126359 2015] [:warn] [pid 14707] WARNING: mod_python
> modules location
> '/usr/lib64/python2.7/site-packages/mod_python/__init__.pyc'.
>
> I had some errors when compiling and followed instructions here to compile
> without errors.
>
>
> http://translate.google.com/translate?hl=en&sl=es&u=http://www.eldespistado.com/compilar-modulo-apache-mod_python-centos-7-redhat-7/&prev=search
>
> Any assistance is greatly appreciated!
>
> Thanks!
>
>
> Here is the output of the mpinfo page.
> General information Apache versionApache/2.4.6 (CentOS) mod_python/3.5.0-
> Python/2.7.5 Apache threaded MPMNo (single thread MPM) Apache forked MPMYes,
> maximum 256 processes Apache server root/etc/httpd Apache document root
> /var/www/html Apache error log/etc/httpd/logs/error_log  Python
> sys.version2.7.5 (default, Jun 17 2014, 18:11:42) [GCC 4.8.2 20140120
> (Red Hat 4.8.2-16)] Python sys.path
>
> /usr/lib64/python27.zip
> /usr/lib64/python2.7
> /usr/lib64/python2.7/plat-linux2
> /usr/lib64/python2.7/lib-tk
> /usr/lib64/python2.7/lib-old
> /usr/lib64/python2.7/lib-dynload
> /usr/lib64/python2.7/site-packages
> /usr/lib/python2.7/site-packages
>
> Python interpreter namehostname mod_python.publisher availableYes mod_python.psp
> availableYes Request input headers KeyValue Hostnwauto User-AgentMozilla/5.0
> (Macintosh; Intel Mac OS X 10.10; rv:36.0) Gecko/20100101 Firefox/36.0
> Accepttext/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> Accept-Languageen-US,en;q=0.5 Accept-Encodinggzip, deflate Connection
> keep-alive Request environment KeyValue UNIQUE_ID
> VQNEdmAbxx5pXnqmBPdPYgAAAAA HTTP_HOSTnwauto HTTP_USER_AGENTMozilla/5.0
> (Macintosh; Intel Mac OS X 10.10; rv:36.0) Gecko/20100101 Firefox/36.0
> HTTP_ACCEPTtext/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> HTTP_ACCEPT_LANGUAGEen-US,en;q=0.5 HTTP_ACCEPT_ENCODINGgzip, deflate
> HTTP_CONNECTIONkeep-alive PATH
> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin SERVER_SIGNATURE
> SERVER_SOFTWAREApache/2.4.6 (CentOS) mod_python/3.5.0- Python/2.7.5
> SERVER_NAMEnwauto SERVER_ADDR
> SERVER_PORT80 REMOTE_ADDR
> DOCUMENT_ROOT/var/www/html REQUEST_SCHEMEhttp CONTEXT_PREFIX
> CONTEXT_DOCUMENT_ROOT/var/www/html SERVER_ADMIN
> SCRIPT_FILENAMENone REMOTE_PORT57711 Request configuration KeyValue Request
> options KeyValue Request notes KeyValue python_init_ran1 Server
> configuration KeyValue Server options KeyValue Server configuration tree
>
> Listen 80
> User apache
> Group apache
> ServerAdmin
> ServerName
>
>     AllowOverride none
>     Require all denied
> DocumentRoot "/var/www/html"
>
>     AllowOverride None
>     Require all granted
>
>     Options Indexes FollowSymLinks
>     AllowOverride All
>     Require all granted
> DirectoryIndex index.html index.cgi index.py
>
>     Require all denied
> ErrorLog "logs/error_log"
> LogLevel debug
> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
> LogFormat "%h %l %u %t \"%r\" %>s %b" common
> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
> CustomLog "logs/access_log" combined
> ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
>
>     AddHandler mod_python .py
>     PythonHandler mod_python.publisher
>     PythonDebug On
>
>         SetHandler default-handler
> TypesConfig /etc/mime.types
> AddType application/x-compress .Z
> AddType application/x-gzip .gz .tgz
> AddHandler cgi-script .cgi
> AddHandler mod_python .py
> AddType text/html .shtml
> AddOutputFilter INCLUDES .shtml
> AddDefaultCharset UTF-8
> MIMEMagicFile conf/magic
> EnableSendfile on
> IndexOptions FancyIndexing HTMLTable VersionSort
> Alias /icons/ "/usr/share/httpd/icons/"
>
>     Options Indexes MultiViews FollowSymlinks
>     AllowOverride None
>     Require all granted
> AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
> AddIconByType (TXT,/icons/text.gif) text/*
> AddIconByType (IMG,/icons/image2.gif) image/*
> AddIconByType (SND,/icons/sound2.gif) audio/*
> AddIconByType (VID,/icons/movie.gif) video/*
> AddIcon /icons/binary.gif .bin .exe
> AddIcon /icons/binhex.gif .hqx
> AddIcon /icons/tar.gif .tar
> AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
> AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
> AddIcon /icons/a.gif .ps .ai .eps
> AddIcon /icons/layout.gif .html .shtml .htm .pdf
> AddIcon /icons/text.gif .txt
> AddIcon /icons/c.gif .c
> AddIcon /icons/p.gif .pl .py
> AddIcon /icons/f.gif .for
> AddIcon /icons/dvi.gif .dvi
> AddIcon /icons/uuencoded.gif .uu
> AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
> AddIcon /icons/tex.gif .tex
> AddIcon /icons/bomb.gif core.
> AddIcon /icons/back.gif ..
> AddIcon /icons/hand.right.gif README
> AddIcon /icons/folder.gif ^^DIRECTORY^^
> AddIcon /icons/blank.gif ^^BLANKICON^^
> DefaultIcon /icons/unknown.gif
> ReadmeName README.html
> HeaderName HEADER.html
> IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
> UserDir disabled
>
>     AllowOverride FileInfo AuthConfig Limit Indexes
>     Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
>     Require method GET POST OPTIONS
>
>     SetHandler mod_python
>     PythonHandler mod_python.testhandler
>
>
>
>
> _______________________________________________
> mod_python mailing list
> mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.modpython.org/pipermail/mod_python/attachments/20150313/acae6d51/attachment-0001.html>


More information about the mod_python mailing list