How can I enable moodle?

I installed postgres for moodle and I got the following instructions:

Apache / mod_php setup
  • Provide full access to the project directory to the running Apache process. You may also need to set the x flag in all .php files. $ chmod -R a + rw * Create "moodle.vhost.conf" from moodle.vhost.conf.example in your project directory. * Create a symbolic link from / usr / local / var / moodle to your project directory. $ cd / usr / local / var; ln -s moodle * Also symbolizes the new virtual host in the apache config directory. $ cd / private / etc / apache2 / other $ sudo ln -s / moodle.vhost.conf moodle.conf $ sudo apachectl restart * Create your own file /etc/vcmoodle/config_local.php

    for local environments by copying and modifying if necessary the sample file. $ sudo mkdir -p / etc / vcmoodle $ sudo cp / config_local.php.example / etc / vcmoodle / config_local.php

It won't work anyway. When I look at my apache root then it is just a standard apache page and no moodle. I have itsites-available

:/etc/apache2/sites-available$ ls
000-default.conf  default-ssl.conf  moodle.conf

      

and the moodle.conf content file

<VirtualHost *:80>
   DocumentRoot "/usr/local/var/moodle"
   ServerName moodle.localdev.kth.se

   ErrorLog /usr/local/var/moodle/error_log
   LogLevel debug

   <Directory "/usr/local/var/moodle">
     AllowOverride all
     Order allow,deny
     Allow from 127.0.0.1
   </Directory>
</VirtualHost>

      

But I don't have a moodle page on my webserver. What am I doing wrong?

+3


source to share


1 answer


If you are using Ubuntu (judging by the tag) you need to put your project directory in /var/www

. Apache cannot access project project folders in the specified directory unless you change users / groups etc.



what you've tried is Apache's usual default folder location for web folders, but Ubuntu loves to change things.

+2


source







All Articles