add older php to ubuntu 20.04

Discussion in 'Server Operation' started by kwickcut, Nov 12, 2023.

  1. kwickcut

    kwickcut Member HowtoForge Supporter

    so i have installed the perfect server ubuntu 20.04 with this link. was able to get everything going but am having an issue installing an older version of php. i have used PPA for Ondřej Surý to add the older php versions kind of with issue. when i go into ispconfig and go to

    system/additional php versions/add i am unable to find the files i need to link to for

    Path to the PHP FastCGI binary
    Path to the php.ini directory
    ath to the PHP-FPM init script
    Path to the php.ini directory:
    Path to the PHP-FPM pool directory

    i have looked with no results. am i missing something? i have to have the option to change in the user end of ispconfig for the end user and dont want to make 5.6 the default even if that was an option


    thanks

    kwick
     
  2. remkoh

    remkoh Active Member

    It should be

    Path to the PHP FastCGI binary: /usr/bin/php-cgi7.X
    Path to the php.ini directory: /etc/php/7.X/apache2/php.ini
    Path to the PHP-FPM init script: php7.X-fpm
    Path to the php.ini directory: /etc/php/7.X/fpm/php.ini
    Path to the PHP-FPM pool directory: /etc/php/7.X/fpm/pool.d
    PHP-FPM socket directory: /var/lib/php7.X-fpm

    Or when you want PHP 5.6 or 8.X then you change 7.X to 5.6 or 8.X

    How would 5.6 become default when Ubuntu 20.04 default is 7.4?
    That can only happen when you've altered the default version to be used yourself.
     
    Last edited: Nov 12, 2023
  3. kwickcut

    kwickcut Member HowtoForge Supporter


    thank you i will check shortly. i had done so many things i decided to reload the system from scratch

    kwick
     
  4. remkoh

    remkoh Active Member

    It's the same for older Ubuntu 18.04 and newer 22.04
     
  5. kwickcut

    kwickcut Member HowtoForge Supporter

    thank you everything is as you said but now that opened another issue lol but thank you will make a new post



    kwick
     

Share This Page