Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-28-2010, 02:57 AM   #1
LQ Newbie
Registered: Aug 2008
Posts: 2

Rep: Reputation: 0
Congigring Apache2 ?

Hi Experts,

I have installed MYSQL, PHP & Apache2 in my Ubuntu. Now, I am having big problem in starting the apache2 web server. I know, I am making some mistake some where. I do not where.

I am giving the settings done in each file. Kindly verify.





hosts localhost vignesh

So, when I give the following command:
vignesh@vignesh:~$ sudo /etc/init.d/apache2 restart

I get these instructions:

/etc/host.conf: line 5: bad command `VirtualHost'
/etc/host.conf: line 7: bad command `localhost '
* Restarting web server apache2 Syntax error on line 2 of /etc/apache2/httpd.conf:
Invalid command 'VirtualHost', perhaps misspelled or defined by a module not included in the server configuration

And I do not know how to solve this for I am completely a newbie.

Hence, kindly help me.
With kind regards,
Old 03-28-2010, 03:18 AM   #2
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
You don't define the virtualhost in
Take a look at


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
Apache2.0.52, t1lib-5.0.2, php-apache2-5.0.2 wizard7423 Slackware 2 04-04-2011 08:09 PM
[SOLVED] Compiling my own apache2 on debian -- no /usr/sbin/apache2 ??? jippen Linux - Server 2 11-30-2009 03:21 AM
Apache2 - have to restart apache2 process every 10 mins to clear /tmp directory.... levi dehaan Linux - Software 8 09-01-2009 06:34 PM
SuSe Apache2 error: cannot adjust 'apache2' service sir_shunt SUSE / openSUSE 14 04-18-2006 11:36 AM
how to uninstall apache2 which is installed by emerge apache2 flybirdlong Linux - Software 1 07-17-2004 11:46 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:40 PM.

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