Xampp update to run php 7

After you read a couple of questions on how to upgrade xampp to newer php versions. I started upgrading my version to version 7 as I wanted to find out

strict hint type

I downloaded php 7 from the official site . I copied the contents of this downloaded folder to the php folder xampp.but, but it does not work. renamed php.ini-development to php.ini. Is there a better way to do this because it does not work.

Please, help.

+10
source share
2 answers

I find @camelCase good, but you can also try this method. It can satisfy your needs.

Migrating to PHP7 in XAMPP Before proceeding, I recommend making a backup of your XAMPP configuration. After you backed up below, follow a few steps to use PHP7 in your XAMPP

  • Download PHP7 . Download php7 from php.net.

If your apache is thread safe, then download the thread safe version of PHP7, otherwise load NTS ie without thread safety.

  1. Put PHP in the appropriate place in XAMPP . Put your PHP7 in your XAMPP. I usually prefer to place / XAMPP / php 7 in place, but you can put as you need. There are no restrictions for posting your new php version in xampp.

  2. Enable PHP7 with your apache . In XAMPP, PHP is configured using the apache file path [yourxampp / apache / conf / extra / httpd-xampp.conf]. Please open the file, first add all the path variables from the php7 directory.

Also do not forget to add the php7 module using the code below

LoadFile yourxampppath/php7/php7ts.dll LoadFile yourxampppath/php7/libpq.dll LoadModule php7_module yourxampppath/php7/php7apache2_4.dll 

Be sure to change the PHP ini directory for your PHP7

 <IfModule php7_module> PHPINIDir "yourxampppath/php7" </IfModule> 

Chechout www.techflirt.com

+18
source

Not sure if you were able to resolve this, but suggested that I propose an approach, since this question is very high in Google search and may benefit others.

Apache Friends has released a version of XAMPP for Windows, Linux, and an OS that supports PHP 7.0.1.

From the website:

We have just released a new version of XAMPP for all platforms with PHP 7.0.1. This version also contains a revised version of the setup_xampp.bat and test_php.bat scripts for Windows.

It can be downloaded from Apache Friends .

+5
source

Source: https://habr.com/ru/post/1238307/


All Articles