[Tutorial] How to add another PHP version


  • administrators
    | 87469 points

    With Laragon, adding another PHP version is very easy.

    1. Download PHP:
      http://windows.php.net/downloads/releases/

    Suppose we want to upgrade to php-7.1.11 Thread Safe 64-bit.
    In this case we download:
    http://windows.php.net/downloads/releases/php-7.1.11-Win32-VC14-x64.zip


    1. Extract the downloaded to: {LARAGON_ROOT}\bin\php\php-7.1.11-Win32-VC14-x64.zip
    C:\laragon
    -- bin
       -- php
          -- php-7.1.11-Win32-VC14-x64
          -- .............
    

    1. Select the new version at: Laragon Menu > PHP > Version > php-7.1.11-Win32-VC14-x64

    Very easy huh. That's all forks!

    Please be noticed about PHP Version (so you can add new extensions properly)

    • x64 means 64-bit
    • x86 means 32-bit
    • nts means Non Thread Safe

    If something's wrong, please check and install correspond VC Redist (VC11, VC14,...)


  • | 64 points

    Hi, I tried the downlaod but got this error messgae instead:

    404 - File or directory not found.
    The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

    Is there another link?

    Thanks
    x


  • | 64 points

    Found a new link


  • | 697 points

    I still maintain a project using PHP 5.4, is itu possible to add a 5.4 version PHP into Laragon?
    Thx.


  • administrators
    | 87469 points

    Sure @paijoh


  • | 1132 points

    I changed to PHP 5.5.25 succesfully.. but phpmyadmin does work.
    0_1472202123138_Capture.JPG

    How I can change phpmyadmin to compatible version


  • administrators
    | 87469 points

    What is your Laragon version?


  • administrators
    | 87469 points

    Laragon 2.0.5 comes with phpMyAdmin 4.6.4. However, you can install other version of phpMyAdmin (just download and extract to etc/apps/phpMyAdmin)


  • | 1132 points

    Hi there! I just download the phpmyadmin version that i want and extract it into WWW folder and i worked! (use others directory name such "phpmyadmin-old" ..etc, so it wont conflict with original ones).. :)


  • | 697 points

    I'm still using Laragon 1.0.6, and when I tried to install PHP 7.1.0 I was using the Thread Safe version because it's the only version that included php7apache2_4.dll. Before, I tried using NTS version and failed to install. Hope this help to someone who still using old version of Laragon.


  • | 359 points

    I installed the latest laragon with php-7.1.12-Win32-VC14-x64. After adding another version of PHP i.e. php-5.6.33-Win32-VC11-x64, it threw an error as below

    Server Apache can not start. Reason:
    ------------------------------------
    httpd: Syntax error on line 542 of C:/laragon/bin/apache/httpd-2.3.27-win64-VC14/con....:
    Syntax error on line 2 of C:/laragon/bin/apache/mod_php.conf: Cannot load C:/laragon/bin/php/php-5.6.33-Win32-VC11-x64/php5...
    into server. The specified module could not be found.
    

    Any solution?

    Thanks!


  • administrators
    | 87469 points

    @Wisam-Qadeer171 : What's behind php-5.6.33-Win32-VC11-x64/php5...?

    Please check the:
    C:/laragon/bin/apache/mod_php.conf


  • | 359 points

    File not found at C:/laragon/bin/apache/mod_php.conf
    Besides, php-7.1.12-Win32-VC14-x64 is working perfect


  • administrators
    | 87469 points

    @Wisam-Qadeer171 : Why your error message contains that file?
    I believe it is located at C:/laragon/etc/apache/mod_php.conf

    Btw, what's behind php-5.6.33-Win32-VC11-x64/php5...?
    That information is useful to figure out but why ...?


  • | 359 points

    The message in the dialogue box printed the ... That's also weird for me too


  • administrators
    | 87469 points

    @Wisam-Qadeer171 : You should Ctrl + C to capture all message and paste it here - (Don't type)


  • | 359 points

    In C:/laragon/etc/apache/mod_php.conf:

    # This file is auto-generated, so please keep it intact.
    LoadModule php7_module "C:/laragon/bin/php/php-7.1.12-Win32-VC14-x64/php7apache2_4.dll"
    PHPIniDir "C:/laragon/bin/php/php-7.1.12-Win32-VC14-x64"
    <IfModule mime_module>
        AddType application/x-httpd-php .php
    </IfModule>
    

  • administrators
    | 87469 points

    @Wisam-Qadeer171 : Can you rename it to mod_php.conf.bak and restart Laragon?


  • | 359 points

    Fetch from apache error.log:

    httpd: Syntax error on line 542 of C:/laragon/bin/apache/httpd-2.4.27-win64-VC14/conf/httpd.conf: Syntax error on line 2 of C:/laragon/etc/apache2/mod_php.conf: Cannot load C:/laragon/bin/php/php-5.6.33-Win32-VC11-x64/php5apache2_4.dll into server: The specified module could not be found.  
    

  • administrators
    | 87469 points

    @Wisam-Qadeer171 : Does the file exists?
    C:/laragon/bin/php/php-5.6.33-Win32-VC11-x64/php5apache2_4.dll


Log in to reply
 

Looks like your connection to Laragon was lost, please wait while we try to reconnect.