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 |
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.
|
|
05-31-2012, 07:06 AM
|
#1
|
Member
Registered: Mar 2012
Location: Karachi
Distribution: Ubuntu, RedHat, CentOs,
Posts: 104
Rep:
|
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.
|
|
|
05-31-2012, 07:13 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
05-31-2012, 06:51 PM
|
#3
|
LQ Newbie
Registered: May 2012
Location: Scottsdale, AZ
Posts: 3
Rep:
|
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?
|
|
|
06-01-2012, 05:44 AM
|
#4
|
Member
Registered: May 2012
Location: London
Distribution: Debian and slackware for uni
Posts: 61
Rep:
|
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.
|
|
|
06-01-2012, 06:47 AM
|
#5
|
Member
Registered: Jun 2009
Location: Haarlem, The Netherlands
Distribution: Archlinux
Posts: 125
Rep:
|
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.
|
|
|
06-01-2012, 06:57 AM
|
#6
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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"
|
|
|
06-01-2012, 07:58 AM
|
#7
|
Member
Registered: May 2012
Location: London
Distribution: Debian and slackware for uni
Posts: 61
Rep:
|
Quote:
Originally Posted by acid_kewpie
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.
|
|
|
06-02-2012, 12:17 AM
|
#8
|
LQ Newbie
Registered: Mar 2012
Posts: 8
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 01:15 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
|
|