I've been using PHP version 5.2 and now need to upgrade to version 5.3 (Windows/Apache). I have been using 5.2 for awhile now and have customized many things in php.ini and added some extra extensions.
How can I upgrade to version 5.3 without having to reconfigure everything? Or does upgrading require that I customize my PHP installation all over again?
Thanks, Brian
Scroll down to the Advanced settings tile and select PHP and database settings. Scroll down to Update PHP version. Select the PHP version you want to switch to and click Update.
To locate your WordPress PHP version, click on the Info tab, followed by the Server panel: Here, you will find a handful of information about your server, including the PHP version. Depending on which version you're running, you may or may not want to upgrade.
If you take a look at Upgrading to PHP 5.3 - an easy way, i think that will solve your problem, but if you're in a Linux machine that you can use apt-get
the only thing that you need to do is:
$ sudo apt-get upgrade php php-* mysql-*
$ /etc/init.d/httpd restart
Regards.
The transition is not necessarily easy, but not hard also. PHP 5.3 brings some changes to the internal Zend API, so some PHP extension need to be upgraded (I had to upgrade xDebug). That means that you need to find the respective DLLs, which may not be that easy, depending on your current setup.
The config file, php.ini, is pretty much the same. You will actually have to take some things out actually (for example extension=php_pdo.dll
is not needed anymore).
Just execute php -m
from command line and see what errors are thrown. I have just copy-pasted the php.ini file from a 5.2 release and was done configuring 5.3 in a couple of minutes.
I mentioned xDebug a few lines above. If you use it, you should know that the line which activates xDebug is now:
zend_extension = "path\to\PHP 5.3.0\ext\php_xdebug.dll"
instead of:
zend_extension_ts = "path\to\PHP 5.3.0\ext\php_xdebug.dll"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With