Message from discussion
Trying to install, but getting syntax error
MIME-Version: 1.0
Received: by 10.151.108.20 with SMTP id k20mr188440ybm.14.1222116190561; Mon,
22 Sep 2008 13:43:10 -0700 (PDT)
Date: Mon, 22 Sep 2008 13:43:10 -0700 (PDT)
In-Reply-To: <cd9bd463-fc82-42a4-afc7-456e682a963d@k37g2000hsf.googlegroups.com>
X-IP: 67.186.241.195
References: <189317d6-f3c0-476e-8694-b97c262d924b@p10g2000prf.googlegroups.com>
<cd9bd463-fc82-42a4-afc7-456e682a963d@k37g2000hsf.googlegroups.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US)
AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.2.149.30 Safari/525.13,gzip(gfe),gzip(gfe)
Message-ID: <42c0bcdc-5451-4cad-a6ec-ae30378a9970@z11g2000prl.googlegroups.com>
Subject: Re: Trying to install, but getting syntax error
From: nerdydork <dustin.da...@gmail.com>
To: modwsgi <modwsgi@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Well, maybe was wrong. when I run ./configure, it looks like it's
pulling the right version of Apache:
root@host [/usr/local/src/mod_wsgi-2.3]# ./configure
checking for apxs2... no
checking for apxs... /usr/sbin/apxs
checking Apache version... 2.2.9
checking for python... /usr/local/bin/python
configure: creating ./config.status
config.status: creating Makefile
On Sep 22, 2:17=A0pm, Clodoaldo <clodoaldo.pi...@gmail.com> wrote:
> On Sep 22, 4:40=A0pm, nerdydork <dustin.da...@gmail.com> wrote:
>
>
>
> > When I try adding the line to Load the module in httpd.conf
>
> > LoadModule wsgi_module /usr/lib/httpd/modules/mod_wsgi.so
>
> > I get the following error:
> > Configuration problem detected on line 221 of file /usr/local/apache/
> > conf/httpd.conf: =A0 =A0 =A0 =A0: Syntax error on line 1 of /usr/local/=
apache/conf/
> > includes/pre_virtualhost_2.conf: API module structure 'wsgi_module' in
> > file /usr/lib/httpd/modules/mod_wsgi.so is garbled - expected
> > signature 41503232 but saw 41503230 - perhaps this is not an Apache
> > module DSO, or was compiled for a different Apache version? --- /usr/
> > local/apache/conf/httpd.conf --- 215 216 217 218# SUEXEC is supported
> > 219 220Include "/usr/local/apache/conf/includes/
> > pre_virtualhost_global.conf" 221 =3D=3D=3D> Include "/usr/local/apache/=
conf/
> > includes/pre_virtualhost_2.conf" <=3D=3D=3D 222 223# DO NOT EDIT.
> > AUTOMATICALLY GENERATED. IF YOU NEED TO MAKE A CHANGE PLEASE USE THE
> > INCLUDE FILES. 224NameVirtualHost * 225 226# Default vhost for unbound
> > IPs 227 --- /usr/local/apache/conf/httpd.con
>
> > I'm thinking maybe it is trying to compile for Apache 2.0 and I'm
> > running Apache 2.2? Can someone tell me how I might fix this?
>
> If you have both versions installed then you can use the --with-apxs
> option of the configure script:
>
> http://code.google.com/p/modwsgi/wiki/QuickInstallationGuide
>
> Regards, Clodoaldo Pinto Neto
>
> > Thanks,