homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

Joomla Documents feature not working

 9:30 pm on Aug 19, 2013 (gmt 0)

I moved a Joomla site from an windows 2008 server to a windows 2012 server. Now, whenever you click on a document in the document module, it doesn't work. It gives me this error.

PHP Warning: is_dir(): open_basedir restriction in effect. File(C:\PathToSiteRoot\dmdocuments\) is not within the allowed path(s): (C:/PathToSiteRoot/\;C:\Windows\Temp\) in C:\C:\PathToSiteRoot\httpdocs\administrator\components\com_docman\classes\DOCMAN_file.class.php on line 66

I thought this was a basedir problem but I checked my ini file and it's commented out. I really don't know where to go from here. Any help?



 12:46 am on Aug 20, 2013 (gmt 0)

File(C:\PathToSiteRoot\dmdocuments\) is not within the allowed path(s): (C:/PathToSiteRoot/\;C:\Windows\Temp\)

i would be concerned about the forward slashes not matching.
that setting was made somewhere.

have you run a phpinfo script to verify the configuration settings?


 12:39 pm on Aug 20, 2013 (gmt 0)

I pulled the ini file path from running phpinfo. A lost day editing a wrong ini file has taught me that :). I saw the slashes and thought about that, but here's my issue. This was running on a windows 2008 server no problem. It's the same set up, just that the new server is windows 2012. It's actually running in plesk, and it's the same versions of plesk. Any other ideas?


 10:27 pm on Aug 20, 2013 (gmt 0)

PHP handles the mish-mash of mixed slashes on Windows internally, if I remember correctly.

Plesk is a nightmare. You probably need to add an Apache configuration for your domain in order to access the directory you need if it is not in the DOCUMENT ROOT or a subdirectory thereof. Even if it is in your include path you may still need to add it to the conf:

php_admin_value open_basedir "C:\PathToSiteRoot\dmdocuments"


 2:53 pm on Sep 3, 2013 (gmt 0)

First off, we aren't setting up apache anything on this server, I dealt with apache for 3 years and then moved to Microsoft and IIS hosting, never going back. I don't think this is possible, but is there a way to set the open base dir for just that site? Here's my worry. Right now, open base dir is just commented out. I have a few other php sites on this server and I'm afraid that setting the open base dir to something could break them. Do you think that would happen, or would they probably be ok, since they're working now?


 1:51 am on Sep 17, 2013 (gmt 0)

I don't know, I don't speak IIS. You'll have to look up the similar way to set virtual host configurations on your http server.


 1:40 pm on Sep 17, 2013 (gmt 0)

I figured this out. First, I finally figured out that there was a file permissions issue, and the site could not write to a docman config file. Once I fixed the permissions, I could go into the settings and change the site root to the new path. Thanks for all the help!

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved