Page 1 of 1

php installation not working

Posted: Wed Dec 22, 2010 5:05 pm
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

Re: php installation not working

Posted: Wed Dec 22, 2010 5:10 pm
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.

Re: php installation not working

Posted: Thu Dec 23, 2010 3:13 am
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

Re: php installation not working

Posted: Thu Dec 23, 2010 3:30 am
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

Re: php installation not working

Posted: Thu Dec 23, 2010 1:43 pm
by gmseed
Hi

Problem solved.

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

Graham