PHP default version

Discussion in 'Installation/Configuration' started by artinfo, Mar 14, 2023.

  1. artinfo

    artinfo Member

    Hi,

    Can anyone help me with php problem. Update-alternatives shows (also php -v) that my php version is 7.4 (default). However ISPC ignores that and treats higher installed version as default (in my case 8.2). Is it an error or config problem?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Never alter the default PHP version of the OS, as this likely breaks your ISPConfig system. The default PHP version of the OS gets only changed in case you upgrade the OS to a new version that has a different default PHP version. Take care to change back the default version of the OS before your system gets broken and do not use ISPConfig until you reversed the PHP version change.
     
  3. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    artinfo likes this.
  4. artinfo

    artinfo Member

    Hi... so if I understand... i should revert default php to version that comes with Debian 10 (my present system) and ISP should work fine?
     
  5. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Yes...
     
  6. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    php -v will be showing you the php version that the cli is using, not the sites or control panel..
    ispconfig, and your websites, will be using php-cgi or php-fpm
    you should check what the alternatives for those are set to, (php-cgi, php-cgi-bin, & php-fpm.sock) and change them back to the default version if different.
     
  7. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    The same command for each type of php in the said tutorial should already show what is set when one run such command, while at the same time giving options for change, if needed.
     

Share This Page