Delete PHP 5.6

Discussion in 'Server Operation' started by Hbod, Jul 22, 2020.

  1. Hbod

    Hbod Member

    Hello, everyone,

    I would like to completely remove PHP 5.6 and PHP 7.0 from my server.

    I've been going through each page by hand and have manually switched to 7.3 or 7.4. (I'm sure there would have been an automatic possibility to do this via phpMyAdmin, I suppose?)

    The packages are installed via sury and available as selectable versions.

    Is it enough if I execute an "apt remove php5.6*" via the shell? The Apache modules have been disabled for a long time. I still noticed that all sockets are still stored in /var/lib/php5-fpm/, no matter which version is used for the website. This is probably due to the config (see screenshot).

    Which path should I enter there so that no problems occur? I assume that I will delete the corresponding directories when "purging" PHP 5.6.

    By the way, I noticed that when I switch to PHP 7.3 FPM I always have to restart via "systemctl restart php7.3-fpm", otherwise it leads to a "service unavailable". Is it recommended to set the mode from reload to restart and install the incron trigger?

    I would be grateful for a few tips. Thanks a lot.

    [​IMG]
     
  2. Steini86

    Steini86 Active Member

    ISPconfig will stop working when you change the systems default php version.
    You do not say which system you are using, but you should be on one that has php7.3 or php7.4 as standard (Debian Buster, Ubuntu 20.04). Then you already should have php7.3 everywhere (for debian buster), or php7.4 (for ubuntu 20.04) in your config. Only change them in case of a system upgrade (which uses a different php version).
    All additional versions (installed via sury repo) should be configured as additional php versions.
     

Share This Page