You are not logged in.

#1 2009-11-23 08:02:58

TrevorBramble
Member
From: Seattle, WA, USA
Registered: 2009-11-12
Posts: 21
Website

Apache startup error

Don't know what else to look at here.  The file exists, and should be readable and executable by the httpd user.

Versions all seem to be compatible.  I've read all the relevant wiki pages (nothing relevant), searched Google (also nothing relevant), asked on IRC (no takers), and so I'm here.

Anyone have any suggestions?

[wayfarer:conf]$ sudo apachectl -t
httpd: Syntax error on line 120 of /etc/httpd/conf/httpd.conf: Can't locate API module structure `mod_python' in file /etc/httpd/modules/mod_python.so: /etc/httpd/modules/mod_python.so: undefined symbol: mod_python
[wayfarer:conf]$ ls -l /etc/httpd/modules/mod_python.so
-rwxr-xr-x 1 root root 2067339 2008-10-24 06:54 /etc/httpd/modules/mod_python.so
[wayfarer:conf]$ uname -a
Linux wayfarer 2.6.31-ARCH #1 SMP PREEMPT Tue Nov 10 19:01:40 CET 2009 x86_64 Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz GenuineIntel GNU/Linux
[wayfarer:conf]$ sudo apachectl -v
Server version: Apache/2.2.14 (Unix)
Server built:   Nov  7 2009 22:52:07
[wayfarer:conf]$ pacman -Qi apache
Name           : apache
Version        : 2.2.14-2
URL            : http://www.apache.org/dist/httpd
Licenses       : APACHE  
Groups         : None
Provides       : None
Depends On     : openssl  zlib  apr-util  pcre  
Optional Deps  : lynx: apachectl status
Required By    : mod_perl  mod_python  php-apache  
Conflicts With : None
Replaces       : None
Installed Size : 4480.00 K
Packager       : Biru Ionut <ionut@archlinux.ro>
Architecture   : x86_64
Build Date     : Sat 07 Nov 2009 02:54:42 PM PST
Install Date   : Sun 22 Nov 2009 11:43:39 PM PST
Install Reason : Explicitly installed
Install Script : No
Description    : A high performance Unix-based HTTP server

[wayfarer:conf]$ pacman -Qi mod_python
Name           : mod_python
Version        : 3.3.1-5
URL            : http://www.modpython.org/
Licenses       : APACHE  
Groups         : None
Provides       : None
Depends On     : apache>=2.2.9-4  python>=2.5.2-5  
Optional Deps  : None
Required By    : None
Conflicts With : None
Replaces       : None
Installed Size : 2688.00 K
Packager       : Allan McRae <allan@archlinux.org>
Architecture   : x86_64
Build Date     : Fri 24 Oct 2008 06:54:59 AM PDT
Install Date   : Sun 22 Nov 2009 11:44:14 PM PST
Install Reason : Explicitly installed
Install Script : Yes
Description    : an Apache module that embeds the Python interpreter within the
                 server

Offline

#2 2009-11-23 09:42:35

kermana
Member
Registered: 2009-04-13
Posts: 60

Re: Apache startup error

when I install mod_python pacman says:

Now don't forget to edit your main config and add
    LoadModule python_module /usr/lib/httpd/modules/mod_python.so
and if your configuration uses ClearModuleList, then also
    AddModule mod_python.c

When I add the LoadModule line apache starts fine.  Do you have the exact same line or something else in httpd.conf? (note the "python_module" not "mod_python" )

Last edited by kermana (2009-11-23 09:58:14)

Offline

#3 2009-11-24 03:10:03

TrevorBramble
Member
From: Seattle, WA, USA
Registered: 2009-11-12
Posts: 21
Website

Re: Apache startup error

Wonderful.  That was exactly my error.  Thank you, Kermana!

Offline

Board footer

Powered by FluxBB