PHP and apache on redhat 9

Ted Potter tpotter at techmarin.com
Sat Dec 11 21:44:25 UTC 2004


your going to love this.

1. In /var/www/html create a file called test.php
2. Here is the contents of this file

<?php
phpinfo();
?>

in whatever browser type localhost/test.php

you should see some great info on php and of course if the page comes up
apache is running.















On Sat, 2004-12-11 at 12:25, othman El Moulat wrote:
> Hi guys;
> 
> I suppose that most of the linux distros now a days comes with an apache web 
> server and a php interpreter...I guess that when installing my redhat 9 box 
> php and apache were installed and may be also configured ! ...I'm still a 
> newbie in linux and i want to start development using php under linux...I 
> want to know where i can find the default directory where apache and PHP were 
> installed? i want some one to describe me in details how i can run my first 
> PHP program on a RH 9 box...for example where is the documentroot of the 
> apache installation where i should store my php progs? etc...
> 
> many thanks for helping a newbie :)
> 
> 
> _______________________________________________
> Redhat-install-list mailing list
> Redhat-install-list at redhat.com
> https://www.redhat.com/mailman/listinfo/redhat-install-list
> To Unsubscribe Go To ABOVE URL or send a message to:
> redhat-install-list-request at redhat.com
> Subject: unsubscribe
-- 
Ted Potter
tpotter at techmarin.com
www.techmarin.com




More information about the Redhat-install-list mailing list