How to change PHP version for webmail in Plesk for Linux?

Follow

Comments

4 comments

  • Avatar
    Michael Neubert

    The article did work for us. We switched to PHP 8.1 without any problem concerning the latest Roundcube 1.6.
    Just point 7 of the tutorial is wrong.

    plesk repair web -domains-only

    ... is needed as last step instead of:

    plesk repair web -server

    ... to regenerate the Apache webmail configuration files under "/etc/apache2/plesk.conf.d/webmails/" on our Debian GNU/Linux.

    0
    Comment actions Permalink
  • Avatar
    Anastasia Zyrianova

    Hello Michael,

    Thank you for bringing this to our attention! The article was updated accordingly.

    0
    Comment actions Permalink
  • Avatar
    David Tschoepe (Edited )

    I just updated to CloudLinux 7.9. I guess if I want 8.x I need to start with a new server and migrate.

    I want to make this fix, but when I open the roundcube.php file, there is no reference to a PHP version in the file. All I see is variable references such as $roundcubePhpHandler

       $roundcubePhpHandler = $VAR->server->webserver->roundcube->phpHandler;

    or the following code snippet.

                <Files ~ (\.php$)>
                    SetHandler fcgid-script
                    FCGIWrapper <?php echo $VAR->server->webserver->apache->phpCgiBin ?> .php
                    Options +ExecCGI
                </Files>

    What do I need to do in order to implement this hack?

    0
    Comment actions Permalink
  • Avatar
    Anastasia Zyrianova

    Hello David, 

    Roundcube 1.4 doesn't support PHP 8. Due to this, it is not possible to use PHP higher than 7.4 for RHEL 7, CentOS 7, CloudLinux 7, and Ubuntu 18.04. For other modern OSes, Roundcube 1.5 is shipped with PHP 8.0 by default starting from Plesk Obsidian 18.0.49. 
    In case you would like to use PHP 8 for Roundcube, please consider migrating to one of the OSes which support Roundcube 1.5.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request