Roundcube Community Forum
Release Support => Pending Issues => Topic started by: walnut1 on October 20, 2021, 12:10:06 PM
-
I upgraded from 1.4.11 to 1.5.0 today and at the end of the install the scripts completes with this reminder as usual:
NOTICE: Update dependencies by running `php composer.phar update --no-dev`
Ok, I run `php composer.phar update --no-dev` and get the following error:
[RuntimeException]
The PEAR repository has been removed from Composer 2.0
This I got from simply following the instructions, but I do not have a strong linux background. Can someone help me out or point me in the right direction here?
-
In composer.json the "repositories" item should look like this:
"repositories": [
{
"type": "composer",
"url": "https://plugins.roundcube.net"
}
],
-
I had the same problem. Turned out that my 4.x installation had an old composer.json file. A new one was distributed with the installation but not enabled, named: composer.json-dist. I backed up my old file and copied the new file to composer.json. Then the command worked (although, I still have a couple of errors).
-
In composer.json the "repositories" item should look like this:
"repositories": [
{
"type": "composer",
"url": "https://plugins.roundcube.net"
}
],
Thanks Alec, this helped me get a bit further.
`php composer.phar update --no-dev` worked after your recommendation, installed and did many things.
Now when I go to my Roundcube installation I get this error:
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.1.0".
Here is the output of php -V on my system:
PHP 7.3.31-1~deb10u1 (cli) (built: Oct 24 2021 15:18:08) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.31, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.31-1~deb10u1, Copyright (c) 1999-2018, by Zend Technologies
Help! What am I missing here?
-
You may have multiple php versions in the system. The one configured for use with the http server might be older.
-
Thank you Alec!! Your information set me on the right path and I was able to configure Apache to use a newer version of PHP, and now my Roundcube works great!
In case anyone else gets stuck like I was I'll add in the steps I used to fix it now that you pointed me in the right direction:
to check what version of PHP is being used by Apache 2 on debian:
cd /etc/apache2/mods-enabled
ls
This showed php5 module is loaded.
So, since PHP 7.3 is installed I had to do this:
sudo a2dismod php5
sudo a2enmod php7.3
sudo systemctl restart apache2
Love my RoundCube 1.5.1 !