Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-16-2011, 01:48 PM
|
#1
|
LQ Newbie
Registered: Jul 2009
Posts: 25
Rep:
|
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]
|
|
|
01-16-2011, 02:52 PM
|
#2
|
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824
|
Something is already bound to port 8080. Try this instead, to find out what:
|
|
|
01-17-2011, 09:58 AM
|
#3
|
Member
Registered: Jul 2005
Location: Brazil
Distribution: Slackware, openSuSe, Ubuntu, Fedora
Posts: 56
Rep:
|
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).
|
|
|
01-17-2011, 12:39 PM
|
#4
|
LQ Newbie
Registered: Jul 2009
Posts: 25
Original Poster
Rep:
|
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
|
|
|
01-17-2011, 12:48 PM
|
#5
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
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
|
|
|
01-17-2011, 06:26 PM
|
#6
|
Member
Registered: Jul 2005
Location: Brazil
Distribution: Slackware, openSuSe, Ubuntu, Fedora
Posts: 56
Rep:
|
Agree,
Is this apache config file the default config file? Because really looks like something is wrong.
|
|
|
All times are GMT -5. The time now is 11:37 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|