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 05-31-2012, 07:06 AM   #1
gemmajid
Member
 
Registered: Mar 2012
Location: Karachi
Distribution: Ubuntu, RedHat, CentOs,
Posts: 104

Rep: Reputation: Disabled
Use Apache from another System


Hello Friends,

I have installed apache in centos 6 i installed accounting software but i'm unable to use it from another system, i can use it from my browser by typing localhost/account, kindly tell me that how can i use it from another systems.
 
Old 05-31-2012, 07:13 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
how are you trying to reach it in the first place? the main targets to look at would be your iptables rules and dns if you're trying to reach it with anything other than an IP address.
 
Old 05-31-2012, 06:51 PM   #3
Mike_GoDaddy
LQ Newbie
 
Registered: May 2012
Location: Scottsdale, AZ
Posts: 3

Rep: Reputation: Disabled
gemmajid,

If you installed Apache on your local system and are using localhost to access the application you will be the only one able to do so. Localhost refers to your that machine you are currently using. If your ISP has provided you a dedicated IP others can use the IP address to reach your server instead of using localhost. If this is on a server you purchased from a hosting provider you should have an IP address you are using to connect to the server. That dedicated IP address should be what others use to reach your server over the internet. If neither of those situation match what you are trying to do can you provide more details?
 
Old 06-01-2012, 05:44 AM   #4
whysoserious
Member
 
Registered: May 2012
Location: London
Distribution: Debian and slackware for uni
Posts: 61

Rep: Reputation: Disabled
What ways have you tried already? Because localhost is only for that original machine. Open port 80 on your router and iptables. Then use your ip address which has been allocated to you to access the /account directory.
 
Old 06-01-2012, 06:47 AM   #5
Babertje
Member
 
Registered: Jun 2009
Location: Haarlem, The Netherlands
Distribution: Archlinux
Posts: 125

Rep: Reputation: 20
Like Mike GoDaddy mentioned normally Apache is only listening on localhost (Listen 127.0.0.1:80) if you want all machines in your LAN to join you must change it to its real LAN-IP like: Listen 192.168.1.250:80 for example.
 
Old 06-01-2012, 06:57 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Apache never ever comes configured to only listen on localhost in my experience. I don't think that is likely to be the cause at all. And if it was, the best solution is unlikely to be to listen on a different IP, but ALL IP's - "Listen *:80"
 
Old 06-01-2012, 07:58 AM   #7
whysoserious
Member
 
Registered: May 2012
Location: London
Distribution: Debian and slackware for uni
Posts: 61

Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
Apache never ever comes configured to only listen on localhost in my experience. I don't think that is likely to be the cause at all. And if it was, the best solution is unlikely to be to listen on a different IP, but ALL IP's - "Listen *:80"
Yes same here. I do not think that is the problem. If OP let's us know what the exact error is and what he us currently trying to do.
 
Old 06-02-2012, 12:17 AM   #8
manish.chandra
LQ Newbie
 
Registered: Mar 2012
Posts: 8

Rep: Reputation: Disabled
website hosted through apache can be viewed from any machine in the network provided you have set the configuration files properly on your web server and the DNS settings/Network settings on client machines are proper...Do have a relook in /etc/httpd/conf/httpd.conf . Document root should be the location where you have stored your web files... In red hat it is in /var/www/html . check Ip address and hostname in configuratiob file..If any of these is improperly configured then webpage would not open in client machine
 
  


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 know if Apache or the system is compromised Shimdidly Linux - Security 15 03-27-2012 12:44 PM
How to start apache+MySQL at system up? epic Linux - Newbie 5 09-04-2006 09:44 PM
Reboot the system by apache Bassam Programming 3 10-28-2005 01:16 AM
Apache 2 build system jkratze1 Linux - General 0 08-08-2005 09:48 AM
Do you know how to set up Apache on a Debian system? jordansmit935 Linux - Networking 1 03-19-2003 12:41 AM

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

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