We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Roundcube stopped working after PHP upgrade (can't upgrade Roundcube)
Roundcube stopped working after PHP upgrade (can't upgrade Roundcube)
Hello.
Long story short - recent VestaCP install comes with NGINX + PHP-FPM that installs PHP version 7.4, so after fresh VestaCP installation I downgraded PHP from 7.4 to 7.2 (i followed this topic viewtopic.php?t=17581).
The issue is that now, whenever I try to login in Webmail (Roundcube) I'm redirected to blank page. For debugging purposes I enabled installer and saw, that Roundcube that is currently set up, requires PHP 5.4 version, which is way to old. So the issue can be resolved probably by upgrading Roundcube to version that uses PHP 7.2 and up.
Now the question is - how can I manually upgrade Roundcube in VestaCP? I've come accross some articles (for example https://web-berjaya.com/2018/02/04/upda ... e-vestacp/ and viewtopic.php?t=12228) but most of them don't match the Roundcube locations or folder names. That's why I'm litte bit paranoid to manually upgrade it when VestaCP has moved the Roundcube directories in different system directories.
Long story short - recent VestaCP install comes with NGINX + PHP-FPM that installs PHP version 7.4, so after fresh VestaCP installation I downgraded PHP from 7.4 to 7.2 (i followed this topic viewtopic.php?t=17581).
The issue is that now, whenever I try to login in Webmail (Roundcube) I'm redirected to blank page. For debugging purposes I enabled installer and saw, that Roundcube that is currently set up, requires PHP 5.4 version, which is way to old. So the issue can be resolved probably by upgrading Roundcube to version that uses PHP 7.2 and up.
Now the question is - how can I manually upgrade Roundcube in VestaCP? I've come accross some articles (for example https://web-berjaya.com/2018/02/04/upda ... e-vestacp/ and viewtopic.php?t=12228) but most of them don't match the Roundcube locations or folder names. That's why I'm litte bit paranoid to manually upgrade it when VestaCP has moved the Roundcube directories in different system directories.
Re: Roundcube stopped working after PHP upgrade (can't upgrade Roundcube)
Nevermind. I made backup and tried second article. Now everything works.
For those with similar issue here is the solution (original post viewtopic.php?t=12228#p57475):
For more recent version change <roundcube> to <roundcubemail>!
For those with similar issue here is the solution (original post viewtopic.php?t=12228#p57475):
For more recent version change <roundcube> to <roundcubemail>!
www.rinku31 wrote: ↑Sat Mar 04, 2017 6:02 am
*** Save Original Files*** Copy Database DetailsCode: Select all
mv /usr/share/roundcube/ /usr/share/roundcube_bk/ cp -R /var/lib/roundcube/ /var/lib/roundcube_bk/
Copy database details form file: /etc/roundcube/db.inc.php and save in a text file. it will use in last step.
*** Download Roundcube and prepare the folder (you can find link: https://roundcube.net/download/). 1.2.3 is latest version for now but you can replace for future update.*** Rename config.inc.php.sampleCode: Select all
wget https://github.com/roundcube/roundcubemail/releases/download/1.2.3/roundcubemail-1.2.3.tar.gz tar xvf roundcubemail-1.2.3.tar.gz cp -R roundcubemail-1.2.3/ /usr/share/roundcube/
Go to location: /usr/share/roundcube/config/ and rename config.inc.php.sample to config.inc.php
*** Create config files (and symlinks)*** Copy plugins and skinsCode: Select all
mkdir /etc/roundcube/config cp /usr/share/roundcube/config/defaults.inc.php /etc/roundcube/config/defaults.inc.php ln -s /etc/roundcube/config/defaults.inc.php /var/lib/roundcube/config/defaults.inc.php cp /usr/share/roundcube/config/config.inc.php /etc/roundcube/config/config.inc.php ln -s /etc/roundcube/config/config.inc.php /var/lib/roundcube/config/config.inc.php
***Set up password and database name (copy, past form your copied text file)Code: Select all
rm -R /var/lib/roundcube/plugins/ rm -R /var/lib/roundcube/skins/ cp -R /usr/share/roundcube/plugins/ /var/lib/roundcube/plugins/ cp -R /usr/share/roundcube/skins/ /var/lib/roundcube/skins/
Code: Select all
nano /etc/roundcube/config/defaults.inc.php nano /etc/roundcube/config/config.inc.php modify this line : $config['db_dsnw'] = 'mysql://name of sql user:password of user@localhost/database name';