Visit Jeremy's Blog.
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 08-01-2003, 03:30 PM   #1
LQ Newbie
Registered: Jul 2003
Posts: 19

Rep: Reputation: 0
apache start error

When I start apache I get the following error: can someone help?

Starting httpd2: Number found where operator expected
line 36, near "NameVirtualHost"
(Do you need to predeclare NameVirtualHost?)
Number found where operator expected at
line 38, near "VirtualHost"
(Do you need to predeclare VirtualHost?)
[Fri Aug 01 13:48:53 2003] [error] Search pattern not
terminated at
line 39.
Compilation failed in require at (eval 1) line 1.
[Fri Aug 01 13:48:53 2003] [error] Can't load Perl
for server,

Old 08-01-2003, 04:45 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Could you please post the file (/etc/httpd/conf/addon-modules/ Remove all information you don't want to show, of course, but show the lines 36, 38 and 39.
Old 08-01-2003, 05:09 PM   #3
LQ Newbie
Registered: Jul 2003
Posts: 19

Original Poster
Rep: Reputation: 0
use Apache2 ();

use lib qw(/var/www/perl);

# If the mod_perl-common package is present, enable
# mod_perl 1.0 compatibility mode. Otherwise, we add
# /var/www/perl/.modperl2 to the list of searched
# for libraries, so we can, for example, put a dummy
# since it's not present in mod_perl 2.0.
use Config;
if ( -e "$Config{'vendorarch'}/" ) {
require Apache::compat
} else {
import lib qw(/var/www/perl/.modperl2);

use ModPerl::Util (); #for CORE::GLOBAL::exit

use Apache::RequestRec ();
use Apache::RequestIO ();
use Apache::RequestUtil ();

use Apache::Server ();
use Apache::ServerUtil ();
use Apache::Connection ();
use Apache::Log ();

use APR::Table ();

use ModPerl::Registry ();

use Apache::Const -compile => ':common';
use APR::Const -compile => ':common';




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
Apache wont start. Never seen this error before mpriddy Linux - Software 1 10-12-2004 03:44 PM
Apache start error varunbihani Linux - Software 1 05-06-2004 01:39 PM
apache start error akurtis Linux - Newbie 6 12-02-2003 11:14 PM
apache start error esteeven Linux - Software 4 09-04-2003 05:52 PM
Apache error on start! DragonClaw Linux - General 5 08-09-2001 11:34 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:57 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
Open Source Consulting | Domain Registration