joomlaRSS

10 replies

Last post Nov 27, 2012 07:07 PM by refrito

  • joomla

    Feb 10, 2009 05:25 AM|waxie|LINK

    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

     

  • Re: joomla

    Feb 10, 2009 06:22 AM|steve schofield|LINK

    Sounds like the IUSR or Network service account doesn't have permission to write to c:\windows\temp, which is the default %TMP% location.

     

    Steve Schofield
    Windows Server MVP - IIS
    http://iislogs.com/steveschofield
    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget

  • Re: joomla

    Feb 10, 2009 07:48 AM|waxie|LINK

    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.

  • Re: joomla

    Feb 10, 2009 02:43 PM|ruslany|LINK

    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.

    joomla

  • Re: joomla

    Feb 11, 2009 03:31 AM|waxie|LINK

    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.

  • Re: joomla

    Feb 11, 2009 01:42 PM|ruslany|LINK

    Try this instead:

    open_basedir = "\\hb1411\iisstorage\web;c:\windows\temp;/tmp"  . This worked for me.

    joomla

  • Re: joomla

    Feb 12, 2009 03:36 AM|waxie|LINK

    Thx that fixed it.

  • Re: joomla

    Mar 21, 2012 09:13 AM|ianglang|LINK

    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?

  • Re: joomla

    May 30, 2012 07:17 AM|jmironet|LINK

     Hi, I have the same problem, Had you find any sollution?

    regards

  • Re: joomla

    May 30, 2012 07:57 AM|waxie|LINK

    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.
  • Re: joomla

    Nov 27, 2012 07:07 PM|refrito|LINK

    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.