Why roundcube is not installed in /usr/share/php/roundcube ?

Asked by ñull

In many hosting environments /usr/share/php is already added to open_basedir . So I was wondering why roundcube (which is written in PHP after all) is not installed in /usr/share/php/roundcube ? This would cause it to be included in open_basedir without any extra effort.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu roundcube Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of:

lsb_release -a; uname -a; apt-cache policy roundcube

Thanks

Revision history for this message
ñull (erniecom) said :
#2

In fact the symlinks cause many more problems here. Should I now add all these to open_basedir? Seems very unsafe to me. I had hoped that with the package manager it would be easy. I might as well manually install en upgrade then:

Warning: realpath(): open_basedir restriction in effect. File(/etc/roundcube/defaults.inc.php) is not within the allowed path(s): (/var/www/admin/htdocs/:/var/www/admin/apps/:/var/www/admin/priv/:/var/www/admin/tmp/:/usr/share/pear/:/usr/share/php/:/usr/share/roundcube) in /usr/share/roundcube/program/lib/Roundcube/rcube_config.php on line 350

Warning: realpath(): open_basedir restriction in effect. File(/etc/roundcube/config.inc.php) is not within the allowed path(s): (/var/www/admin/htdocs/:/var/www/admin/apps/:/var/www/admin/priv/:/var/www/admin/tmp/:/usr/share/pear/:/usr/share/php/:/usr/share/roundcube) in /usr/share/roundcube/program/lib/Roundcube/rcube_config.php on line 350

Warning: realpath(): open_basedir restriction in effect. File(/var/lib) is not within the allowed path(s): (/var/www/admin/htdocs/:/var/www/admin/apps/:/var/www/admin/priv/:/var/www/admin/tmp/:/usr/share/pear/:/usr/share/php/:/usr/share/roundcube) in /usr/share/roundcube/program/lib/Roundcube/rcube_config.php on line 236

Warning: realpath(): open_basedir restriction in effect. File(/var/log/roundcube) is not within the allowed path(s): (/var/www/admin/htdocs/:/var/www/admin/apps/:/var/www/admin/priv/:/var/www/admin/tmp/:/usr/share/pear/:/usr/share/php/:/usr/share/roundcube) in /usr/share/roundcube/program/lib/Roundcube/rcube_config.php on line 236

Warning: realpath(): open_basedir restriction in effect. File(/var/lib) is not within the allowed path(s): (/var/www/admin/htdocs/:/var/www/admin/apps/:/var/www/admin/priv/:/var/www/admin/tmp/:/usr/share/pear/:/usr/share/php/:/usr/share/roundcube) in /usr/share/roundcube/program/lib/Roundcube/rcube_config.php on line 236

Warning: realpath(): open_basedir restriction in effect. File(/var/lib/roundcube/temp) is not within the allowed path(s): (/var/www/admin/htdocs/:/var/www/admin/apps/:/var/www/admin/priv/:/var/www/admin/tmp/:/usr/share/pear/:/usr/share/php/:/usr/share/roundcube) in /usr/share/roundcube/program/lib/Roundcube/rcube_config.php on line 236

Revision history for this message
ñull (erniecom) said :
#3

# lsb_release -a; uname -a; apt-cache policy roundcube
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic
Linux zibamrakez 4.15.0-72-generic #81-Ubuntu SMP Tue Nov 26 12:20:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
roundcube:
  Installed: 1.3.6+dfsg.1-1
  Candidate: 1.3.6+dfsg.1-1
  Version table:
 *** 1.3.6+dfsg.1-1 500
        500 http://mirror.hetzner.de/ubuntu/packages bionic/universe amd64 Packages
        500 http://mirror.hetzner.de/ubuntu/packages bionic/universe i386 Packages
        100 /var/lib/dpkg/status

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

This seems to be similar
https://support.plesk.com/hc/en-us/articles/115000278993-A-website-hosted-in-Plesk-is-not-accessible-open-basedir-restriction-in-effect-File-is-not-within-the-allowed-path-s-

Looks like some file needs editting. Its not something I use and you may want to post on a Roundcube forum

Revision history for this message
ñull (erniecom) said :
#5

There is another bug. In the end I added all missing folders to open_basedir , but then I received a message that the config.inc.php was not found, while I saw it was there. I reran the package configuration but that did not help. I gave up on it and resort to manual installation and upgrade. Thanks for your efforts though.

Can you help with this problem?

Provide an answer of your own, or ask ñull for more information if necessary.

To post a message you must log in.