LinuxQuestions.org
Visit Jeremy's Blog.
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 01-16-2011, 01:48 PM   #1
pbaker
LQ Newbie
 
Registered: Jul 2009
Posts: 25

Rep: Reputation: 15
Apache Start Problem


im running CentOS 5.5 and tried to install ISP Config but im getting the following error on bootup and when i try to start the service. I have use netstat and nmap i think its called to see if those ports are being use but they are being listed. Can anyone help with this.

httpd failed. The error was: Starting httpd: [Sun Jan 16 19:46:10 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
(99)Cannot assign requested address: make_sock: could not bind to address 000.000.00.000:8080
no listening sockets available, shutting down
Unable to open logs
[FAILED]
 
Old 01-16-2011, 02:52 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Something is already bound to port 8080. Try this instead, to find out what:
Code:
lsof -i tcp:8080
 
Old 01-17-2011, 09:58 AM   #3
suid0
Member
 
Registered: Jul 2005
Location: Brazil
Distribution: Slackware, openSuSe, Ubuntu, Fedora
Posts: 56

Rep: Reputation: 16
Hello,

lsof is a good one but a personally prefer to use "netstat -ntap |grep LISTEN" on Linux.
If this port is listed on the response, check what is the program holding it and identify it's PID so you can kill -9 if required.
This info is at the end of the line. Ex: 9999/apache

You can also paste the output of your command here (if not too big).
 
Old 01-17-2011, 12:39 PM   #4
pbaker
LQ Newbie
 
Registered: Jul 2009
Posts: 25

Original Poster
Rep: Reputation: 15
Hi thank you for your help but this hasnt helped if i type in lsof -i tcp:8080 at the terminal prompt it doesnt show anything just a new prompt line to start typing something else. I did try to restart apache after this and still the same error.

I also tried the suggestion of putting in netstat -ntap |grep LISTEN" and below is the response but no port 8080 listed

[root@localhost ~]# netstat -ntap |grep LISTEN
tcp 0 0 127.0.0.1:2208 0.0.0.0:* LISTEN 2950/hpiod
tcp 0 0 127.0.0.1:10024 0.0.0.0:* LISTEN 3131/amavisd (maste
tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN 3184/master
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 3074/mysqld
tcp 0 0 0.0.0.0:5900 0.0.0.0:* LISTEN 4397/vino-server
tcp 0 0 127.0.0.1:3310 0.0.0.0:* LISTEN 2990/clamd
tcp 0 0 0.0.0.0:782 0.0.0.0:* LISTEN 2720/rpc.statd
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 2679/portmap
tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN 3471/dnsmasq
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 3213/pure-ftpd (SER
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 2658/named
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 2977/cupsd
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 3184/master
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 2658/named
tcp 0 0 127.0.0.1:2207 0.0.0.0:* LISTEN 2955/python
tcp 0 0 :::21 :::* LISTEN 3213/pure-ftpd (SER
tcp 0 0 ::1:53 :::* LISTEN 2658/named
tcp 0 0 :::22 :::* LISTEN 2968/sshd
tcp 0 0 ::1:953 :::* LISTEN 2658/named
 
Old 01-17-2011, 12:48 PM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
httpd: [Sun Jan 16 19:46:10 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
Seems to me there is a problem with your virtual hosts.
Make sure the config is correct.

Kind regards
 
Old 01-17-2011, 06:26 PM   #6
suid0
Member
 
Registered: Jul 2005
Location: Brazil
Distribution: Slackware, openSuSe, Ubuntu, Fedora
Posts: 56

Rep: Reputation: 16
Agree,

Is this apache config file the default config file? Because really looks like something is wrong.
 
  


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
Auto start problem Apache pronov Linux - Newbie 1 08-07-2009 02:49 AM
apache start problem fnoyan Linux - General 2 10-21-2005 06:09 AM
Apache Start problem SimonT Linux - Software 10 10-22-2004 02:34 AM
apache start problem davidk Linux - Networking 7 09-13-2004 10:17 PM
Apache problem - httpd won't start. Iced_Falcon Linux - Networking 3 12-22-2001 04:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:37 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