Click to See Complete Forum and Search --> : [Resolved] Install is not working (Help!!!)


kioh46
06-13-2005, 02:04 PM
Hello everyone

I am new to PHP. I am doing my internship in which I have been using PHP and Mysql to develop web based database applications. I want to practice at home and I decided to install php and mysql on my laptop. I OS is win xp professional and I install the IIS 5 webserver. My friend told me to try WAMP which is a GUI that has PHP 5, Apache and phpmyadmin bundled together. I have been trying to view the php pages that I have created at work. I can view them in explorer at work but when I try to view the on my home computer in explorer only the code loads. Can someone tell me what am i doing wrong.


kioh46

planetsim
06-13-2005, 05:05 PM
Firstly which setup have you gone with the WAMP or IIS/PHP.

To me it sounds like .php extensions arent being parsed with the php engine. Also are you viewing them at localhost ?

kioh46
06-13-2005, 05:52 PM
I have tried it both ways, using wamp and IIS/PHP. I could not get it to work either way.

kioh46
06-13-2005, 06:08 PM
If I could get it working thru wamp I would prefer to use wamp.

planetsim
06-14-2005, 06:29 AM
in your httpd.conf file make sure you have the following (some settings may need to change depending on installation)


## Only check for the version of PHP you have dont copy the PHP 5 bit if your running php 4

# PHP 4
LoadModule php4_module "C:/php/php4apache.dll"
# PHP 5
LoadModule php5_module "C:/php/php5apache.dll"

#Now to parse .php
AddType application/x-httpd-php .php


Thats for the Apache ISAPI Module and Apache 1.3.x for Apache 2.0.x add 2 on the end of each e.g. php5apache2.dll

Once that is done restart the Apache Server and create a PHP info page

phpinfo.php

<?php phpinfo(); ?>

Copy it to your webroot directory e.g. c:\Program Files\Apache\htdocs (depending on your installation directory)

Then to access it

http://localhost/phpinfo.php

If your not sure what you web root is look for DocumentRoot

kioh46
06-14-2005, 06:44 PM
Thank you It is working now.