php installation help

skeletal29

Senior member
Oct 2, 2001
274
0
0
Ok i have redhat 7.2 with apahce preinstalled..I think php came preinstaled but i am not totally sure now how do i check if it is working? i tried to reinstall i think i messed something up.

I tried php -i and i get all this code that is displayed...(i think its the staus)

when i used to run php in windows i just told it where the php .exe and it worked and when i used the <? phpinfp; ?> i got the status of it and now i dont when i make info.php and put that in .....

This is what i get when i do a find / -name php

/usr/bin/php
/usr/share/php
/usr/local/bin/php
/usr/local/include/php
/usr/local/lib/php
/root/php-4.1.2/php


I tried reading the manual on their site but its not a really good guide....any other sites who have better?
 

jcrowe

Banned
Jun 19, 2001
191
0
0
create a page with the following code in it.

<?php
echo "PHP Works";
?>

if php is working all the page will say is "PHP Works".

Does that help?
jcrowe