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.
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.
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.
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.
were you really expecting an answer within 2 mins? There's 2 mins between your posts.
Whatever.. do you have apache compiled with PHP and php modules installed?
? 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.
php is installed so take a look at:
/etc/httpd/conf/httpd.conf
And uncomment the AddType and LoadModule directives for php.
I guessed you were connected to LAN from your IP. But how is your LAN connected to th NET? You will need access to that gateway device to make your server visible.
It is already uncommented. The house has a router, and it connects using cable on a windows platform, then the I plug in a cable to the router and plug it in my computer server with linux RH8
How can I know my actual ip in the internet, I went to www.showmyip.com and it shows me this IP:
24.174.196.12
is this my ip of the internet? and when I tried to enter this ip, it asks me for a username and password. Im sorry for using your time, I will pay if neccessary Thank you.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.