Cannot start Apache with mod_perl

Cannot start Apache with mod_perl

am 06.10.2008 00:51:37 von Andrew.Ircha

I'm attempting to run httpd with mod_perl, but the httpd refuses to
start:

Starting httpd: httpd: Syntax error on line 209 of
/etc/httpd/conf/httpd.conf: Syntax error on line 10 of
/etc/httpd/conf.d/perl.conf: Cannot load /etc/httpd/modules/mod_perl.so
into server: /etc/httpd/modules/mod_perl.so: undefined symbol:
modperl_io_perlio_restore_stdout

There's a hint on this mailing list that mod_perl 2 and perl 5.10.0
don't work together, but I'd like to discuss this before going back to
5.8.8, as I don't know how to downgrade perl with yum.



**** Machine and software details ****

My operating system:

[root@optimusprime ~]# more /etc/redhat-release
Fedora release 8 (Werewolf)

[root@optimusprime ~]# uname -a
Linux optimusprime 2.6.23.1-42.fc8 #1 SMP Tue Oct 30 13:55:12 EDT 2007
i686 i686 i386 GNU/Linux

Perl:

[root@optimusprime ~]# perl -v

This is perl, v5.10.0 built for i386-linux-thread-multi

Httpd:

[root@optimusprime ~]# httpd -v
Server version: Apache/2.2.9 (Unix)
Server built: Jul 14 2008 10:24:42

Perl, httpd and mod_perl were all installed with yum. I have also tried=20

perl Makefile.PL MP_APXS=3D/usr/sbin/apxs
make
make install

Which appeared to have correctly built mod_perl.so in the right place
(/etc/httpd/modules) but produces the same error.

[root@optimusprime ~]# yum list mod_perl
Loaded plugins: allowdowngrade, refresh-packagekit
Installed Packages
mod_perl.i386 2.0.4-6
installed

Andrew Ircha

Re: Cannot start Apache with mod_perl

am 07.10.2008 15:56:09 von ispyhumanfly

Ircha, Andrew wrote:
> I'm attempting to run httpd with mod_perl, but the httpd refuses to
> start:
>
> Starting httpd: httpd: Syntax error on line 209 of
> /etc/httpd/conf/httpd.conf: Syntax error on line 10 of
> /etc/httpd/conf.d/perl.conf: Cannot load /etc/httpd/modules/mod_perl.so
> into server: /etc/httpd/modules/mod_perl.so: undefined symbol:
> modperl_io_perlio_restore_stdout
>
> There's a hint on this mailing list that mod_perl 2 and perl 5.10.0
> don't work together, but I'd like to discuss this before going back to
> 5.8.8, as I don't know how to downgrade perl with yum.
>
I'm not expert in regards to this matter, however I run mod_perl2 and
Perl 5.10 just fine. So I'd be looking elsewhere for a solution...

--
_ispy++ >> ispyhumanfly@gmail.com :: use Perl;

Re: Cannot start Apache with mod_perl

am 08.10.2008 19:02:41 von Fred Moyer

ispyhumanfly wrote:
> Ircha, Andrew wrote:
>> I'm attempting to run httpd with mod_perl, but the httpd refuses to
>> start:
>>
>> Starting httpd: httpd: Syntax error on line 209 of
>> /etc/httpd/conf/httpd.conf: Syntax error on line 10 of
>> /etc/httpd/conf.d/perl.conf: Cannot load /etc/httpd/modules/mod_perl.so
>> into server: /etc/httpd/modules/mod_perl.so: undefined symbol:
>> modperl_io_perlio_restore_stdout

My gut says that you have some of the original FC8 libraries hanging
around - if you are running 5.10.0 then your fedora install must have
upgraded at some point. Those undefined symbol errors usually indicate
version mismatches of the underlying libraries.

For what it is worth, I would 'rpm -e mod_perl', then try building it
from source. Just download 2.0.4, untar it, cd into the directory, and
run 'perl Makefile.PL && make && make test && sudo make install', apxs
should be in your PATH with the standard fedora setup.

>> There's a hint on this mailing list that mod_perl 2 and perl 5.10.0
>> don't work together, but I'd like to discuss this before going back to
>> 5.8.8, as I don't know how to downgrade perl with yum.
>>
> I'm not expert in regards to this matter, however I run mod_perl2 and
> Perl 5.10 just fine. So I'd be looking elsewhere for a solution...

