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 A2T's PHP
Google
Post new topic Reply to topic
Author Message
dtmswebmaster
 
 


Joined: 09 Apr 2008
Posts: 23

PostPosted: Wed Apr 09, 2008 5:47 pm Reply with quoteBack to top

I've looked all over the forums for an easy way to upgrade/update the PHP used by A2T, however every post that I've come across has had the links removed or doesn't provide a solution.

I am currently using:
A2T 1.5.4 Edge Edition on a Windows XP: Professional Edition (SP2).

I would like to upgrade the PHP version to 5.2.5 however, there is no information provided on how to accomplish this in the edge edition... Only that it is possible to do it.

This may not be the right place to put this extra bit, but if there is also a guide for the other two parts (Apache and MySQL) for when they release updates, that would be most greatful.

Thanks for an awsome WAMP!


UPDATE: I was finally able to successfully upgrade my PHP version from 5.1.x to 5.2.5. It takes a bit of work and tweaking, but it can be done. I have even been able to reflect this upgrade in my A2TCP.
View user's profileSend private message
panicomg24
 
 


Joined: 11 May 2008
Posts: 2

PostPosted: Sun May 11, 2008 8:38 pm Reply with quoteBack to top

Since you couldn't get any helpful threads, any chance you could write up a quick how-to?

Thank you
View user's profileSend private message
dtmswebmaster
 
 


Joined: 09 Apr 2008
Posts: 23

PostPosted: Sun May 11, 2008 9:22 pm Reply with quoteBack to top

The way I did it was this (and this guide assumes that the user is running Windows XP Professional, as that is my current Operating System):

1.) Download the Windows Installer of PHP from the PHP Download Site.

2.) Run installer. (I installed mine on my spare HDD)
--Ensure that you don't install it to a directory path that contain spaces... easier setup this way.
--It will ask for your Server Type, I chose Apache 2.2, it will also ask for the root path for your server... by default, this will be: "/path/to/apache2triad".

3.) Right click on "My Computer" and select "Properties". Select the "Advanced" tab and click on "Evironment Variables".

4.) You'll want to go to "System Variables" and edit the "Path" to include your new install of PHP.

5.) Once you click through all the "Ok"s, you'll need to reboot your computer for the change to take effect.

6.) Open your httpd.conf file and replace the old php config block with this:
Code:
LoadFile path/to/new/php-install/php5ts.dll
LoadFile php\bin\fdftk.dll
LoadFile D:/apache2triad/mysql/bin/libmysql.dll
LoadModule php5_module path/to/new/php-install/php5apache2_2.dll

<IfModule mod_php5.c>
    LoadFile php\bin\ntwdblib.dll
    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 .php3
    AddType application/x-httpd-php-source .phps
</IfModule>


7.) Remove the added PHP Config at the end of your httpd.conf file that was added during the installation of your updated PHP.

8.) Now it's time to add in the updated plugins to give your updated PHP functionality...

In your upgraded PHP folder... create a new folder called ext, this is where you will place the php extensions. What I did was downloaded the Windows Binary Zip Package and copy/pasted all the ext from it to my upgraded PHP's ext folder.

After that, restart the server and test it with the phpinfo(); command.

You can create a new php file called info.php and use this:
Code:
<?php phpinfo(); ?>

Then load it in your browser. Be sure that you are loading it from the server (ie not from localhost).

That should show you the upgraded PHP version number. If you want to reflect this change in your A2TCP... go to /apache2triad/htdocs/apache2triadcp/ and open index.html in your favorite editor and you can manually update the version number to your current one. That's all there is to it. Smile Enjoy!
View user's profileSend private message
sunbeam
 
 


Joined: 16 Oct 2007
Posts: 9

PostPosted: Thu Dec 11, 2008 11:05 pm Reply with quoteBack to top

this method isnt working for me Sad
View user's profileSend private message
panicomg24
 
 


Joined: 11 May 2008
Posts: 2

PostPosted: Fri Dec 12, 2008 7:46 am Reply with quoteBack to top

sunbeam wrote:
this method isnt working for me Sad


download Wampserver instead, straightforward installation

- Apache 2.2.10
- MySQL 5.1.30
- PHP 5.2.7

www.wampserver.com
View user's profileSend private message
DELETED
Guest





PostPosted: Fri Jan 23, 2009 3:51 pm Reply with quoteBack to top

DELETED
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