New Install but 404

New Install but 404

by Shan Jayran -
Number of replies: 3

I am trying to install on a hosted account where I did do a trial install of moodle 18 months ago. So I know it can be done!

It's unix, apache, has php and I set up a mysql db through the cpanel.

Uploaded all files as directory moodle/ placed in directory forest/ under public_html. 

Put a directory called * data * in the *moodle * directory and put the .htaccess file in it.

Changed the * admin * directory to * moodleadmin * just in case. Also tried changing it back to just admin/ and changing the line in config.php to match.

In config.php put in db name, username, password
p>$CFG->dbtype = 'mysql'; // mysql or postgres7 (for now)

$CFG->dbhost = 'localhost'; // eg localhost or db.isp.com

$CFG->dbname = xxxxx; // database name, eg moodle

$CFG->dbuser = xxxxxx; // your database username

$CFG->dbpass = 'xxxxxx'; // your database password

$CFG->prefix = 'mdl_'; // Prefix to use for all table names

website location

$CFG->wwwroot = 'http://www.mysite.co.uk/forest/moodle';

server files

$CFG->dirroot = '/home/public_html/forest/moodle';

data files

$CFG->dataroot = '/home/public_html/forest/moodle/data';

data files permissions left as

$CFG->directorypermissions = 0777;

directory location changed to

$CFG->admin = 'moodleadmin';

Now I haven't done much with php though I'm used to chmod with perl. But I don't understand the instructions given with moodle as I'm used to setting file permissions with numbers like 755.

All the folders in * moodle * folder are 755. I set config.php at 755 and the other single php files (file help index tags & version) are 644.

I'm using the url www.mysite.co.uk/forest/moodle/admin

and I just get 404.

Average of ratings: -
In reply to Shan Jayran

Re: New Install but 404

by Jan Dierckx -

Why did you rename the 'admin' directory to 'moodleadmin'?

Especially since you seem to invoke www.mysite.co.uk/forest/moodle/admin afterwards....

In reply to Jan Dierckx

Re: New Install but 404

by Shan Jayran -
I triued it both ways: first renamning admin to moodleadmin and calling it as moodleadmin in the script. Then I renamed it back to admin and matched it in the script too.
In reply to Shan Jayran

Re: New Install but 404

by Shan Jayran -
Er blush terribly sorry I didn't realise I was hosted on Linux and not Unix. [blushing again!]
Have changed the line in config.php and can now do initial admin.
Sorry sorry