• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Error open_basedir after update 12.5 to 17 Onyx

psyche699

New Pleskian
Hello al,

I have a error during update plesk 12.5.30 to 17.0.17, with Roundcube.


Code:
PHP Warning:  realpath(): open_basedir restriction in effect. File(/usr/share/psa-roundcube) is not within the allowed path(s): (/var/www/vhosts/domain.com/httpdocs) in /usr/share/psa-roundcube/bin/update.sh on line 22
PHP Warning:  require_once(): open_basedir restriction in effect. File(/program/include/clisetup.php) is not within the allowed path(s): (/var/www/vhosts/domain.com/httpdocs) in /usr/share/psa-roundcube/bin/update.sh on line 24
PHP Warning:  require_once(/program/include/clisetup.php): failed to open stream: Operation not permitted in /usr/share/psa-roundcube/bin/update.sh on line 24
PHP Fatal error:  require_once(): Failed opening required '/program/include/clisetup.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/psa-roundcube/bin/update.sh on line 24

The error is clear, but, i dont know to solve this...
Pleas i need help ASAP..

Thanks
 
Last edited:
With what user are you signed on to the console and which command did you run that produces the output?
 
i test without root user

I have a multiple error :
Code:
PHP:  syntax error, unexpected '(' in /etc/php.ini on line 365

Warning: realpath(): open_basedir restriction in effect. File(/home) is not within the allowed path(s): (/var/log/plesk-roundcube:/usr/share/psa-roundcube:/var/www/vhosts/domain.com


; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
; http://php.net/disable-functions
disable_functions =

; This directive allows you to disable certain classes for security reasons.
; It receives a comma-delimited list of class names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
; http://php.net/disable-classes
disable_classes =

; Colors for Syntax Highlighting mode.  Anything that's acceptable in
; <span style=color: ???????> would work.
; http://php.net/syntax-highlighting
;highlight.string  = #DD0000
;highlight.comment = #FF9900
;highlight.keyword = #007700
;highlight.default = #0000BB
;highlight.html    = #000000

;  in /usr/share/psa-roundcube/program/lib/Roundcube/rcube_config.php on line 235

Warning: realpath(): open_basedir restriction in effect. File(/home) is not within the allowed path(s): (/var/log/plesk-roundcube:/usr/share/psa-roundcube:/var/www/vhosts/domain.com


; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
; http://php.net/disable-functions
disable_functions =

; This directive allows you to disable certain classes for security reasons.
; It receives a comma-delimited list of class names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
; http://php.net/disable-classes
disable_classes =

; Colors for Syntax Highlighting mode.  Anything that's acceptable in
; <span style=color: ???????> would work.
; http://php.net/syntax-highlighting
;highlight.string  = #DD0000
;highlight.comment = #FF9900
;highlight.keyword = #007700
;highlight.default = #0000BB
;highlight.html    = #000000

;  in /usr/share/psa-roundcube/program/lib/Roundcube/rcube_config.php on line 235
ERROR: Configuration error. Unsupported database driver: [centos@ ~]$
 
You have at least two critical issues.
a) "PHP: syntax error, unexpected '(' in /etc/php.ini on line 365"
b) "ERROR: Configuration error. Unsupported database driver:"

On a) Check what's wrong in line 365 of your /etc/php.ini file and correct it.
On b) Remove and reinstall webmail from your server, for example by GUI "Updates & Upgrades".

In this case I suggest to run
# plesk repair installation
too, but only after (a) has been fixed, because else there can be further issues because the php.ini file cannot be interpreted correctly.
 
Thanks Peter for you're help !

on a) the connection on database is correct, and all is correct too.

On n) i try this, and now i have access on webmail.
But, i have a other probleme, before i have configured the roundcube for use with the plugin enigma.

I having to check all configuration,/ chown/chmod/open_basedir. But now, i have a error for import or generate key :
Code:
Impossible to generate a key/import the key.

I search on the log, but nothing trace...

Please help me...
 
I suggest to post this other issue you are now experiencing on a different forum, because neither Roundcube, nor the enigma plugin for Roundcube is actually part of Plesk. Plesk is delivering Roundcube, yes, but it is a third party component that is not managed by Plesk. If you experience issues with using Roundcube or expanding it with extras, this would actually be something a Roundcube expert will need to look into. It's not a Plesk issue (one of my favorite sentences on here ;) ...)
 
Back
Top