02 Oct How to upgrade PHP on AppServ 2.5.10
Well, you may be wondering why I'm using AppServ instead of some other WAMP bundle. Or even why I'm not using Linux? There's no real answer - except I'm just used to it. I've been using AppServ since high school. It works, so I just didn't switch. Anyway, AppServ comes bundled with PHP 5.2.6. The more powerful date functions like [`date_diff()`](http://php.net/manual/en/datetime.diff.php) come with 5.3+. Upgrading PHP should be trivial: all you need to do is [download a thread safe version](http://windows.php.net/download/) from the PHP website. I downloaded PHP 5.6.1. Then, rename your old `php5` folder to `php5.bak` (It's located somewhere like `C:\AppServ`). Extract the upgraded PHP package to that location and rename it to `php5`.
Now, restart the Apache server. You may find that it cannot restart. There may be an error saying something like:
```
Cannot load php5apache2_4.dll into server: The specified module could not be found.
```
I searched Google for the answer to this question, but most answers just pointed to a "thread safe" version of PHP - which I already downloaded. Then I saw something else: PHP 5.5+ is not compatible with Apache 2.2 - which is what AppServ 2.5.10 comes bundled with. So, the solution is to download the [5.4 version of PHP](http://windows.php.net/downloads/releases/archives/php-5.4.9-Win32-VC9-x86.zip).
Restart your server, and everything should be working!
Comments
Take a look at "Nginx" ... According to W3Techs, it was used by 24.6% of the top 1 million websites, 32.9% of the top 100,000 websites, and by 41.1% of the top 1,000 websites http://en.wikipedia.org/wiki/Nginx
Downloaded! I'll see what it can do with it
Thank you!! I was trying with the PHP 5.6 and that was the problem.
No problem; glad I could help!
thank you. But link "5.4 version of PHP." is not working: 404 - File or directory not found. Check it please...
Hi Mohammad; thanks for the heads up! I have updated the link. Let me know if you have any further questions or comments :)
Regarding freepee. In the UK we RADAR a system of locked toilets for the disabled. Could a tick box be included on the report page so indicate the facility has this.
Hi Kevin, Sorry for the late reply. I am working on a new version of Free Pee; you can track the progress on my GitHub! I will look into integrating your request to the app :) Thanks for the support
Thanks brother, great input!
Thank You so Much My Appserv now more up to date without change current OS
you saved me..thx alot