Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Hello I have a server with redhat 8.0, qith the latest kernel installed and apache. I want to connect my web files to the internet. So far I have have got is this dynamic ip from my server: http://192.168.1.104/
Its says Hello World, because is a html page with the hello world in it. One problem is that I made a php file, but it only displays the text of the php but it doesn't run the script. What should I do?
Another thing is that I have buyed a domain name (Godaddy, cheap prices ) and want to setup my domain to point my dynamic ip, at this time, I will later buy a static ip.
? Did you checked the address? I think is in my lan, don't know really, anyway can anyone explain me how to install the server, to view pages in the internet, or does anyone can recomend me a graphical manual to begin? Thank you very much
Do you access the internet via a router or pc set up with a firewall? I'm quite sure that ip you gave is a network one, even though I've never set up a network. I've seen it about a lot.
The apache rpm for your RedHat install should set up the server to work from the off, though you may need to alter the firewall of the machine it's running on to allow it to be accessed. Also you need to check if your ISP allow such web servers to run, and if they block the default port 80 which they run on.
The manual for apache is very very detailed, as are the configuration files. Check httpd.apache.org, or the copies on your pc.
I dont use RedHat, but I think you can check the info about the apache rpm package to see if it mentions php being enabled.
That is your ip. Chances are it is asking you for the username and password used to configuer your router. You will need to edit your router config and forward port 80 to the ip address of your server.
I really hate people who tell beginners to rtfm. On the other hand you do have to do the background studying.
It is not a small thing to run a home web server on a local network using Linux and Apache. You need to know the basics of TCP/IP networking, IP addresses, DNS, routing, filters and firewalls .....and so on. this is without really considering security and all the bad guys who will try to wreck your site.
The first thing to do is become confident running Linux. Then get to grips with networking. Try running a web page on free space provided by your ISP. Then try hosting the page at home but without the fancy stuff like PHP. Then you will be ready to do what you are talking about.
O'Reilly do some great books on these subjects. Take a look at "Apache - The Definitive Guide". Google is your friend for learning about networking - it is all on the web, somewhere.
An answer to one of your specific questions:
Until you have a static IP you need a web redirection service like that at http://www.no-ip.com/ . There are plenty such services; again, try Google.