moodle webinstaller showing 404 error

December 27, 2014 2.7k views

i am unable to install moodle as webinstaller not showin saying 404 error but i ave the moodle directory in my /var/www/ folder

though my web server is running and showing the index file.


2 Answers

It looks like you’re running a recent version of Ubuntu. As of Ubuntu 13.10, the default document root was changed from /var/www to /var/www/html, so you need to either:

  1. move everything from /var/www to /var/www/html; or
  2. set your DocumentRoot to /var/www/html.

If you decide to go with (2), you can change your DocumentRoot by editing /etc/apache2/sites-enabled/000-default.conf, replacing /var/www/html with /var/www and restarting Apache:

sudo service apache2 restart

hello, ihave hosted a moodle site,
today i did the mysqldump by folowing code:
mysqldump -u username -p dbname > dbname.sql
so it shows mysqldump: Got error: 1044: Access denied for user ‘root’@'localhost’ to database 'moodle’ when using LOCK TABLES
so i goggled and found that inserting –single-transaction in the line can help so i did
mysqldump –single-transaction -u username -p dbname > dbname.sql

but now on my moodle site am unable to restore the course backup, it says cannot connect to server

please help

Have another answer? Share your knowledge.