LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 10-14-2011, 02:16 AM   #1
Ashhere
LQ Newbie
 
Registered: Aug 2008
Posts: 25

Rep: Reputation: 15
Question Linux Apache


Hi

I am working on CentOS. I believe Apache is already installed on the machine; so I did

Quote:
[root@localhost ~]# httpd -v
Server version: Apache/2.2.3
Server built: Aug 31 2011 20:18:21
[root@localhost ~]# su -c "cd /; updatedb"
[root@localhost ~]# locate apachectl
and got

Quote:
/usr/sbin/apachectl
/usr/share/man/man8/apachectl.8.gz
To start the server
Quote:
[root@localhost sbin]# ./apachectl start
but localhost:8080 gives the error
Firefox can't establish a connection to the server at localhost:8080.

So i tried
[QUOTE][root@localhost sbin]# netstat -an | grep 8080
[root@localhost sbin]# [QUOTE]
but no results!

Help me please.
 
Old 10-14-2011, 02:27 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello,

Did you configure Apache to listen on port 8080? Standard Apaches listens on port 80 and unless you configured it to listen on another port or configured a VirtualHost listening on that port, those results are normal behavior. Try just to open http://localhost without a port, which will connect to port 80 on your localhost.

Kind regards,

Eric
 
1 members found this post helpful.
Old 10-14-2011, 03:29 AM   #3
Ashhere
LQ Newbie
 
Registered: Aug 2008
Posts: 25

Original Poster
Rep: Reputation: 15
Hey, thanks for that. I wonder how simple my problem was!
 
Old 10-14-2011, 03:30 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi,

Does that mean it's working and you just were confused about the ports?

Kind regards,

Eric

EDIT: I guess it does since you marked your thread as solved. Thanks.

Last edited by EricTRA; 10-14-2011 at 03:32 AM.
 
  


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
setting up apache from scratch on a linux machine, apache failed message upon bootup dramous43 Linux - Enterprise 2 01-26-2010 08:53 AM
apache on linux nagavinodh Linux - Newbie 2 10-13-2009 08:18 PM
Linux Apache and IE stash1071 Linux - General 6 08-08-2006 09:57 AM
apache benchmarks (apache v13 / apache v20) ; large differences between benchmarking markus1982 Linux - Software 0 02-08-2003 11:53 AM


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