php installation not working

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
gmseed
Forum Newbie
Posts: 9
Joined: Wed Jul 04, 2007 2:42 pm
Location: Edinburgh, Scotland, UK

php installation not working

Post by gmseed »

Hi

I've just installed php 5.3 from:

http://windows.php.net/download/

and selected the windows installer thread safe v6; ie php-5.3.4-Win32-VC6-x86

I ran the installer and installed in c:\php. It finished stating success.

It edited my httpd.conf file with the following:

#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "C:/php/"
LoadModule php5_module "C:/php/php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

I added the standard info.php file to \htdocs:

<?php
phpinfo( );
?>

If I open my chrome browser and enter:

localhost/info.php

I get:

{\rtf1\ansi\ansicpg1252\deff0\deflang2057{\fonttbl{\f0\fnil\fcharset0 Calibri;}} {\*\generator Msftedit 5.41.21.2509;}\viewkind4\uc1\pard\sa200\sl276\slmult1\lang9\f0\fs22 \par }

displayed in the browser window.

Does anyone know what I'm doing wrong?

Thanks

Graham
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: php installation not working

Post by Jonah Bron »

Installing WAMP (Windows, Apache, MySQL, and PHP) is much easier.

http://www.wampserver.com/en/

It installs the whole stack for you.
gmseed
Forum Newbie
Posts: 9
Joined: Wed Jul 04, 2007 2:42 pm
Location: Edinburgh, Scotland, UK

Re: php installation not working

Post by gmseed »

Hi

Thanks, but I'd prefer to install MySQL myself and I still don't understand why the recommended installer fails to load a page.

Graham
gmseed
Forum Newbie
Posts: 9
Joined: Wed Jul 04, 2007 2:42 pm
Location: Edinburgh, Scotland, UK

Re: php installation not working

Post by gmseed »

Update.

The above problems occurred with my new laptop running Window 7 Home Premium.

I repeated the msi installer installation on another laptop running Windows 7 Enterprise and it worked fine first time.

Now I'm totally baffled.

Graham
gmseed
Forum Newbie
Posts: 9
Joined: Wed Jul 04, 2007 2:42 pm
Location: Edinburgh, Scotland, UK

Re: php installation not working

Post by gmseed »

Hi

Problem solved.

The test info.php file was corrupt and contained a character that apache did not like.

Graham
Post Reply