RE: Cannot start Apache with mod_perl

am 09.10.2008 01:25:48 von Andrew.Ircha

This is a multi-part message in MIME format.

------_=_NextPart_001_01C9299D.321CB660
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Thanks for the suggestion. Errant symbols implied a build on the server =
might be an idea.

Sad to say I tried downloading the sources and running 'perl =
Makefile.PL' etc before posting my message. Yes, I navigated to =
/etc/httpd/modules to look at mod_perl.so to check the file modification =
time.

I downloaded the .gz.tar archive from the mod_perl website.

Thanks again, but no dice.

Actually there's a funny story about this. Makefile.PL didn't work =
because my perl 5.10 installation didn't have the necessary make stuff. =
I couldn't get the necessary stuff because CPAN.pm wasn't installed. I =
figured that perl wasn't correctly installed. So, I yum remove perl. =
Ouch!! This uninstalled about 300 packages totalling some 200+ MBytes. I =
then spend most of the remainder of the evening re-installing and =
ftp'ing the missing guts of my system. (This shows just how naive I am).

-----Original Message-----
From: Fred Moyer [mailto:fred@redhotpenguin.com]
Sent: Wed 10/8/2008 6:02 PM
To: Ircha, Andrew
Cc: modperl@perl.apache.org
Subject: Re: Cannot start Apache with mod_perl
=20
ispyhumanfly wrote:
> Ircha, Andrew wrote:
>> I'm attempting to run httpd with mod_perl, but the httpd refuses to
>> start:
>>
>> Starting httpd: httpd: Syntax error on line 209 of
>> /etc/httpd/conf/httpd.conf: Syntax error on line 10 of
>> /etc/httpd/conf.d/perl.conf: Cannot load =
/etc/httpd/modules/mod_perl.so
>> into server: /etc/httpd/modules/mod_perl.so: undefined symbol:
>> modperl_io_perlio_restore_stdout

My gut says that you have some of the original FC8 libraries hanging=20
around - if you are running 5.10.0 then your fedora install must have=20
upgraded at some point. Those undefined symbol errors usually indicate=20
version mismatches of the underlying libraries.

For what it is worth, I would 'rpm -e mod_perl', then try building it=20
from source. Just download 2.0.4, untar it, cd into the directory, and=20
run 'perl Makefile.PL && make && make test && sudo make install', apxs=20
should be in your PATH with the standard fedora setup.

>> There's a hint on this mailing list that mod_perl 2 and perl 5.10.0
>> don't work together, but I'd like to discuss this before going back =
to
>> 5.8.8, as I don't know how to downgrade perl with yum.
>> =20
> I'm not expert in regards to this matter, however I run mod_perl2 and=20
> Perl 5.10 just fine. So I'd be looking elsewhere for a solution...



------_=_NextPart_001_01C9299D.321CB660
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable




charset=3Diso-8859-1">
6.5.7638.1">
RE: Cannot start Apache with mod_perl




Thanks for the suggestion. Errant symbols implied a =
build on the server might be an idea.



Sad to say I tried downloading the sources and running 'perl =
Makefile.PL' etc before posting my message. Yes, I navigated to =
/etc/httpd/modules to look at mod_perl.so to check the file modification =
time.



I downloaded the .gz.tar archive from the mod_perl website.



Thanks again, but no dice.



Actually there's a funny story about this. Makefile.PL didn't work =
because my perl 5.10 installation didn't have the necessary make stuff. =
I couldn't get the necessary stuff because CPAN.pm wasn't installed. I =
figured that perl wasn't correctly installed. So, I yum remove perl. =
Ouch!! This uninstalled about 300 packages totalling some 200+ MBytes. I =
then spend most of the remainder of the evening re-installing and =
ftp'ing the missing guts of my system. (This shows just how naive I =
am).



-----Original Message-----

From: Fred Moyer [ HREF=3D"mailto:fred@redhotpenguin.com">mailto:fred@redhotpen guin.com]=


Sent: Wed 10/8/2008 6:02 PM

To: Ircha, Andrew

Cc: modperl@perl.apache.org

Subject: Re: Cannot start Apache with mod_perl



ispyhumanfly wrote:

> Ircha, Andrew wrote:

