Categories: FAQ

How to upgrade to latest php version in xampp from 5.3 to PHP Version 5.6.23

How to upgrade to new php version in xampp from 5.3 to PHP Version 5.6.23?

When we are using xampp for Website development with PHP and Apache server. Some times need arise to upgrade the php to latest version. This helps in saving time for installing softwares from startup.

  1. Backup your xampp current folder and data folder/Scripts folder before upgrade. Any issues in upgrade can destroy your work.
  2. Download PHP Version (x) : Download the version of php  to which you want to upgrade from here http://windows.php.net/download/. Unzip the folder and give it name. Its your choice to name it php-x.x version or any other name But please dont give “php” to it. As, in xampp current installation there is already a folder named “php”.
  3. Stop your xampp server i.e. MySQL , Apache or any other server if you are running.
  4. Now go to yourxamppdirectory/apache/conf/extra folder. Inside extra folder Open file httpd-xampp.conf  . I am using the same values which are on my system to avoid any confusions. My xampp directory is c:\xampp1. Change the following variables:

Variables with old values

LoadFile “C:/xampp1/php/php5ts.dll”
LoadFile “C:/xampp1/php/libpq.dll”
LoadModule php5_module “C:/xampp1/php/php5apache2_4.dll”

PHPINIDir “C:/xampp1/php”

ScriptAlias /php-cgi/ “C:/xampp1/php/”

<Directory “C:/xampp1/php”>
——

—–
</Directory>

Variables with new values

LoadFile “C:/xampp1/php-5.6.23/php5ts.dll”
LoadFile “C:/xampp1/php-5.6.23/libpq.dll”
LoadModule php5_module “C:/xampp1/php-5.6.23/php5apache2_4.dll”

PHPINIDir “C:/xampp1/php-5.6.23”

ScriptAlias /php-cgi/ “C:/xampp1/php-5.6.23/”
<Directory “C:/xampp1/php-5.6.23”>
———-

</Directory>


Now restart your xampp server. It will work now.

Run phpinfo() command from file and see new version in it.

Issues faced while doing ugrade.

After starting xampp server, I found below error  :

Issues 1 :

Fatal error: Call to undefined function mb_detect_encoding() in yourxamppdirectory\phpMyAdmin\libraries\php-gettext\gettext.inc on line 177

Solution is :

  1. Stop xampp.
  2. There is no php.ini file in new folder i.e. So, i copied php.ini-development and rename it to php.ini (the php configuration file).
  3. I googled the issue and done below changes i.e. edit php.ini (the php configuration file), Now my MySQL, Apache server and PHP is working. Look for

OLD values

; On windows:
extension_dir=”ext”

New values

; On windows:
extension_dir=”C:\xampp1\php-5.6.23\ext”

Remove semi colon from below extension o enable dll’s.

extension=php_gd2.dll
extension=php_mbstring.dll
extension=php_exif.dll ; Must be after mbstring as it depends on it
extension=php_mysql.dll
extension=php_mysqli.dll
Restart your xampp server.
Restart xampp and hopefully it’ll work.

 

Please share your views in comments.

Thanks.

jyoti rani

Recent Posts

Modern Toys, Magical Moments: Why the Best Toy Shop in Noida Is More Than Just a Store

When it comes to children, there’s one universal truth: the right toy can spark imagination, build skills, and make memories…

6 months ago

Rediscovering Joy: A New Era of Creativity & Comfort in Toy Stores

In today’s digital age, where screens and gadgets dominate our children’s lives, there’s something heartwarming about a well-loved plush toy…

6 months ago

Unboxing Imagination: Discovering the Joy of Play at a Toy Store in Noida

In a world dominated by screens and fast-paced routines, it’s easy to forget the simple magic of a toy in…

6 months ago

Imagination Unboxed: Discover Joy at the Toy Shop in Delhi

In the heart of Delhi’s vibrant streets lies a world where imagination meets innovation — the magical universe of toys.…

6 months ago

Play with Purpose: Discovering the Ultimate Toy Store in Noida

When was the last time a toy truly amazed you—not just as a product, but as a thoughtful tool for…

6 months ago

From Tears to Toys: Exploring Modern Childhood through Delhi’s Favorite Toy Shop

In the digital age, the way we experience childhood has changed, but the essence remains the same—imagination, exploration, and joy.…

6 months ago