Apache2Triad Help, Support and Development Forum Index Apache2Triad Help, Support and Development
The apache2triad help , support and development forums
 

Update A2T's PHP
Click here to go to the original topic

 
       Apache2Triad Help, Support and Development Forum Index -> Programming
View previous topic :: View next topic  
Author Message
dtmswebmaster



Joined: 09 Apr 2008
Posts: 23

Posted: Wed Apr 09, 2008 5:47 pm    Post subject: Update A2T's PHP  

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.
Back to top  
panicomg24



Joined: 11 May 2008
Posts: 2

Posted: Sun May 11, 2008 8:38 pm    Post subject: How did you do it?  

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

Thank you
Back to top  
dtmswebmaster



Joined: 09 Apr 2008
Posts: 23

Posted: Sun May 11, 2008 9:22 pm    Post subject:  

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. :) Enjoy!
Back to top  
sunbeam



Joined: 16 Oct 2007
Posts: 9

Posted: Thu Dec 11, 2008 11:05 pm    Post subject:  

this method isnt working for me :(
Back to top  
panicomg24



Joined: 11 May 2008
Posts: 2

Posted: Fri Dec 12, 2008 7:46 am    Post subject:  

sunbeam wrote: this method isnt working for me :(

download Wampserver instead, straightforward installation

- Apache 2.2.10
- MySQL 5.1.30
- PHP 5.2.7

www.wampserver.com
Back to top  
DELETED
Guest





Posted: Fri Jan 23, 2009 3:51 pm    Post subject: WAMP  

DELETED
Back to top  
 
       Apache2Triad Help, Support and Development Forum Index -> Programming
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.13 © 2001, 2002 phpBB Group