Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

Is this normal?

Quote Reply
Is this normal?
When i try to restart httpd with following from the directory where it is with following:

httpd restart I get following error:

Invalid command 'PerlHandler' ........ (This is the part included as per GM)

On commenting the same and then running

httpd restart gives no error.

./httpd restart gives no error.

./httpd test gives no error.

So what is this error about 'Perlhandler'

The env in GM shows that it is running under mod_perl ...

Anup
Quote Reply
Re: [anup123] Is this normal? In reply to
RTFM :)

http://thingy.kcilink.com/...nd_PerlHandler_.html
Quote Reply
Re: [Paul] Is this normal? In reply to
Hi,

But the httpd.conf file has the following:

AddModule mod_perl.c

and it is mod_perl1.24

Thnx

Anup
Quote Reply
Re: [anup123] Is this normal? In reply to
Has it been working with mod_perl before or are you just trying to set it up with mod_perl?
Quote Reply
Re: [Paul] Is this normal? In reply to
Hi Paul.

It has been set with mod_perl from day1.

No changes have been done after setting up GM (by GT) and I remeber posting this error (httpd vs ./httpd) earlier also but just couldn't find the soln. Even ./httpd test command compiles and loads the GM without errors. The only problem is when i do not prefix that ./ to httpd command while in the directory where httpd is.

In fact if I do

[root@scorpio1 /root]# /etc/rc.d/init.d/httpd test
Preloading Gossamer Mail scripts into mod_perl:
. . . . . . . . . . .
All scripts compiled and loaded ok!


its only when i cd to init.d and then do

httpd test

that the error comes (which goes away when the GM mod_perl part is commented out). The httpd shows mod_perl, mod_jk, and FP support built in.

Any clues

Anup

Last edited by:

anup123: May 16, 2003, 5:46 AM
Quote Reply
Re: [anup123] Is this normal? In reply to
It's possible you are trying to restart the wrong httpd server. When cd'ing into /etc/rc.d/init.d and then using:

httpd restart

...then that's probably not doing what you think. From your shell account your path env will be taking over and you will be restarting the httpd server located somewhere like /usr/bin

/etc/rc.d/init.d/httpd test

...works because you are specifying the full path. Without the full path you'd need to do:

cd /etc/rc.d/init.d
./httpd test

Last edited by:

Paul: May 16, 2003, 6:54 AM
Quote Reply
Re: [Paul] Is this normal? In reply to
Thnx Paul it did clear all my doubts. An earlier post on this recommended me to contact my service provider wrt mod_perl /apache part but now it is clear. Sorry for being late on this and Thnks a lot.

Anup