Multiple versions of PHP - "Default" uses PHP 5 php.ini

Discussion in 'ISPConfig 3 Priority Support' started by Jemt, Jul 30, 2020.

  1. Jemt

    Jemt Member HowtoForge Supporter

    Hi,
    We have a server that started with Debian 7. It was upgraded to Debian 8 some time ago, and yesterday I brought it up to Debian 9 and then Debian 10.

    On every upgrade I made sure to run the ISPConfig installer to make sure services got re-configured.

    The server has PHP 5.6, 7.0 and 7.3 installed and I made all three versions available from System > Additional PHP Versions. They work fine.

    upload_2020-7-30_23-21-2.png

    Under System > Server config > [SERVER] > Web > PHP Settings I have set ISPConfig to use PHP 7.3 by default.

    upload_2020-7-30_23-0-47.png

    All websites now run on PHP 7.3 by default, but they also use their old PHP 5 configuration (/etc/php5/cgi/php.ini).
    From one of my previous previous posts (Upgraded Debian 8 to 9 - PHP7 now uses PHP5 settings) I was told that this is expected behaviour for existing websites. By chosing PHP 7.3 explicitely, they will run on the configuration from PHP 7.3, which they do.
    However, Till stated in a reply that new websites created with PHP=Default would use the configuration from ISPConfig's PHP Settings (the screenshot above), but they don't. They too use the old PHP 5 configuration too.

    Here is the PHP settings I chose for my newly created test website:

    upload_2020-7-30_23-10-40.png
    This is the FastCGI wrapper ISPConfig created for the new website - notice PHPRC:

    upload_2020-7-30_23-13-20.png

    The OS is configured to use the most recent version of PHP:

    upload_2020-7-30_23-16-10.png

    What am I missing here? Where does ISPConfig get the value for PHPRC from?

    - Thanks in advance

    Best regards
    Jimmy Thomsen
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    System > Server Config > FastCGI
     
    Jemt likes this.
  3. Jemt

    Jemt Member HowtoForge Supporter

    Thanks @till - I expected PHP related stuff to be found under Web so I never thought of looking somewhere else. Thanks :)
     

Share This Page