FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

***apache and php4***

 


ncwdavid
Hey, I just installed apache 2 and php 4 onto my windows xp pro computer. Everything runs fine and when I right down localhost in the search bar in mozilla it opens the index.html file which is in the htdocs file. I then copied the needed php files and edited httpd and everthing seems to work when I click restart apache and so on. Then I created a php file like this
Code:

<?php
phpinfo();
?>

and put it in the htdocs folder with the index.php and then I type down localhost/phpinfo.php and a box appears saying download it and if you click ok it downloads and then if you open it up and look at it it is the same code as the one above but it wouldnt show it. What could be wrong?
mathiaus
You need to load php and make sure apache know how to treat .php files. In apache -> conf -> httpd.conf you should have something similar to the below.
Code:
LoadModule php4_module "c:/Program Files/php/php4apache.dll"
AddType application/x-httpd-php .php
ncwdavid
mathiaus wrote:
You need to load php and make sure apache know how to treat .php files. In apache -> conf -> httpd.conf you should have something similar to the below.
Code:
LoadModule php4_module "c:/Program Files/php/php4apache.dll"
AddType application/x-httpd-php .php


I already have that done
Reply to topic    Frihost Forum Index -> Computers -> Computer Problems and Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.