change default php version

Discussion in 'ISPConfig 3 Priority Support' started by stst, Jul 29, 2025.

  1. stst

    stst Member HowtoForge Supporter

    How do I globally change the default php version?
    I updated Syste - Server Config - Web - PHP Settings with the new version's path, but that doesn't seem to have any effect until I change the setting in each web page to anything else and then back to default.
    What is the correct way to do this?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The default PHP version is the standard PHP version of the operating system. It changes only when you upgrade the operating system to a new major version. Changing the version under System > server config to a PHP version that is not the default version of the OS is not recommended. Also, changing the default for new websites will not alter any existing site if the PHP version is not the default version of the OS.
     
    Last edited: Jul 29, 2025
  3. stst

    stst Member HowtoForge Supporter

    php -v shows, that default is 8.1, but the webpages set to default still use 8.0
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Which PHP mode do you use in the websites?
     
  5. stst

    stst Member HowtoForge Supporter

    php-fpm
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    What you can try is to run Tools > Resync on all websites; this will write all configs again.
     
  7. stst

    stst Member HowtoForge Supporter

    thanks, that worked.

    So what is the default content of System - Server Config - Web - PHP Settings? (since I changed that for the new version)
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

  9. stst

    stst Member HowtoForge Supporter

    sorry for my missleading question. I know the default PHP version, but I changed "Apache php.ini path", "CGI php.ini path", ... in PHP settings. So what are the default path settings?
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

  11. stst

    stst Member HowtoForge Supporter

    seems to be ok, thank you.
     

Share This Page