View Full Version : Plesk and eGroupware
Deej
6th December 2006, 05:38 PM
eGroupware seems to have a few functions not working. Mydms can not create or edit folders, it just says editing folder ...
it should say editing folder ... done.
and admin is unable to delete users, it just goes to a blank page when you hit delete all records.
I've done the same exact install on another box with cpanal and it works perfectly. So i'm assuming there is issues with Plesk. Anyone have any suggestions?
Thanks.
DavidCollom
6th December 2006, 06:00 PM
have you tried enabling the display of php errors? or checked your error log?
also check permisions
Deej
6th December 2006, 06:45 PM
This is what I'm getting...
Warning: main() [function.main]: open_basedir restriction in effect. File(/engine/config.egw.inc.php) is not within the allowed path(s): (/tmp:/var/www/vhosts/atbest.com/httpdocs:/var/www/vhosts/atbest.com/egroupbackup:/var/www/vhosts/atbest.com/egroupfiles:/var/lib/php5:/usr/share/php5:/usr/share/php5/PEAR:/var/lib/php/session:/proc/:/usr/bin:/var/www/vhosts/atbest.com/httpdocs/egroupware/mydms/inc:/var/www/vhosts/atbest.com/httpdocs/egroupware:/var/www/vhosts/atbest.com/httpdocs/egroupware/workflow:/var/www/vhosts/atbest.com/httpdocs/egroupware/workflow/engine:/var/www/vhosts/atbest.com/httpdocs/egroupware/workflow/engine/src:/var/www/vhosts/atbest.com/httpdocs/egroupware/workflow/inc) in /var/www/vhosts/atbest.com/httpdocs/egroupware/workflow/inc/class.workflow_rolemanager.inc.php on line 3
Warning: main(engine/config.egw.inc.php) [function.main]: failed to open stream: Operation not permitted in /var/www/vhosts/atbest.com/httpdocs/egroupware/workflow/inc/class.workflow_rolemanager.inc.php on line 3
Fatal error: main() [function.require]: Failed opening required 'engine/config.egw.inc.php' (include_path='.:') in /var/www/vhosts/atbest.com/httpdocs/egroupware/workflow/inc/class.workflow_rolemanager.inc.php on line 3
I have all of those in my openbase dir config.. not sure what else to check.
DavidCollom
6th December 2006, 06:48 PM
hmm looks to me as though its trying to access files from the doc root. check your config for a document root setting, or try and install it the root of a subdir, i think i have the same problem with mine and works fine in a document root of a subdomain.
Deej
6th December 2006, 07:23 PM
didn't work, seem to be getting the same open_base dir errors.
This one for mydms:
Warning: main() [function.main]: open_basedir restriction in effect. File(/inc.Utils.php) is not within the allowed path(s): (/tmp:/var/www/vhosts/atbest.com/subdomains/team/httpdocs:/var/www/vhosts/atbest.com/subdomains/team/files:/var/lib/php5:/usr/share/php5:/usr/share/php5/PEAR:/var/lib/php/session:/proc/:/usr/bin) in /var/www/vhosts/atbest.com/subdomains/team/httpdocs/mydms/inc/inc.Authentication.php on line 2
Warning: main(inc.Utils.php) [function.main]: failed to open stream: Operation not permitted in /var/www/vhosts/atbest.com/subdomains/team/httpdocs/mydms/inc/inc.Authentication.php on line 2
Warning: main() [function.include]: Failed opening 'inc.Utils.php' for inclusion (include_path='.:') in /var/www/vhosts/atbest.com/subdomains/team/httpdocs/mydms/inc/inc.Authentication.php on line 2
And when I try to edit a folder:
Editing folder...
Fatal error: Call to undefined function sanitizeString() in /var/www/vhosts/atbest.com/httpdocs/egroupware/mydms/op/op.EditFolder.php on line 41
and the same error as above post to try to delete a user.
Deej
6th December 2006, 08:18 PM
Wow, I found a solution on the net. The solution was to configure your php.ini.
As you can see in the errors that the include path is .:
well changing this in php.ini to:
include_path = "./"
everything works! What a relief! Just thought I would post the solution for anyone else.
DavidCollom
7th December 2006, 03:41 AM
you may find it a bit easier if you try changing the value in a .htaccess file.
php_value include_path "./"
Deej
7th December 2006, 11:29 AM
To keep the configuration local right? Beings it's Plesk and everything it does is local, it would probably be a good idea to do that. What is a path of '.:' anyways?
Thanks.
brucekurz
7th May 2007, 09:11 PM
I poured in and out of all these and the one that fixed it was changing the path to ./ instead of .: and now all scripts that were giving me open base dir errors now work. with the vhost.conf added. ps. this all happened on psa 8.1 linux.
---------
Steps to my fix:
1. edit httpd.include
add the line Include /var/www/vhosts/yourdomainhere.com/conf/vhost.conf
saved and exit
2. make new file and save as vhost.conf
3. edit the vhost.conf to have:
<Directory /var/www/vhosts/yourdomainhere.com/httpdocs>
php_admin_value open_basedir "/var/www/vhosts/yourdomainhere.com/httpdocs/"
</Directory>
SAVE EXIT
4. edit my php.ini searched for include_path =
using /include_path =
5. removed the .: and added the ./
6. save and then execute
/usr/local/psa/admin/sbin/websrvmng -v -a
and
/etc/rc.d/init.d/httpd restart
and all is working great...
Thank you for that Deej great work
brucekurz
7th May 2007, 10:10 PM
Quick question. does using ./ in the php.ini under include_path pose any security issue in anyway.
vBulletin® v3.6.12, Copyright ©2000-2008, Jelsoft Enterprises Ltd.