>> I'm attempting to run httpd with mod_perl, but the httpd =
refuses to

>> start:

>>

>> Starting httpd: httpd: Syntax error on line 209 of

>> /etc/httpd/conf/httpd.conf: Syntax error on line 10 of

>> /etc/httpd/conf.d/perl.conf: Cannot load =
/etc/httpd/modules/mod_perl.so

>> into server: /etc/httpd/modules/mod_perl.so: undefined =
symbol:

>> modperl_io_perlio_restore_stdout



My gut says that you have some of the original FC8 libraries hanging

around - if you are running 5.10.0 then your fedora install must =
have

upgraded at some point.  Those undefined symbol errors usually =
indicate

version mismatches of the underlying libraries.



For what it is worth, I would 'rpm -e mod_perl', then try building =
it

from source.  Just download 2.0.4, untar it, cd into the directory, =
and

run 'perl Makefile.PL && make && make test && =
sudo make install', apxs

should be in your PATH with the standard fedora setup.



>> There's a hint on this mailing list that mod_perl 2 and perl =
5.10.0

>> don't work together, but I'd like to discuss this before going =
back to

>> 5.8.8, as I don't know how to downgrade perl with yum.

>>  

> I'm not expert in regards to this matter, however I run mod_perl2 =
and

> Perl 5.10 just fine.  So I'd be looking elsewhere for a =
solution...










------_=_NextPart_001_01C9299D.321CB660--

RE: Cannot start Apache with mod_perl

am 05.11.2008 11:25:04 von Andrew.Ircha

Coming back to this, I used yum to update from mod_perl 2.0.4-6 to
2.0.4-7 and I was able to restart httpd (Apache). Haven't done any more
testing, but this is an encouraging start.
=20

________________________________

From: Ircha, Andrew =20
Sent: 09 October 2008 00:26
Subject: RE: Cannot start Apache with mod_perl



Thanks for the suggestion. Errant symbols implied a build on the server
might be an idea.

Sad to say I tried downloading the sources and running 'perl
Makefile.PL' etc before posting my message. Yes, I navigated to
/etc/httpd/modules to look at mod_perl.so to check the file modification
time.

I downloaded the .gz.tar archive from the mod_perl website.

Thanks again, but no dice.

Actually there's a funny story about this. Makefile.PL didn't work
because my perl 5.10 installation didn't have the necessary make stuff.
I couldn't get the necessary stuff because CPAN.pm wasn't installed. I
figured that perl wasn't correctly installed. So, I yum remove perl.
Ouch!! This uninstalled about 300 packages totalling some 200+ MBytes. I
then spend most of the remainder of the evening re-installing and
ftp'ing the missing guts of my system. (This shows just how naive I am).

-----Original Message-----
From: Fred Moyer=20
Sent: Wed 10/8/2008 6:02 PM
To: Ircha, Andrew
Cc: modperl@perl.apache.org
Subject: Re: Cannot start Apache with mod_perl

ispyhumanfly wrote:
> Ircha, Andrew wrote:
>> I'm attempting to run httpd with mod_perl, but the httpd refuses to
>> start:
>>
>> Starting httpd: httpd: Syntax error on line 209 of
>> /etc/httpd/conf/httpd.conf: Syntax error on line 10 of
>> /etc/httpd/conf.d/perl.conf: Cannot load
/etc/httpd/modules/mod_perl.so
>> into server: /etc/httpd/modules/mod_perl.so: undefined symbol:
>> modperl_io_perlio_restore_stdout

My gut says that you have some of the original FC8 libraries hanging
around - if you are running 5.10.0 then your fedora install must have
upgraded at some point. Those undefined symbol errors usually indicate
version mismatches of the underlying libraries.

For what it is worth, I would 'rpm -e mod_perl', then try building it
from source. Just download 2.0.4, untar it, cd into the directory, and
run 'perl Makefile.PL && make && make test && sudo make install', apxs
should be in your PATH with the standard fedora setup.

>> There's a hint on this mailing list that mod_perl 2 and perl 5.10.0
>> don't work together, but I'd like to discuss this before going back
to
>> 5.8.8, as I don't know how to downgrade perl with yum.
>> =20
> I'm not expert in regards to this matter, however I run mod_perl2 and
> Perl 5.10 just fine. So I'd be looking elsewhere for a solution...