Nothing in directory moodledata is accessible

Nothing in directory moodledata is accessible

Jonnie Elovsson -
回帖数:7
Hi,

I´ll start this all over with a new post since I found that nothing I put in the directory moodledata is accessible by moodle.
For instance images. User Profile images and so forth...

I run WAMPServer2 on a Vista machine.

The directory structure for moodledata is C:\wamp\moodledata
The directory structure for moodle is C:\wamp\www\moodle

The settings in config.php are:
$CFG->wwwroot = 'http://localhost/moodle';
$CFG->dirroot = 'C:\wamp\www\moodle';
$CFG->dataroot = 'C:\wamp\moodledata';
$CFG->admin = 'admin';
$CFG->directorypermissions = 00777;

The moodledata directory and it´s sub directorys all have the same security setting. All users and groups have Full Control.

Would very much appreciate a helping hand here!

Jonnie
回复Jonnie Elovsson

Re: Nothing in directory moodledata is accessible

Manel Diaz Blanch -
Maybe the problem is Vista?
I don't have a good experience whit this system. A simple operation like ereasing a file and too much confirmations to proceed!
Try to disable security options in the system and maybe you will locate the problem.

manel
回复Jonnie Elovsson

Re: Nothing in directory moodledata is accessible

ETH Zürich -
Your post is really vague..
to be able to help you, you must turn debuggin on (choose the last option from the debug messages menu in your_moodle/admin/settings.php?section=debugging) and then refresh your moodle (any page you usually use to display or upload images, files to) then copy errors here and i will help you..

dont panic 微笑

Good Luck..
Amr Hourani
回复ETH Zürich

Re: Nothing in directory moodledata is accessible

Jonnie Elovsson -
Hi Amr,

Appreciate any help. I have selected the last debug option:
"DEVELOPER extra Moodle debug messages for developers"
Uploaded a new gif from the html-editor.
The file is in the directory "moodledata/1/".
The html code for the gif is:
src="http://localhost/moodle/file.php/1/test.gif"

But as before I cannot see the file, not in the editor, not on the page..

I have looked in the PHP error log but there are nothing
related to what I have done today. I succesfully installed moodle 17/10.
after some difficulties. The errors reported in the file are pre 17/10.

No errors in the mySQL log either.
One error in the Apache server:
[Fri Oct 24 12:27:27 2008] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/moodle/theme/simplicity/images/body.png, referer: http://localhost/moodle/theme/simplicity/styles.php

Jonnie

回复Jonnie Elovsson

Re: Nothing in directory moodledata is accessible

ETH Zürich -
very strange! no error at all, even if you upload file, it doesnt give you an error?
please double check..

just a question, why dont you install XAMPP? www.apachefriends.org

回复ETH Zürich

Re: Nothing in directory moodledata is accessible

Jonnie Elovsson -
yes, very strange.
I have doublechecked.

Is XAMPP better than WAMP?
I do not have any problem switching from WAMP to XAMPP if it makes
moodle work correctly.

If I switch to XAMPP, what are the proper steps to avoid potential conflicts with WAMP?

Jonnie

回复Jonnie Elovsson

Re: Nothing in directory moodledata is accessible

Jonnie Elovsson -
Well,

I uninstalled everything from WAMP including Moodle of course..
Installed XAMPP and the latest weekly build of 1.9.3 and got myself into the same loop as I had when I first installed WAMP. I get a blank page after the last page with the database settings.
-Yes I have created the database, with proper settings.

So I tried the trick with creating my own config.php file.
http://docs.moodle.org/en/Installing_Moodle_on_Windows_Vista
This helped me install on WAMPServer2

The way it looks on my machine
$CFG->dbtype = 'mysql'; //Database Type
$CFG->dbhost = 'localhost'; //Database Host
$CFG->dbname = 'moodlexampp'; //Database Name
$CFG->dbuser = 'myusername'; //Database User
$CFG->dbpass = 'mypassword'; //Database Password
$CFG->dbpersist = false;
$CFG->prefix = 'mdl_'; //Table Prefix

$CFG->wwwroot = 'http://localhost/moodle';
$CFG->dirroot = 'C:\xampp\htdocs\moodle';
$CFG->dataroot = 'C:\xampp/moodledata';

The security settings in the xampp directory are correct since
the installation has already created the directory "moodledata".

But trying to access moodle in XAMPP with the config.php file this just get´s me to a constantly reloading page which says:
-----
Skip to main content (LINK)
A server error that affects your login session was detected. Please login again or restart your browser.
( Continue ) (This is also a LINK)
---------
THis is the errorlog from the server:
[Mon Oct 27 13:49:59 2008] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/moodle
[Mon Oct 27 13:50:06 2008] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/moodle

What file? The structure in the error file suggests that there is something missing in moodle - what file is that? At least I know that it is not config.php.
It is there all right.

This is pretty frustrating...

Jonnie
回复Jonnie Elovsson

Re: Nothing in directory moodledata is accessible

Ron Meske -
With IIS on Windows systems this is usually a permissions problem since the location is outside of the normal website.

First check the Authentication Method used by IIS.
  1. Open Internet Information Service
  2. Expand the Web Sites folder and right click on the web site Moodle is in and select properties.
  3. Select the tab for Directory Security
  4. If you are using Anonymous access, make note of the User name displayed. Usually in the format IUSR_Computer Name
  5. If you are using Authenticated Access you will need to note the domain being used
Now start Windows explorer and...
  1. Navigate to the folder c:\wamp.
  2. Right-click on the moodledata folder and select properties
  3. Click on the Security tab
  4. Check that either the Anonymous user name is listed and has at least read, write and modify, or that the group(s) from the domain being used for authentication is correctly added and has the correct permissions.
Please note that the IIS anonymous user is treated differently then the local group 'Everyone'.