Welcome to WebmasterWorld Guest from 54.147.20.131

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Joomla Documents feature not working

     

andrewsmd

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

WebmasterWorld Senior Member 5+ Year Member



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?

phranque

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

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



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?

andrewsmd

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

WebmasterWorld Senior Member 5+ Year Member



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?

coopster

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

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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"

andrewsmd

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

WebmasterWorld Senior Member 5+ Year Member



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?

coopster

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

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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.

andrewsmd

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

WebmasterWorld Senior Member 5+ Year Member



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!
 

Featured Threads

Hot Threads This Week

Hot Threads This Month