logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 



Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.



Apache doesn't start when I try to load mod_perl

 
Post new topic   Reply to topic    Apache Forum Index -> Apache third-party Modules



View previous topic :: View next topic  
Author Message
craigt



Joined: 03 Sep 2012
Posts: 12
Location: Richmond, ky

PostPosted: Thu 06 Sep '12 18:42    Post subject: Apache doesn't start when I try to load mod_perl Reply with quote

I've recently purchased a Windows 7 home Premium 64 bit laptop, after my XP home box was corrupted during an interrupted download. My old box ran Apache 2.2, mod_perl 2.0, and Perl 5.8. I've been developing an application for the last 4 or 5 years and that platform has been rock solid. I was up under mod_perl with no errors. I have the same development set on the new laptop. Apache 2.2 and Perl 5.8 are working well. But when I try to loadmodule mod_perl.so from the httpd.conf file as I did on the old box, Apache crashes. I'm hoping to get some guidance or suggestion about troubleshooting this. Maybe someone in your forum has had a similiar experience.

Thanks,
craigt
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 2581
Location: Hilversum, NL, EU

PostPosted: Thu 06 Sep '12 19:24    Post subject: Reply with quote

Anything in the Apache error.log or in the Windows event viewer ?
Back to top
craigt



Joined: 03 Sep 2012
Posts: 12
Location: Richmond, ky

PostPosted: Thu 06 Sep '12 19:41    Post subject: Reply with quote

I should have included that there is nothing in the error log when the server does not start. I have not looked at Windows events however. I will and get back.
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 2581
Location: Hilversum, NL, EU

PostPosted: Thu 06 Sep '12 19:44    Post subject: Reply with quote

What happens when test Apache in the windows command:

>httpd.exe -t
Back to top
craigt



Joined: 03 Sep 2012
Posts: 12
Location: Richmond, ky

PostPosted: Thu 06 Sep '12 20:28    Post subject: Reply with quote

Steffan,

I found 3 messages related to our discussion in the event viewer. They are:

The Apache2.2 service terminated with service-specific error Incorrect function.

The Apache service named reported the following error:
>>> be found.

The Apache service named reported the following error:
>>> httpd.exe: Syntax error on line 134 of C:/Program Files (x86)/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/Program Files (x86)/Apache Software Foundation/Apache2.2/modules/mod_perl.so into server: The specified procedure could not .

Notice the messages are somewhat discombobulated, but I thin they say the procedure could not be found.

This is the command I issue in the httpd,conf file.
LoadModule perl_module modules/mod_perl.so
This statement was given in the ppm installation process.

How can I check what perl_module resolves to???

Also, the server runs fine until I uncomment the mod_perl loadmodule command.
Back to top
craigt



Joined: 03 Sep 2012
Posts: 12
Location: Richmond, ky

PostPosted: Thu 06 Sep '12 20:44    Post subject: Reply with quote

The httpd.exe -t test said OK.
Back to top
craigt



Joined: 03 Sep 2012
Posts: 12
Location: Richmond, ky

PostPosted: Thu 06 Sep '12 20:48    Post subject: Reply with quote

Its saying that it can't find mod_per.so, but it is in the modules directory in the Apache tree.
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 2581
Location: Hilversum, NL, EU

PostPosted: Thu 06 Sep '12 22:13    Post subject: Reply with quote

Try first to use excatly the same Apache 2.2, mod_perl 2.0, and Perl 5.8 from your old box, using the same folder structure and the same config files.
Back to top
craigt



Joined: 03 Sep 2012
Posts: 12
Location: Richmond, ky

PostPosted: Thu 06 Sep '12 22:45    Post subject: Reply with quote

Steffan,

This is an accurate statement of my 2 environments. I mispoke earlier.

old - Apache 2.0, mod_perl 2.0 for Apache 2.0, and Perl 5.8

new - Apache 2.2, mod_perl 2.0 for Apache 2.2, and Perl 5.8

I am trying to go back to the old configuration on the new machine. I'm not sure how to invoke Apache at start up. I went into the bin directory and issued an Apache -k start and it told me that no service name Apache2 had been installed. I need to understand how to start Apache 2.0 server and monitor at startup. The monitor starts right up as a process from the command line.
Back to top
craigt



Joined: 03 Sep 2012
Posts: 12
Location: Richmond, ky

PostPosted: Fri 07 Sep '12 17:15    Post subject: Reply with quote

I'm having trouble.

The Apache 2.2 server works well as long as I don't try to LoadModule mod_perl.so. When I do, the windows event log records 3 events that tell me mod_per.so can't be found. It is in the modules directory.

I've tried to get back to Apache 2.0. To this end, I have copied the Apache Group tree to my new machine. This tree already had mpd_perl 2.0 for Apache 2.0 installed. This is all I've done to install 2.0 at this point. When I go to the 2.0 bin and try to install 2.0 as a service(-k install), a popup tell me that 'the procedure entry point Perl_sv_2iv_flags couldnot be located in the Perl58.dll'. Is my 2.0 install incomplete. Can I delete the Apache 2.0 tree I copied in, reinstall Apache 2.0 and mod_perl 2.0 for Apache 2.0 and simply place my old httpd and start-up.pl files in the conf directory and be ready to try?

Also, to try Apache 2.0, do I have to stop Apache 2.2?
Back to top
craigt



Joined: 03 Sep 2012
Posts: 12
Location: Richmond, ky

PostPosted: Fri 07 Sep '12 17:23    Post subject: Reply with quote

Also, is there a conflict having Apache 2.2 and Apache 2.0 installed. Shouldn't I be able to install both as a service, disable 2.2 and test 2.0.
Back to top
craigt



Joined: 03 Sep 2012
Posts: 12
Location: Richmond, ky

PostPosted: Fri 07 Sep '12 19:52    Post subject: Reply with quote

I don't know what Apache does during installation.
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2123
Location: Sun Diego, USA

PostPosted: Fri 07 Sep '12 23:00    Post subject: Reply with quote

Is that mod_perl you are trying to use on 2.2 the one that you were using for Apache 2.0?

Yes, you can install both since one will name the service Apache2 and the other Apache2.2. It's also

For Apache 2.0
apache -k install
apache -k start


For Apache 2.2
httpd -k install
httpd -k start


Modnote: corrected typo Wink
Back to top
craigt



Joined: 03 Sep 2012
Posts: 12
Location: Richmond, ky

PostPosted: Sat 08 Sep '12 3:25    Post subject: Reply with quote

I uninstalled Apache 2.2 and mod_perl foe that Apache and installed Apache 2.0 and mod_perl for Apacje 2.0. I had copied the Perl 5.8 tree to my new machine previously. I booted and it came right uo, created the repository, and worked as it should. Thank you Steffan for the suggestion.
Back to top


Post new topic   Reply to topic    Apache Forum Index -> Apache third-party Modules
Page 1 of 1