LinuxQuestions.org
Visit Jeremy's Blog.
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 02-03-2010, 08:36 PM   #1
casperdaghost
Member
 
Registered: Aug 2009
Posts: 349

Rep: Reputation: 16
trying to start apache


start apache - and get this error message.

casper@casper-laptop:~$ apache2ctl restart
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
httpd not running, trying to start
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs


yet when i run a ps check:

casper@casper-laptop:~$ ps auxwww | grep apache
root 5076 0.0 0.9 15932 4980 Ss 21:14 0:00 /usr/sbin/apache2 -k start
www-data 5079 0.0 0.5 15704 3056 21:14 0:00 /usr/sbin/apache2 -k start
www-data 5081 0.0 0.7 237284 3 21:14 0:00 /usr/sbin/apache2 -k start
www-data 5085 0.0 0.7 237284 21:14 0:00 /usr/sbin/apache2 -k start
casper 6902 0 812 pts/0 S+ 21:33 0:00 grep apahe
casper@casper-laptop:~$
 
Old 02-03-2010, 08:39 PM   #2
nicedream
Member
 
Registered: Feb 2010
Distribution: Arch Linux
Posts: 68

Rep: Reputation: 19
It looks like you are not running the restart command as root, therefore your previous instances of apache are never shut down.
 
Old 02-04-2010, 12:35 AM   #3
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,629

Rep: Reputation: Disabled
Try running the command as root.
 
Old 02-04-2010, 01:55 AM   #4
Phoxis
Member
 
Registered: Feb 2008
Location: India, Kolkata
Distribution: Fedora 16
Posts: 59

Rep: Reputation: 16
I start, stop, or restart apache service as below, after logging in as superuser

service httpd start
service httpd stop
service httpd restart

Or if it is needed after every logging it could be permanently set to run at startup by editing the services, by chkconfig or other graphical tools.
 
Old 02-04-2010, 09:45 AM   #5
kevmcool
Member
 
Registered: Dec 2009
Location: London
Distribution: CentOS
Posts: 36

Rep: Reputation: 15
make sure the tux service is not running on port 80
service tux status
 
Old 02-04-2010, 10:22 AM   #6
nicedream
Member
 
Registered: Feb 2010
Distribution: Arch Linux
Posts: 68

Rep: Reputation: 19
Quote:
Originally Posted by kevmcool View Post
make sure the tux service is not running on port 80
service tux status
I would say that the odds of the tux webserver running on port 80 are very slim. Not to mention there are at least a half-dozen other http servers that could be running on port 80 (lighttpd, nginx, cherokee...)

I don't know why you singled out tux as the one service he should check for. But, if you want to see what services are bound to which ports, run this command:

Code:
lsof -i
 
  


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
Apache Webserver on Slackware - Failed to Start Apache - 'no listening sockets .." CCTVGuru Linux - Server 4 10-11-2009 01:14 AM
Failed to start apache : Apache does not appear to be running : number11 Slackware 9 02-11-2005 09:51 AM
can't get SSLl working on Apache. Apache won't start bentman78 Linux - Software 1 08-10-2003 06:17 PM
Apache 2.0.45 does not start arkopolo Linux - Software 1 07-08-2003 12:52 PM
Apache won't start .... yogi-bear Linux - Newbie 2 09-03-2002 04:31 AM

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

All times are GMT -5. The time now is 08:26 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
Open Source Consulting | Domain Registration