LinuxQuestions.org
Review your favorite Linux distribution.
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 04-23-2011, 11:32 AM   #1
123Linux321
LQ Newbie
 
Registered: Apr 2011
Posts: 14

Rep: Reputation: 0
Can't start Apache2 server in Ubuntu


Hi,

I've been receiving this error message every time I try to start Apahe2 from the terminal:
______________________________________________________________________
* Starting web server apache2 [Sat Apr 23 11:25:36 2011] [warn] NameVirtualHost 127.0.0.1:80 has no VirtualHosts
(13)Permission denied: make_sock: could not bind to address 127.0.0.1:80
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
_______________________________________________________________________

I've checked some of the posts here for people with similar problems, however nothing has managed to work so far. I also check the error logs, and nothing is recorded there.

The thing which really confuses me is that I can use telnet(on port 80) to receive the HTML file from my server. Also, if I type in localhost in my browser, then my web page will come up.

Everything seems to be working fine except for that permission denied message I get when I try to start apache2 from the terminal. Any ideas what's causing this? Thanks in advance.
 
Old 04-23-2011, 12:22 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Hi there,

Look for a file name ports.conf under /etc/apache2/

In that file you will find a line saying

NameVirtualHost 127.0.0.1:80
Listen 80

make it as follows:

NameVirtualHost *:80
Listen 80

Restart apache2 services using: service apache2 stop and then service apache2 start and see if you get that same error message again.
 
Old 05-01-2011, 09:34 AM   #3
123Linux321
LQ Newbie
 
Registered: Apr 2011
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks for the help. Everything is running fine.
 
  


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
How to get apache2 to start automatically on Ubuntu 10.04? walterbyrd Linux - Software 2 07-28-2010 03:48 PM
Ubuntu server apache2 changing documentroot gives a 403 rnx Linux - Server 12 06-01-2010 11:12 AM
How do i make my apache2 server on Ubuntu 9.04 desktop secure sego banti Linux - Newbie 2 09-17-2009 01:32 AM
Apache2 server on Ubuntu nw504 Linux - Server 2 02-17-2007 06:09 AM
apache2 server will not start JMcLaine Linux - Newbie 1 07-03-2006 09:47 PM

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

All times are GMT -5. The time now is 09:10 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration