FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free 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
Related topics
Password Protect my site
how do i set up a free host?
tutorials site
Seeking MySQL-php-Apache installer for WinXP
what is your php mysql apache installer package
How to install PHP and Apache in 5 min on Win98
I was wondering something if anyone might know the awnser...
Fix for deleting files/directories owned by apache
How to set authorisations -Windows sys / Apache webserver
Help Apache problems
apache problem, NEED HELP
Apache *** Stopped *** ?
mysql and apache problem.
WHY DO I GET APACHE PAGE?[RESOLVED]
Reply to topic    Frihost Forum Index -> Computers -> Computer Problems and Support

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