• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Plesk and eGroupware

D

Deej

Guest
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.
 
have you tried enabling the display of php errors? or checked your error log?
also check permisions
 
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.
 
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.
 
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.
 
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.
 
you may find it a bit easier if you try changing the value in a .htaccess file.

php_value include_path "./"
 
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.
 
wow thank you.

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
 
does this pose any security issue

Quick question. does using ./ in the php.ini under include_path pose any security issue in anyway.
 
Back
Top