skip to Main Content

I have a Laravel project that uses a specific library that uses php 7.2.10.

You will need to install php7.2.10 on your server (Does not work with the Laravel library, so will not install a new version of PHP).

I tried the following command but it doesn’t work (I installed a new version of PHP 7.2.24 on the server, maybe I can remove it).

wget http://be.php.net/distributions/php-7.2.10.tar.gz
tar -zxvf php-7.2.10.tar.gz
cd php-7.2.10/
./configure --prefix=/usr/local/bin/php && make && make install

I can´t use version 7.2.24 that is already installed in my server. I need 7.2.10 version

2

Answers


  1. Chosen as BEST ANSWER

    Finally i make it work. I completely remove php7.2 (In my case the installed one was 7.2.24) and then i repeat the command line steps:

    wget http://be.php.net/distributions/php-7.2.10.tar.gz
    tar -zxvf php-7.2.10.tar.gz
    cd php-7.2.10/
    ./configure --prefix=/usr/local/bin/php && make && make install
    sudo service apache2 restart
    

    After that i enable new php version by

    sudo a2enmod php7.2
    sudo service apache2 restart
    

  2. Try diabling unwanted php versions

    sudo a2dismod php7.2.24
    

    and enable the version you need

    sudo a2enmod php7.2.10
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search