new moodle install works but no css is loading

new moodle install works but no css is loading

by ross davidh -
Number of replies: 5

Hello,  I have just installed moodle in a subdirectory (/moodle) of the principal domain.  It is "working", but without any css at all.  I have also installed wordpress (that's what's running the top-level website), and was thinking I could just put moodle in the subdirectory.

My config.php has:

$CFG->wwwroot   = 'http://www.austin-ecoschool.org/moodle';

When I tried removing the "www", it didn't even show the html.

My version of moodle is whatever:

git clone -b MOODLE_23_STABLE git://git.moodle.org/moodle.git

...would give, I'm guessing 2.3.something?  In its current css-less state I can't see where the version is, but I pulled it from git just today so it should be pretty current.

My server has nginx instead of apache.  The relevant part of my "sites-available" vhost is:

server {
       listen 80;
       server_name www.austin-ecoschool.org austin-ecoschool.org;
       root /var/www/www.austin-ecoschool.org/web;

       if ($http_host != "www.austin-ecoschool.org") {
                 rewrite ^ http://www.austin-ecoschool.org$request_uri permanent;
       }
If anybody out there has an idea on what I should try next, it would be greatly appreciated!

p.s. Ubuntu version is 11.10.

Average of ratings: -
In reply to ross davidh

Re: new moodle install works but no css is loading

by Blaise Alleyne -

Did you find a solution? I'm having a very similar problem after upgrading a subdirectory Moodle install from 2.1 through 2.2 to 2.3 (was fine in the 2.2 stage though). If I change my wwwroot to the subdirectory directly, it works fine, but if I point it to the root (was working up to 2.2). I am using Apache though, and mod_rewrite to push requests into the subdirectory (per these instructions: http://moodle.org/mod/forum/discuss.php?d=101928#p451667 ).


Seems like something broke for me in 2.3, and I've wound up with a similar problem to you...

In reply to Blaise Alleyne

Re: new moodle install works but no css is loading

by Dan Lombardi -

what did you point to? the moodledata folder?

In reply to Dan Lombardi

Re: new moodle install works but no css is loading

by Blaise Alleyne -

No, my moodledata folder is outside of public_html.

my wwwroot used to be domain.tld, with a mod_rewrite to rewrite request into the moodle subdirectory. Now, my wwwroot is domain.tld/moodle

In reply to Blaise Alleyne

Re: new moodle install works but no css is loading

by Luis de Vasconcelos -
Picture of Particularly helpful Moodlers

Check that your Moodledata directory is fully writeable. Apache must be have read/write permissions to the Moodledata directory.