Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

httpd dies during start-up of mod_perl script

Quote Reply
httpd dies during start-up of mod_perl script
Hi all,

Trying to get gossamer forum to work with mod_perl, I'm not sure why my httpd just dies like this.

I've modified the httpd.conf file to contain the <Location> directive, also created a startup.pl and invoked it in my httpd.conf (outside of the <location directive>, and after my LoadModule directives)

Then I stopped the webserver, restarted it back up, it will give me the following print out


Preloading Gossamer Forum modules into mod_perl:
. . . . . . . . . . .
All modules loaded ok!
Compiling all functions ... All modules compiled and loaded ok!
../bin/apachectl start: httpd could not be started


I then commented out my <location> directive, and left with only the PerlRequire line, tries to restart the webserver, and it still gave me this message.

which led me to believe
1. it is not my <location> directive
2. PerlRequire startup.pl probably worked fine, just didn't work well with my webserver.

I've ran gossamer forum fine on my other RedHat 8.0 machine (apache 1.3.27) which has mod_perl installed statically with apache, and it works fine.

This machine however, is on RedHat 7.3, Apache 1.3.23, and has mod_perl installed as a DSO.

Just wondering if people had experience with installing Gossamer running on mod_perl that is installed as DSO, or anyone has ever seen it happening like this.

Thanks in advance!

Connie theFirst
Quote Reply
Re: [theFirst] httpd dies during start-up of mod_perl script In reply to
Hi,

You'll need to check your server error log and see what the error message says. I'd guess that you don't have Apache::DBI module installed.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] httpd dies during start-up of mod_perl script In reply to
I installed apache::DBI before I restarted the webserver, and script ran fine, just the httpd dies soon after the script is started. I believe I gave the output on my last posting.

Wouldn't the script fail to run if I didn't install Apache::DBI?

I've checked the error log after I found out the httpd just won't start, and there is no error in the error logs. (not even a caught SIG{DIE} or something like that.)

Connie
Quote Reply
Re: [theFirst] httpd dies during start-up of mod_perl script In reply to
apachectl normally has a "configtest" option to spot errors in httpd.conf.
Quote Reply
Re: [Paul] httpd dies during start-up of mod_perl script In reply to
My Conf file passed the configtest option.

Connie
Quote Reply
Re: [theFirst] httpd dies during start-up of mod_perl script In reply to
Hi all,

My colleague reinstalled apache and mod_perl, and now it is working very well.

Though I can't tell the difference in speed. How do I know that I am actually using the mod_perl on the bulletin board?
Quote Reply
Re: [theFirst] httpd dies during start-up of mod_perl script In reply to
From the admin panel go to Tools > Environment and look for GATEWAY_INTERFACE. If it reads CGI-Perl/1.1 you are using mod_perl.

Last edited by:

Paul: Mar 18, 2003, 8:58 AM
Quote Reply
Re: [Paul] httpd dies during start-up of mod_perl script In reply to
Sadly Gossamer Forum does not have an Environment link (really needs to get put in).

You can go to Tools->FileMan->Preferences->Environment and look at

Persistant Env: mod_perl (1) SpeedyCGI (0)

If you don't see a 1, then it's not under mod_perl.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] httpd dies during start-up of mod_perl script In reply to
Hmm it does on my copy :(
Quote Reply
Re: [Paul] httpd dies during start-up of mod_perl script In reply to
Yeah, found out my problem

in my <Location> directive I specified the entire path relative to / rather than the path relative to the Document Root. ie, my gforum directory is in /web/www/gforum and my document root is /web/www, I put in <Location /web/www/gforum> , and should have put in <Location /gforum>

You know, I should have read the instructions more carefully...But then I think what was misleading about the instruction was that it used the URL as an example. (not that it was wrong, my brain just didn't translate the server path to the URL path...)

my bad...
Now its running great!
Thanks!