PDA

View Full Version : Error creating folder


Lee Firth
03-30-2009, 11:57 PM
I have edited the config.php as outlined in the "Allowing image uploading with the iRite text editor" file. It works fine on my local setup but when I upload to the server I get the following error while trying to upload a file:

Error creating folder
http://d2012.mysite.westnethosting.com.au/WA_iRite/userfiles/
(Can’t create http:/ directory)

I would have thought that this would be a permissions error but they seem to be set correctly on the server.

Ray Borduin
03-31-2009, 08:10 AM
Create the folder manually. Since it only has to be created once, that may be easier than trying to figure out the permissions settings that would work.

Lee Firth
03-31-2009, 07:04 PM
The folders already exist.

Tom M
03-31-2009, 11:35 PM
I'm getting the same error.

I've even gone in and created the specified folder manually and changed permissions on that folder and the parent to 0777. Still get the error.

TM

Ray Borduin
04-01-2009, 09:11 AM
Please create a support incident on this topic. My best guess is that the directory path is somehow wrong... you should never get this error if the folders exist because it shouldn't try to create a folder that exists and this is an error while creating the directory... somebody will have to help you debug this issue.

Tom M
04-01-2009, 05:28 PM
OK, I fudged around and got it working. In a nutshell, the config file needs to be right.

In particular, the following entry, even though it say "document root", really means "site root"

// Path to user files relative to the document root.
$Config['UserFilesPath'] = '/mysubfolder/userfiles/' ;

The following entry is the absolute path from the root of the filesystem

// Fill the following value it you prefer to specify the absolute path for the
// user files directory. Useful if you are using a virtual directory, symbolic
// link or alias. Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
// Attention: The above 'UserFilesPath' must point to the same directory.
$Config['UserFilesAbsolutePath'] = '/home/mysiteaccount/public_html/mysubfolder/userfiles/' ;