Problems testing php

Hi All,

I have windows xp, I’ve installed php-5.3.5-Win32-VC6-x86.msi safe thread, Apache 2.2.19 windows 32 no ssl.msi I have my Apache folder in C:\program files and PHP folder in C:\PHP. I have this in note pad editor <?php phpinfo();?> and saved it in c:\program files\apache 2.2\htdocs and when ever i tried to test online I get the same <?php phpinfo();?> in the localhost browser and don’t see the PHP Phpinfo Page where you can see all about PHP.

I am confuse as where to I save my apache 2.2 folders the tutorial I followed is to save the apache 2.2 in the c:\program files folders.

Can someone please tell me which is the best place to save the apache 2.2 folders do I save it in the same place as the place at C:\PHP folder like so c:\apache 2.2 and also do I save my website pages for testing in the htdocs folders?.

The tutorial also don’t mention about configure the apache httpd conf for PHP and the php.ini I don’t have an idea what to configure.

I appreciate any help on this.

Thanks

Helen :confused:

PHP: Installation on Windows systems - Manual

Read the above carefully, and as you have not mentioned it.

Read the php.ini file carefully as well - onerous, but time well spent.

If you wire up everything manually and it still does not work, or tries to send you to a website called localhost/ then read up on the importance of maintaining your windows hosts file.

localhost and 127.0.0.1 are synonymous.

Stick with it if you can, because you will learn a lot about how the server and PHP interoperate, as well as being aware of how much control the php.ini gives you.

If all else fails, then use a known and trusted installer such as WAMP and just get something working - you can always return to do a manual install later.

Just try to install WAMP or something like that.
It has Apache, MySQL and PHP in one. It is much easier to install.

I would also recommend WAMP, I use it for most of my local development. It’s also really fast to get up and running.

Thanks everybody it’s been helpful I shall install php on it’s own because there is mentioned wamp is not all that safe though I agree it would be easier as I am a newbie but I will take one step at a time and install php.

Good for you, you will learn more. A bit like building a kit car vs just buying a new car.

Expect some pain, but persevere…

OK so, is apache running? How do you know?

Not sure how long you have been at this install, but to be on the safe side, check your hdd and make sure you have only one of each of httpd.conf and php.ini, or you could risk your sanity.

Create shortcuts to these docs and stick the shortcuts in a folder on your desktop called config files or similar.

Whenever you edit php.ini, restart Apache

Whenever you edit httpd.conf reboot your server (I had terrible caching problems with this )

Locate a file called hosts in system32/drivers down there somewhere, create a shortcut to that too, drop that in your config shorcuts folder I mentioned earlier.

ps did you read the sticky in this forum - “installing latest ver php on windows” ?

If apache is serving up a default page, find out where that is on your hdd, then look in httpd.conf and you should spot that address.

Thanks for your help i’ve just come across another thread and there are lots of links to PHP book tutorial I will purchase some online tutorials and go from there I need some expert help lol.

helen