Roundcube detect old default system PHP version

Discussion in 'Installation/Configuration' started by pkaresz11, Sep 26, 2024.

  1. pkaresz11

    pkaresz11 Member

    Hi,
    i have Ubuntu server 20.04. I want to change default php version from 7.4.33 to 8.3 and upgrade manually Roundcube 1.4.3(installed from ubuntu repo) to 1.6.9 (from source). I changed the default PHP version (update-alternatives...). Checking with php -v. Ok. It show PHP 8.3
    But roudcube detect still old PHP 7.4.33 version. I removed,purged roundcube reinstall on the default PHP 8.3 but Roundcube (and the installer) detect still PHP 7.4.33. I create a phpfile (phpinfo()) in roundcube directory and show php 7.4.33
    What is right way to correct this issue?
    Thanks for your help.
     
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Check its vhost or conf file as it could be fixed in there.
     
  3. pkaresz11

    pkaresz11 Member

    Thanks!
    I enabled the new php conf in apache2. (a2enconf php8.3-fpm)
    It works.
     
    ahrasis and till like this.
  4. wayose

    wayose New Member

    not points ChatGPT said: To fix the issue, it seems that although PHP 8.3 is set as the default version on your system, Roundcube is still using PHP 7.4. This might be because your web server (Apache or Nginx) is still pointing to the old PHP version. You need to update the configuration of your web server to ensure it's using PHP 8.3 instead of PHP 7.4. You can check your server’s PHP-FPM or mod_php configurations to make sure they are set to use PHP 8.3. Also, clearing any caches related to Roundcube or your web server could help as well, as it might be caching the old PHP version. If that doesn't work, reinstalling Roundcube while ensuring that PHP 8.3 is used should resolve the issue.
     

Share This Page