Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-01-2012, 05:21 PM   #1
LQ Newbie
Registered: Sep 2012
Posts: 9

Rep: Reputation: Disabled
Apache restart error

Hi All,

Syntax error on line 1 of /etc/apache2/httpd.conf:
Invalid command 'PerlSwitches', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.!

I got this error message to restart apache2
i am using apache2 in ubonto,
Old 10-01-2012, 08:23 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,047
Blog Entries: 11

Rep: Reputation: 907Reputation: 907Reputation: 907Reputation: 907Reputation: 907Reputation: 907Reputation: 907Reputation: 907
And what's on line 1 of /etc/apache2/httpd.conf ?
And how did it get there?
Old 10-01-2012, 08:41 PM   #3
LQ Newbie
Registered: Sep 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
Hi Tinkster,
This is two line in my local httpd.conf file

PerlSwitches -I/var/www/html/bugzilla -I/var/www/html/bugzilla/lib -w -T
PerlConfigRequire /var/www/html/bugzilla/
Old 10-02-2012, 05:48 AM   #4
Registered: Sep 2009
Location: Perth, W.A.
Distribution: Slackware 14, Debian 8, FreeBSD 10, OpenBSD
Posts: 189

Rep: Reputation: 35
On the face of it, you haven't enabled mod_perl.

LoadModule perl_module modules/
or similar. See


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
[SOLVED] Apache 2 restart error alandowley Linux - Newbie 11 07-01-2011 03:13 PM
Apache 2 error on restart but doesn't effect? Should I worry? damteke Linux - Server 11 10-27-2009 05:06 AM
can't trace frequent apache crash/automagic restart error I_AM Linux - General 1 04-09-2005 09:13 AM
how do i apache restart? einstien Linux - General 3 03-30-2005 02:22 PM
Apache can't restart Serbulent Linux - Enterprise 2 03-16-2005 03:29 AM

All times are GMT -5. The time now is 02:14 AM.

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