March 03, 2012

Upgrading to PHP 5.4 on XAMPP

Here's a quick tutorial on how to upgrade you XAMPP installation to use latest version of PHP that is PHP version 5.4.

1. Download windows build from the official site. ( I had used this link.)

2. Extract all files from the downloaded archive to a temporary folder say php_new.

3. Make sure XAMPP / Apache is not running.

3. Go to the folder where XAMPP is installed and rename the folder XAMPP_ROOT/php to php_old

4. Now go back to our temporary folder i.e. php_new and copy all files to XAMPP_ROOT/php where XAMPP_ROOT is obviously the folder where XAMPP has been installed.

5. Enter the php folder and locate the file(s) php5apache*.dll ( Example php5apache2_2.dll )

6. Copy those files to XAMPP_ROOT/apache/modules/ depending on your version of Apache

7. Optionally delete the folders php_new and php_old

8. Start Apache again and verify that everything is working smoothly by creating a phpinfo file.

9. Don't forget to rename php.ini-production to php.ini and edit it as per your needs. ( Example: set extension_dir to XAMPP_ROOT/php/ext

10. Check Apache logs for any possible errors.


  1. Helpful post..

  2. Does this also go for XAMPP on other platforms? I'm running XAMPP on Ubuntu.

    1. What's the harm in trying ? I can't confirm if it'll work as I don't run Ubuntu on my machine.

  3. You can follow the steps from here

  4. This is a topic which is near to my heart... Thank you!

    Where are your contact details though?

    My site - phoenix cleaning service
    Also see my page: phoenix house cleaning

  5. Hey! Someone in my Myspace group shared this site with us so I came to give it a
    look. I'm definitely enjoying the information. I'm bookmarking and will
    be tweeting this to my followers! Terrific blog
    and fantastic design.

    my web site ... hair follicles
    My web page :: cycle hair growth cycle

  6. This paragraph will help the internet users for setting up new blog or even a weblog from start to end.

    Stop by my web page ...

  7. Paragraph writing is also a excitement, if you be familiar
    with after that you can write if not it is complex
    to write.

    Also visit my blog post; orange county hair removal
    Also see my web page - hair regrowth treatment

  8. I know this site provides quality depending content
    and extra data, is there any other web page which offers these kinds of stuff
    in quality?

    Feel free to visit my weblog - Corporate Movers