Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 1st January 2012, 16:29
giftsnake giftsnake is offline
Senior Member
 
Join Date: Jan 2009
Posts: 108
Thanks: 15
Thanked 9 Times in 8 Posts
Default $_SERVER['DOCUMENTROOT'] gives /srv/...

i get a strange warning with an installation of owncloud:

Code:
Warning: is_executable() [function.is-executable]: open_basedir restriction in effect. File(/srv/www/domain.com/web/file) is not within the allowed path(s): (/var/www/clients/client1/web60/web:/var/www/clients/client1/web60/tmp:/var/www/domain.com/web:/srv/www/domain.com/web:/usr/share/php5:/tmp:/usr/lib/cgi-bin/mailman:/var/www/clients/client1/web60/cloud/data) in /var/www/clients/client1/web60/web/cloud/lib/helper.php on line 325

where is the /srv set? the path for all webs is within /var/www/...
Reply With Quote
Sponsored Links
  #2  
Old 1st January 2012, 20:22
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,788
Thanks: 840
Thanked 5,612 Times in 4,423 Posts
Default

This must be set somwhere in the owncloud softare.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 2nd January 2012, 00:16
giftsnake giftsnake is offline
Senior Member
 
Join Date: Jan 2009
Posts: 108
Thanks: 15
Thanked 9 Times in 8 Posts
Default

grep srv -R /path/of/owncloudinstallation gives no such indication
Reply With Quote
  #4  
Old 2nd January 2012, 09:15
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,788
Thanks: 840
Thanked 5,612 Times in 4,423 Posts
Default

According to the error message the script you called executed the command is_executable('/srv/www/domain.com/web/file); which was blocked by the open_basedir restriction. What you could try is that you add /srv/www to the open basedir path and try again.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 2nd January 2012, 13:11
giftsnake giftsnake is offline
Senior Member
 
Join Date: Jan 2009
Posts: 108
Thanks: 15
Thanked 9 Times in 8 Posts
Default

/srv/www/domain.com/web is already in the open_basedir

but i do not understand, where the /srv/www/... path comes from. there is no such directory or setting to find anywhere!?
Reply With Quote
  #6  
Old 3rd January 2012, 02:29
cbj4074 cbj4074 is offline
Senior Member
 
Join Date: Nov 2010
Posts: 395
Thanks: 30
Thanked 58 Times in 50 Posts
Default

Look, the fact that /srv/www/ does not exist on your system is evidence of a bug or a misconfiguration in the PHP script in question.

The reason that /srv/www/... is included in ISPConfig's open_basedir list by default is because nginx uses that path as its document root (please correct me if I'm wrong here, Till).

This isn't a PHP debugging forum, but humor us and post the relevant contents of the file and the issue may be obvious.

Last edited by cbj4074; 3rd January 2012 at 02:33.
Reply With Quote
  #7  
Old 3rd January 2012, 03:36
giftsnake giftsnake is offline
Senior Member
 
Join Date: Jan 2009
Posts: 108
Thanks: 15
Thanked 9 Times in 8 Posts
 
Default

i thought that since there is no such string as 'srv' in the whole directory of the php-script in question, the information has to come somewhere from the configuration of php/ispconfig.

anyways, i now found out that the script gets the open_basedir-paths and checks for stuff there. thats why the /srv/... warning is displayed.

can be closed then, thanks for your help
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:06.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.