Asked by:
joomla

Question
-
User778546470 posted
I installed joomla like described here http://learn.iis.net/page.aspx/527/joomla-on-iis/
When i set Global Configuration menu configure SEO settings and press apply i get this eror:
PHP Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (\\hb1411\iisstorage\web;c:\windows\temp) in \\hb1411\iisstorage\web\testbjorn\wwwroot\libraries\joomla\filesystem\path.php on line 200
Tuesday, February 10, 2009 5:25 AM
All replies
-
User1073881637 posted
Sounds like the IUSR or Network service account doesn't have permission to write to c:\windows\temp, which is the default %TMP% location.
Tuesday, February 10, 2009 6:22 AM -
User778546470 posted
The tmp is location is c:\windows\temp
network service and iusr have write permissions in this folder, but i still get the same error.
I'll look with processmonitor if there is some kind of deny.
This is a farm setup, so where will he try to use the temp folder from? If this is the storage server that it could be a problem.
Tuesday, February 10, 2009 7:48 AM -
User-1637866776 posted
It looks like Joomla tries to check folder "/tmp" at the file system root. Since the open_basedir does not allow access to that location the warning occurs. The easiest way to fix that I think is to add the "C:\tmp" to the open_basedir, e.g.:
open_basedir = \\hb1411\iisstorage\web;c:\windows\temp;c:\tmp
Note, that you do not actually have to have this directory on a file system as Joomla will fall back to configured session directory if it cannot write to tmp folder.
Tuesday, February 10, 2009 2:43 PM -
User778546470 posted
No that didn't fix it. I created the c:\tmp dir and added the security for iusr and network service.
Also added it as openbasedir:
PHP Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (\\hb1411\iisstorage\web;c:\windows\temp;c:\tmp) in \\hb1411\iisstorage\web\testbjorn\wwwroot\libraries\joomla\filesystem\path.php on line 200
The settings seem to be saved, but i don't want it to show this error.
Wednesday, February 11, 2009 3:31 AM -
User-1637866776 posted
Try this instead:
open_basedir = "\\hb1411\iisstorage\web;c:\windows\temp;/tmp" . This worked for me.
Wednesday, February 11, 2009 1:42 PM -
User778546470 posted
Thx that fixed it.
Thursday, February 12, 2009 3:36 AM -
User1976629052 posted
Hi. I need some help/advice. I've spent the past 2 weeks on this with a senior technician at my hosting company.
IIS7, Windows 2008, PLESK 10.4 ..where PLESK forces an open_basedir and there's no way to circumvent it or delete it permanently.
I tried the string in this thread that supposedly works, yet it doesn't in my case.I'm experimenting, but it's a production server... (the one below seemed to work, but it's not for new sites.)
PHP Warning: is_writable(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (C:\Inetpub\vhosts\{domain name}\httpdocs\;C:\Windows\Temp;/tmp;/) in C:\Inetpub\vhosts\{domain name}\httpdocs\libraries\joomla\filesystem\path.php on line 235
In PLESK, this translates to " {DOCROOT}\;;C:\Windows\Temp;/tmp;/ " and it writes the physical paths directly to the Windows registry.
I've tried /, \, /tmp, \tmp, creating a c:\tmp folder with 'everyone permissions' until I could figure this out, assigned /tmp as an environment variable to c:\windows\temp, and way more.
Ideas? Suggestions? Permissions? Procedures?
Wednesday, March 21, 2012 9:13 AM -
User-436585279 posted
Hi, I have the same problem, Had you find any sollution?
regards
Wednesday, May 30, 2012 7:17 AM -
User778546470 posted
This is my open_basedir = "c:\windows\temp;/tmp;\\\CLST_SMB1IIS\WebfarmData$\WebData\" . The last is the unc path for the websites. Also read this http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_id=8103&tracker_item_id=25337 . Issue has been reported by me almost a year ago and still excists in the newest version of joomla. Can't seem to fix the layout.Wednesday, May 30, 2012 7:57 AM -
User782596279 posted
This is a late response for this thread, I post it for so it could be useful for anybody. I dealed with this for some days and found a solution that solves the problem fixing the Joomla code:
Edit the file /libraries/joomla/filesystem/path.php in the line 234:
Change this:
// Try to find a writable directory
$dir = is_writable('/tmp') ? '/tmp' : false;
$dir = (!$dir && is_writable($ssp)) ? $ssp : false;
$dir = (!$dir && is_writable($jtp)) ? $jtp : false;With this:
// Try to find a writable directory
$obd = ini_get('open_basedir');
if ($obd==null) {
$dir = is_writable('/tmp') ? '/tmp' : false;
}
$dir = (!$dir && is_writable($ssp)) ? $ssp : false;
$dir = (!$dir && is_writable($jtp)) ? $jtp : false;Hope it helps.
Tuesday, November 27, 2012 7:07 PM