Can I follow this link to update php to latest version ?

Discussion in 'General' started by tegralens, Mar 12, 2018.

  1. tegralens

    tegralens New Member

  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    That should be the correct way but the php package mentioned there may not be the latest. Do check via the download link in it i.e. http://de2.php.net/ for the latest package.

    Other way will be something like this:
    Code:
    apt -y install software-properties-common
    add-apt-repository ppa:ondrej/php
    apt update && apt upgrade
    apt -y install php7.0-opcache php7.0-fpm php7.0 php7.0-common php7.0-gd php7.0-mysql php7.0-imap php7.0-cli php7.0-cgi php7.0-mcrypt php7.0-curl php7.0-intl php7.0-pspell php7.0-recode php7.0-sqlite3 php7.0-tidy php7.0-xmlrpc php7.0-xsl php7.0-zip php7.0-mbstring php7.1-opcache php7.1-fpm php7.1 php7.1-common php7.1-gd php7.1-mysql php7.1-imap php7.1-cli php7.1-cgi php-pear php-auth php7.1-mcrypt mcrypt imagemagick libruby php7.1-curl php7.1-intl php7.1-pspell php7.1-recode php7.1-sqlite3 php7.1-tidy php7.1-xmlrpc php7.1-xsl php7.1-zip php7.1-mbstring memcached php-memcache php-imagick php-gettext php-apcu php7.2-opcache php7.2-fpm php7.2 php7.2-common php7.2-gd php7.2-mysql php7.2-imap php7.2-cli php7.2-cgi php7.2-curl php7.2-intl php7.2-pspell php7.2-recode php7.2-sqlite3 php7.2-tidy php7.2-xmlrpc php7.2-xsl php7.2-zip php7.2-mbstring
     
  3. tegralens

    tegralens New Member

    I will try that thanks
     
  4. tegralens

    tegralens New Member

    After I do that I am assuming I need to do something else and its not that simple. I saw in the steps you needed to add things to the ispconfig pannel.
     
  5. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    That is to allow the users to choose the version, if enabled. You may add it in Additional PHP Versions, the name like php7.2 and then if you use ppa:eek:ndrej/php, enter something like the followings:

    In Fast CGI
    /usr/bin/php-cgi7.2
    /etc/php/7.2/cgi

    In PHP-FPM Settings
    /etc/init.d/php7.2-fpm
    /etc/php/7.2/fpm
    /etc/php/7.2/fpm/pool.d

    For other php versions do change 7.2 accordingly.

    Otherwise use the opt folder path as shown in the tutorial that you are referring to.
     

Share This Page