LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-23-2007, 08:30 PM   #1
agentc0re
Member
 
Registered: Apr 2007
Location: SLC, UTAH
Distribution: Slackware
Posts: 200

Rep: Reputation: 32
mod_perl error Invalid command 'PerlOptions'


when i do apachectl configtest i receive
Code:
Invalid command 'PerlOptions', perhaps mis-spelled or defined by a module not included in the server configuration
i do have mod_perl loaded in the httpd.conf file. what i am doing is doing a #include /etc/apache/otrs.conf (the file that has the PerlOptions +ParseHeaders)

in my httpd.conf file just before i do the include i have <IFModule mod_perl.c> and then i end it after the include. not sure if i was supposed to do that or not but i with or without i still get the same error.

i found a post but i acidently closed it out and can't find it now. it said to copy 2 files from the mod_perl src dir after the make install to somewhere else and im wondering if that maybe what is holding me back.

any help is always appreciated! thanks slackers
 
Old 05-24-2007, 09:45 AM   #2
msantinho
Member
 
Registered: Oct 2005
Location: Lisbon
Distribution: Slackware
Posts: 51

Rep: Reputation: 15
Is this the post you were looking for?
http://www.linuxquestions.org/questi...d.php?t=520972

Would help if you tell us what Apache and mod_perl versions you're using.
 
Old 05-24-2007, 11:12 AM   #3
agentc0re
Member
 
Registered: Apr 2007
Location: SLC, UTAH
Distribution: Slackware
Posts: 200

Original Poster
Rep: Reputation: 32
sorry, didn't even think to mention that because i just used what comes preinstalled on 11.
so it's apache 1.3.37 (i think) and mod perl 1.30

Last edited by agentc0re; 05-24-2007 at 11:13 AM.
 
Old 05-24-2007, 11:22 AM   #4
agentc0re
Member
 
Registered: Apr 2007
Location: SLC, UTAH
Distribution: Slackware
Posts: 200

Original Poster
Rep: Reputation: 32
Well i got that file copied over, and set the permissions like you had mentioned in your thread.
when i installed mod_perl it updated my httpd.conf for me by loading the module in it correctly with both the lines you also mention in your post.

do you think i could be getting this error because im calling another .conf file? should i just add this code to my httpd.conf file? if i do would i need to add it under <IFModule mod_perl.c> </IFModule> section or would anywhere matter?

--edit--
i tried adding the code just to the httpd.conf file under the IFModule mod_perl.c section and still same error.

Last edited by agentc0re; 05-24-2007 at 12:20 PM.
 
Old 05-24-2007, 11:51 AM   #5
agentc0re
Member
 
Registered: Apr 2007
Location: SLC, UTAH
Distribution: Slackware
Posts: 200

Original Poster
Rep: Reputation: 32
Ah, i just found out i don't have a directory called /usr/bin/apxs. could this be a problem?

--edit-- i found it else where. i found it in /usr/sbin/apxs

Last edited by agentc0re; 05-24-2007 at 12:01 PM.
 
Old 05-24-2007, 01:34 PM   #6
agentc0re
Member
 
Registered: Apr 2007
Location: SLC, UTAH
Distribution: Slackware
Posts: 200

Original Poster
Rep: Reputation: 32
here is part of my apache log. maybe this might help solve the issue as well.
Code:
[Thu May 24 11:20:08 2007] [error] Can't locate ModPerl/Registry.pm in @INC (@INC contains: ../../ /opt/otrs/Kernel/cpan-lib /opt/otrs/ /usr/lib/perl5/5.8.8/i486-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i486-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl . /usr/ /usr/lib/perl) at (eval 93) line 3.\n
[Thu May 24 11:20:08 2007] [error] Undefined subroutine &ModPerl::Registry::handler called.\n
 
Old 05-24-2007, 02:22 PM   #7
agentc0re
Member
 
Registered: Apr 2007
Location: SLC, UTAH
Distribution: Slackware
Posts: 200

Original Poster
Rep: Reputation: 32
Solved

I solved it! well turns out what the program was telling me to do was for mod_perl. after digging in the documents for a while i saw the difference it was telling me to add to the httpd.conf file. obviously that line wasn't part of it.

so i got it up and operational! yey!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cryptsetup error (Command failed: Invalid argument) SlackN00b Slackware 5 02-07-2007 01:59 PM
[mod_perl] require error Suinatsa Programming 0 05-09-2006 11:32 AM
Apache2 Error on Start "Invalid Command" Salen Linux - Newbie 1 12-29-2005 02:55 PM
Apache error - Invalid Command 'AddType'... humbletech99 Linux - Networking 0 11-28-2005 09:22 AM
apache SSI error with Invalid command 'AddOutputFilter' Moebius Linux - Software 2 10-15-2004 01:18 PM


All times are GMT -5. The time now is 05:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration