ERROR: You need to create the directory *** with web server write access
The site administrator needs to fix the file permissions |
This happens when I try to upload a file. Who knows how to fix this problem? Thanks, Anya
Hola David,
thanks for your reply. I am a real newbie to all this, so please excuse that I didn't understand all what you said. I know I have to change the permission somehow so that the files can be stored but I still don't know how I must do that. You have given me an explanation, but either I don't understand it or it is not applyable in my case for whatever reason.
I think I don't have Cpanel. My webspace provider is www netclusive.de and the database is at http://spencer.netclusive.de/phpMyAdmin/. The attachment contains a screenshot of that last page as it looks like when one is loged in. I would be very grateful for any further comments, if you can spare the time.
Hasta luego, Anya
>chmod 777 moodledata
I have seen several postings recommending this set of permissions (world read/write) on the data directory, including the official moodle documentation (installation: http://moodle.org/doc/?file=install.html).
I am concerned here about the security. Some students get very creative when they find a wide open directory. I think it would be better to recommend chmod 770 instead (or even 0750), and make all files owned by the webserver. Then there is no need to make all files readable by "other". We run successfully our site with permissions rwx for "user" and "group" only. For example:
drwxr-x--- 2 apache apache 4096 Jan 20 16:54 1
drwxr-x--- 3 apache apache 4096 Nov 30 17:42 11
drwxr-x--- 4 apache apache 4096 Dec 29 12:07 12
drwxr-x--- 2 apache apache 4096 Aug 1 09:58 16
Is there a need to make it wide open for "others" as well? Have I missed something?
Thank you for clarifying this point.
Hi All. I have successfully installed the Moodle Script on the server using Ws_FTP. I did what you said and went to my CPanel to the File Directory. I created a folder data outside of public_html, set permissions for 777, 755, 700 etc. when I click on Site Files in the site I still get the error. I even tried inside of public_html & even used Ws_ftp to set the permissions and I still get the error. Do the other folders in Moodle need permissions also? Is there something I am missing? I searched your manual and help files. I use - Linux, Apache version1.3.27 (Unix)
Thanks for your time.
Judging from the error message, you have
$CFG->dataroot = '/home/xxxxx/moodledata';
in your config.php file, whereas it should be:
$CFG->dataroot = '/hsphere/local/home/xxxxx/moodledata';
Hellow:
I have this problem with my installation. Permission in moodle data directory is set to 777, but I still have problems uploading files. Here is the error message I get:
Warning: mkdir(home/tonymza/public_html/moodle/mooledata): Not file or directory in home/tonymza/public_htnl/moodle/lib/moodlelib.php on line 1002
The site is www.rrett.org/moodle
I do not know where is the error !!!!
Than you,
Antonio
Hello
I move Moodle data directory out public_html directory.
Permission is set to 777, but I still have problems uploading files.
But now the error message is:
Warning: mkdir(home/tonymza/Moodledata): No such file or directory in /home/tonymza/public_html/moodle/lib/moodlelib.php on line 1002
ERROR: You need to create the directory home/tonymza/Moodledata with web server write access
But I set up permissions to O777 with cPanel. but the problem persist.
The Moodledata directory is created and I do not know where is the problem. The config.php is:
datarrot = 'home/tonymza/Moodledata';
The typing is good.
Thank you so much for your help