Upgrading Xampp to run php 7

后端 未结 2 855
广开言路
广开言路 2021-01-31 22:28

After Reading a couple of question on how to upgrade xampp to newer versions of php. I started upgrading mine to version 7 as I wanted to learn

strict ty

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-31 22:52

    I consider @camelCase good, but you can also consider trying this method. It may suite your need.

    Upgrade to PHP7 in XAMPP Before proceeding further I will recommend to take backup of your XAMPP configuration. After you have made backup below are some steps to use PHP7 with in your XAMPP

    1. Download PHP7 : Download php7 from php.net website.

    If your apache is thread safe then download a thread safe version of PHP7 otherwise download NTS i.e non thread safe version.

    1. Place PHP on appropriate place in your XAMPP : Put your PHP7 in your XAMPP. I usually prefer to to put on location /XAMPP/php7 but you can put as per your need. There is no any restriction for putting your new php version in xampp.

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

    Also do not forget to add php7 module using below code

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

    Make sure to change PHP ini directory for your PHP7

    
        PHPINIDir "yourxampppath/php7"
    
    

    Chechout www.techflirt.com

提交回复
热议问题