Apache2Triad Help, Support and Development Forum Index Search Profile Log in to check your private messages Log in Register Memberlist Attachments Statistics Crew/Ranks Archive
 update to PHP 5.3.5
Post new topic Reply to topic
Author Message

Joined: 18 Apr 2006
Posts: 3

PostPosted: Wed Jan 12, 2011 4:56 am Reply with quoteBack to top

A2T still rocks, IMO -- still better than most WAMP configurations:

Here's what I did to update my installation of A2T to PHP 5.3.5:
** (I didn't update PEAR or SMARTY)

(I didn't keep notes while I was doing this, so there might be a glitch or two -- read the sitepoint articles below):

First, backup:
    C:\Apache2Triad\php (entire folder)

download the VC9, thread safe version of PHP
-- php-5.3.5-Win32-VC9-x86.zip
from: http://windows.php.net/download/
(these sitepoint articles are helpful and describe the difference in VC6 and VC9)

- make a new, empty php directory in the A2T directory and put the downloaded php files in it
- copy the file "libeay32.dll" in the php directory and put it into:
C:\Apache2Triad\bin\libeay32.dll (write over the older version).

update PHP.INI in Windows directory
-- use Beyond Compare ( http://www.scootersoftware.com/ )
-- or WinMerge ( http://winmerge.org/ )
to compare the new php.ini-production with the current php.ini

.... replace the PHP configuration in httpd.conf (about line 1175) with this:

PHPIniDir "C:/Windows"

#php config
# ... JAN 11, 2011
# ... installed PHP 5.3.5
LoadFile php\php5ts.dll
LoadFile C:/apache2triad/mysql/bin/libmysql.dll
LoadModule php5_module php/php5apache2_2.dll
<IfModule mod_php5.c>
    AddHandler php5-script .php
    AddHandler php5-script .inc
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php .inc
    AddType application/x-httpd-php-source .phps

You can test the install without rebooting Windows every time. Open a Cmd window and run:
C:\apache2triad\bin\httpd.exe -t

The "-t" will print any script errors. You will need to reboot Windows when you're done.
View user's profileSend private message
Vlad Alexa Mancini
lead developer
lead developer

Joined: 07 Jul 2003
Posts: 1539

PostPosted: Wed Feb 23, 2011 6:49 am Reply with quoteBack to top

thanks for sharing the details with who might be interested, i am afraid i can not help much with that myself
View user's profileSend private message
Display posts from previous:      
Post new topic Reply to topic

 Jump to:   

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme
All times are GMT