Msg#: 4603416 posted 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?
Msg#: 4603416 posted 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?
Msg#: 4603416 posted 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:
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?
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!