Newbie Question: Using PHP in Linux
I just installed RedHat Linux. After creating a simple page with the phpinfo(); in it, how do I view it? Do I also go to http://localhost just like windows? Do I have to put the file somewhere else?
Totally newbie question. Never used Linux before.
m3rajk posted this at 16:34 — 6th September 2003.
They have: 461 posts
Joined: Jul 2003
hehe. don't worry, as long as you're ok with the command prompt in a week you'll wish you never used winblows. >:D
the nice the about red hat is that it'll set up php for you if you ask it to. just put it in the web directory, which if you're using apache 2+ is /var/www/html
then you surf to your server, if you're on the server 'localhost' 'http://localhost' or using the name of the server (let's say you named it 'friend') then that works too. 'friend' or 'http://friend'
if you have an internal network you need to know your internal ip.
from any other compter in your internal etwrk, just like if it were windows use the ip your network gave it
and your friends neeed the ip you have from your isp, and your router/firewall needs to know the internal address to direct it to
you'll find there are some minor ddifferences... on a winbows server 'File' and 'file' are the same. on posix based they are differnt
windoews needs to be restarted to clear memory issues. posix just needs the deamon shut down and restarted
btw: which redhat? 9 comes with php 4.2.2 and apache 2.4.0
POSIX. because a stable os that doesn't have memory leaks and isn't buggy is always good.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.