I have PHP Version 4.2.2
I am on FreeBSD 4.6-STABLE and Apache/1.3.26
I just installed the developmental version and so far it's been pretty smooth. Except when I clicked on Admin/files to upload a file and got this error message:
Warning: OpenDir: Permission denied (errno 13) in /usr/www/users/edmiston/cweb/files/index.php on line 608
Warning: readdir(): supplied argument is not a valid Directory resource in /usr/www/users/edmiston/cweb/files/index.php on line 609
Warning: closedir(): supplied argument is not a valid Directory resource in /usr/www/users/edmiston/cweb/files/index.php on line 620
I dunno. I moved my original moodle to a new dir and installed this developmental version in a directory with the original installation name.
I looked at the permissions on my original moodle installation for the moodle/files directory and the permissions are the same for both (I was able to work with files in the previous version).
Any help is appreciated.
FreeBSD 5.0, php 4.3.1, Apache 1.3.27 and yesterdays Moodle cvs. Uploads work like a charm.
My two cents:
"Warning: OpenDir: Permission denied" suggests that you check what your Apache runs as together with a recheck of the permissions for the upload directory. Maybe also the Moodle path to your upload directory.
Cheers
I don't understand this. Could you explain further please?
Maybe also the Moodle path to your upload directory.
my config file shows:
$CFG->dirroot = "/usr/www/users/edmiston/cweb";
and that is correct
recheck of the permissions for the upload directory
I did. The permissions are 755: drwxr-xr-x
In fact, as far as I can tell nothing has changed (regarding the moodle/files directory between the original install I did a few weeks ago and this development version of today.
I do appreciate your suggestions.
I created the data dir in the orig installation. and I uploaded a variety of files.
Then when I put the development version in today I find I can't copy the data directory from the orig install over to the new install because of permissions. When I look at my moodle/data directory I see permissions like this:
-rw------- 1 nobody bin 47616 Apr 21 17:06 contract.doc
-rw------- 1 nobody bin 64000 Apr 21 17:06 proposal.doc
In other subdirectories the permissions seem to very a lot. Like this:
drwxr-x--- 2 nobody users 512 Apr 14 22:28 WTWCHART
-rw------- 1 nobody bin 1462 Apr 18 18:36 bradbury.txt
drwxr-x--- 2 nobody users 512 Apr 14 22:11 coral
drwxr-x--- 4 nobody users 512 Apr 18 18:41 moddata
drwxr-xr-x 3 nobody users 512 Apr 19 23:13 some-poems
-rw------- 1 nobody bin 17464 Apr 19 23:04 some_poems.zip
drwxr-x--- 2 nobody users 512 Apr 12 15:11 team1
That means I cannot copy these files and I can't even use my FTP program to move the files to my PC .
I am at a commercial web host (so I don't have root access) and they are pretty supportive. What if I wrote to them and asked them to change the permission in this dir structure to something new.
What would be best so that I could get access and not mess up moodle? Should I go for something like
707 (-rwx---rwx)?
One thing that worries me about this is ... if moddle writes the file permissions so I can't access the files (since I'm on a commercial web host and don't have root access) then how can I back up the site? None of those files with
thanks (suddenly wishing I was nobody)
For future files, see the
$CFG->directorypermissions = 0777;
setting in config.php (config-dist.php)
Re: Error with Admin/Files in 1.0.9 dev install
Hi!
I am also having trouble with the permissions, meaning that I can't even enter the directories from my FTP program (nor can I change the CHMOD settings).
I installed the chmod.php script and received the next output, which leads me into understanding that I still can't change the permissions.
I'd appreciate any help!
Warning: lstat failed for (null) (errno=13 - Permission denied) in /home/hillsbur/public_html/Ecampus/lib/moodlelib.php on line 839
/home/hillsbur/public_html/Ecampus/data/11/moddata/forum/28/42/Vocabulario_Cetvi_v3.3.xls
/home/hillsbur/public_html/Ecampus/data/2/moddata
Warning: chmod failed: Permission denied in /home/hillsbur/public_html/Ecampus/chmod.php on line 12
/home/hillsbur/public_html/Ecampus/data/22/cursofpe.exe
/home/hillsbur/public_html/Ecampus/data/22/fpexpr.exe
/home/hillsbur/public_html/Ecampus/data/22/moddata/assignment/7/11/Mod3Tarea1.htm
/home/hillsbur/public_html/Ecampus/data/22/moddata/assignment/8/11/eee.htm
/home/hillsbur/public_html/Ecampus/data/22/moddata/assignment/9/11/Tarea3_Complementando.doc
/home/hillsbur/public_html/Ecampus/data/22/moddata/assignment/9/9/NUTRICION.mht
/home/hillsbur/public_html/Ecampus/data/22/moddata/forum/46/33/tareaAn_lisis_de_dos_sitios_m_dulo3.doc
/home/hillsbur/public_html/Ecampus/data/22/moddata/forum/46/40/eduestrategias.exe
/home/hillsbur/public_html/Ecampus/data/4/moddata/assignment/4/11/tarea2_Seguridad_en_los_sistemas.zip
/home/hillsbur/public_html/Ecampus/data/4/moddata/assignment/5/11/Tarea_de_Evoluci_n_de_los_sistemas_de_Informaci_n.doc
/home/hillsbur/public_html/Ecampus/data/4/moddata/assignment/6/11/Tarea_Reflexi_n_sobre_posibles_problemas_de_seguridad_en_transacciones_electr_nicas.zip
/home/hillsbur/public_html/Ecampus/data/4/moddata/forum/25/26/Sistemas_Electr_nicos_de_Informaci_n2.doc
/home/hillsbur/public_html/Ecampus/data/9/DERECHO_AGRARIO.zip
/home/hillsbur/public_html/Ecampus/data/users/3/f1.jpg
/home/hillsbur/public_html/Ecampus/data/users/3/f2.jpg
/home/hillsbur/public_html/Ecampus/data/users/5/f1.jpg
/home/hillsbur/public_html/Ecampus/data/users/5/f2.jpg
/home/hillsbur/public_html/Ecampus/data/users/6/f1.jpg
/home/hillsbur/public_html/Ecampus/data/users/6/f2.jpg
/home/hillsbur/public_html/Ecampus/data/users/7/f1.jpg
/home/hillsbur/public_html/Ecampus/data/users/7/f2.jpg