LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-01-2003, 03:30 PM   #1
automicro
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
at
/etc/httpd/conf/addon-modules/apache2-mod_perl-startup.pl
line 36, near "NameVirtualHost 161.184.xxx.xxx"
(Do you need to predeclare NameVirtualHost?)
Number found where operator expected at
/etc/httpd/conf/addon-modules/apache2-mod_perl-startup.pl
line 38, near "VirtualHost 161.184.xxx.xxx"
(Do you need to predeclare VirtualHost?)
[Fri Aug 01 13:48:53 2003] [error] Search pattern not
terminated at
/etc/httpd/conf/addon-modules/apache2-mod_perl-startup.pl
line 39.
Compilation failed in require at (eval 1) line 1.
[Fri Aug 01 13:48:53 2003] [error] Can't load Perl
file:
/etc/httpd/conf/addon-modules/apache2-mod_perl-startup.pl
for server algxxx76fy42sa.ab.hsia.telus.net:0,
exiting...

[FAILED]
 
Old 08-01-2003, 04:45 PM   #2
Mara
Moderator
 
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/apache2-mod_perl-startup.pl)? 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
automicro
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
directories
# for libraries, so we can, for example, put a dummy
Apache::Status
# since it's not present in mod_perl 2.0.
use Config;
if ( -e "$Config{'vendorarch'}/Apache.pm" ) {
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';

1;
NameVirtualHost somthing.com

<VirtualHost somthing.com:*>
</VirtualHost>
 
  


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
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:23 AM.

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
Open Source Consulting | Domain Registration