View Full Version : Newbie Question: Using PHP in Linux
Friend_Al_23
05-09-2003, 22:32/10:32PM
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.
Blue
06-09-2003, 00:22/12:22AM
I've never installed Redhat Linux before so I'm not sure on this, but in the linux clone OS's I have installed, there usually is a directory called "htdocs", which is where you need to put your web page files in order to view them from http://localhost.
Hopefully, someone with experience can help out here.
nlopes
06-09-2003, 05:55/05:55AM
There isn't just an answer to your question! it varies from version to version!
Latest version uses /var/www, others may use /home/httpdoc, etc..
Search for them or just tell me your Red Hat version. After saving the file, for example index.php, just go to http://localhost/index.php.
If you have any further questions, just post them here, because I'm working with RedHat/PHP/MySQL for a couple of years!...
Friend_Al_23
06-09-2003, 11:34/11:34AM
I think my version is 8.0 or 8.1. Not sure between the two.
nlopes
06-09-2003, 12:03/12:03PM
In redhat 8 the default is: /var/www/html
This can be changed, of course, in httpd.conf file.
vBulletin® v3.8.3, Copyright ©2000-2010, Jelsoft Enterprises Ltd.