For Programmers: Free Programming Magazines  


Home > Archive > PHP Installation > August 2007 > Re: [PHP-INSTALL] PHP 5.2.3 Install









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-INSTALL] PHP 5.2.3 Install
Lester Caine

2007-08-20, 7:03 pm

Terry Lowndes wrote:
> software:
> Windows XP
> apache 2.2.4
> PHP 5.2.3
>
> My Level: Biginner - non technical (UK Based)
> I'm trting to setup on a standalone local PC so that I can learn about
> PHP/MySQL/Apache
>
> I have apache up and running and I am trying to get PHP 5.2.3 working with
> it. When I try loading the test.php file all I get is the code <? phpinfo();
> ?>.
>
> I'm not really sure where to start to narrow down the problem. Can onyone
> help please.


Since you have got the test.php showing something we can assume apache is
running. The next step is to modify the httpd.conf file ( in the conf
directory of apache ) to load the php module

LoadModule php5_module d:/Network/php5_2_3/php5apache2_2.dll

And in the mime_module section I have
AddType application/x-httpd-php .php

So that apache uses the php5_module to run .php files.

You need to restart apache to load any changes to httpd.conf, but currently
thouse are the only additions you should need to get phpinfo(); showing the
php setup.

( I don't use MySQL, but you will need to load MySQL, and the php module that
goes with that in php.ini - which should be in your windows directory )

--
Lester Caine - G8HFL
-----------------------------
Contact - http://home.lsces.co.uk/lsces/wiki/?page=contact
L.S.Caine Electronic Services - http://home.lsces.co.uk
MEDW - http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/
Firebird - http://www.firebirdsql.org/index.php
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com