LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 06-13-2010, 04:06 PM   #1
twisteguy22
LQ Newbie
 
Registered: Jun 2010
Posts: 16

Rep: Reputation: 1
apache2.conf webmin error


hello all. first post here, so bear with me.

I am setting up a web, dns, and ftp server using ubuntu server 10.04lts. i am using webmin to administrate it. when i try to start apache using webmin, i get this error:

Failed to start apache :
* Starting web server apache2
apache2: Syntax error on line 236 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/sites-enabled/000-default: No such file or directory
...fail!

what am i doing wrong or what can i fix here?

when i log into my server and go the the directory where it says it can't find that file and I list the files i can see it there. it is listed in red text.

whats does this all mean?

thanks for the help in advance.
 
Old 06-13-2010, 05:17 PM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,908

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
Hi and welcome to LQ

I guess you have to enable the default vhost:
Code:
sudo a2ensite default
Regards
 
Old 06-13-2010, 05:22 PM   #3
twisteguy22
LQ Newbie
 
Registered: Jun 2010
Posts: 16

Original Poster
Rep: Reputation: 1
thanks for that. i got a few errors about site defaults not existing, but also got one about a dangling symlink. i deleted it and apache started right up. must have just been a bug in web min that didn't catch that.
 
Old 06-13-2010, 05:33 PM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,908

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
This is what a2ensite is supposed to do. It creates the symlinks to sites-enabled.
Could be a permissions issue with webmin.
Anyway, you can use the Thread Tools and mark this thread as solved

Regards
 
  


Reply

Tags
apache, conf, webmin


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
"http://localhost/" gives access error & /etc/apache2/httpd.conf is empty Talaash Linux - Software 3 03-01-2008 06:10 PM
Webmin httpd.conf get 403 error craig_panama Linux - Server 4 02-23-2008 04:57 AM
Should I include srm.conf in httpd.conf in apache2? xpucto Linux - Software 3 02-16-2006 08:16 AM
apache2 and webmin patitoconejita Linux - Networking 8 09-08-2005 02:11 PM
saving changes to apache2/conf/httpd.conf file Zaius Linux - Newbie 6 01-09-2004 11:45 PM


All times are GMT -5. The time now is 12:49 AM.

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