PHP Open_Basedir Custom Setting problems

Questions about hosting a Website, using MySQL and PhP may be posted here.
Forum rules
This is a user forum for Synology users to share experience/help out each other: if you need direct assistance from the Synology technical support team, please use the following form:
https://myds.synology.com/support/suppo ... p?lang=enu

PHP Open_Basedir Custom Setting problems

Postby Sna55y » Thu Mar 22, 2012 1:20 am

I was wondering if any one else had had any problems using the custom open_basedir settings in DSM3.2-1944?

The problem is i need to download files from /volume1/video (/var/services/video). My first port of call was the option in DSM to customize paths in open_basedir. This seems to break the php code i have written and i get a HTTP 500 Error. Reverting to the default fixes this but the the php code still complains it can not find the file. If I set the path in the php code anywhere below /volume1/web (/var/services/web) the code goes off happily and downloads the file.

I have tried manually configuring /usr/syno/etc/php.ini and /usr/syno/etc/php/user-setting.ini but these files seem to be over written by S97apache-user.sh on a re-boot.

I also also tried changing a few settings in httpd.conf like <directory> full access and turning off open_basedir using <php_admin_value open_basedir none> but when i go back to the httpd.conf file the changes have been overwritten.

Any ideas?
Sna55y
I'm New!
I'm New!
 
Posts: 2
Joined: Thu Mar 22, 2012 12:08 am

Re: PHP Open_Basedir Custom Setting problems

Postby Sna55y » Thu Mar 22, 2012 11:10 pm

Got it!

Upgraded to DSM4.0-2198 - Customize open_basedir option now working.
Sna55y
I'm New!
I'm New!
 
Posts: 2
Joined: Thu Mar 22, 2012 12:08 am

Re: PHP Open_Basedir Custom Setting problems

Postby itmdesk01 » Thu Apr 05, 2012 8:40 am

Sna55y wrote:Got it!

Upgraded to DSM4.0-2198 - Customize open_basedir option now working.



I'm new to this forum. I'm apparently having a problem with open_basedir settings when I installed Joomla. When I try to install an extension (language pack) of Joomla I get the error message "JFolder::create: Path not in open_basedir paths Unable to create destination"
My standard settings in Joomla are a volume1/web/joomla/tmp directory for the upload of extension files, and this seems to work fine because I find the uploaded extension file there. The problem thus is in unpacking this (zip) file and distributing its content elsewhere.
Where can I find the open_basedir settings? Would you accidentally know what I have to change there? I already have DSM4.0-0-2198.
Thanks in advance
itmdesk01
I'm New!
I'm New!
 
Posts: 2
Joined: Thu Apr 05, 2012 8:08 am

Re: PHP Open_Basedir Custom Setting problems

Postby axj » Thu Apr 05, 2012 10:57 am

You find it under Control Panel - WebServices - PHP Settings !
DS509+ 4*1TB Raid+1TB DSM 4.0-2219. Logitech BOOM+Duet 7.6.1, WebCam: Linksys WVC54GCA + TrendNet TV-IP121
DS212+ 1TB & D-Link DIR-685, HP C7280, Dell 3100cn. iPad3, Programming Pascal, Clarion 5.5, html/php. http://axj.dk
User avatar
axj
Specialist
Specialist
 
Posts: 1058
Joined: Fri Jan 02, 2009 10:59 am
Location: Esbjerg, Danmark

Re: PHP Open_Basedir Custom Setting problems

Postby itmdesk01 » Sat Apr 07, 2012 3:24 pm

Oops, sorry. Just overlooked the whole thing, in my initial settings the Customize PHP open_basedir option was unchecked and thus greyed-out. Thanks.
itmdesk01
I'm New!
I'm New!
 
Posts: 2
Joined: Thu Apr 05, 2012 8:08 am


Return to Web Server + PHP / MySQL

Who is online

Users browsing this forum: No registered users and 1 guest