File moodle-README.SuSE of Package moodle
Moodle quick install
====================
# Create the database for moodle
1) Start mysql (rcmysql start) and create a database for Moodle as root:
# mysql -u root -p
or (if you havn't set the mysql-password):
# mysql -u root
mysql> CREATE DATABASE moodle DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
mysql> GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,CREATE TEMPORARY TABLES,DROP,INDEX,ALTER ON moodle.* TO moodleuser@localhost IDENTIFIED BY 'passwd';
mysql> flush privileges;
mysql> quit
# Configure moodle via Browser
2) Start apache (rcapache2 start) and open the following URL in a browser on your host:
http://localhost/moodle/
3) Browser based installation
3.1) Select your language
3.2) Check the PHP settings (should all be green)
3.3)
- Enter the correct webaddress of your host (normally moodle detects this automatically).
- The prepared datadir is /srv/www/moodledata
3.4) Enter your database settings:
If you've prepared the database as described in 1, please enter:
Database: moodle
User: moodleuser
Password: passwd
(see step 1 for your password ;-)
3.5) Check aditional server settings (should all be green)
3.6) Download your language pack (this should normally not be necessary as you can install the rpm for your language).
3.7) copy and paste the config.php file. You have two options now:
a) Create a new file /srv/www/moodle/config.php
This is the upstream way and should work.
b) Create/Replace the file /etc/moodle/moodle-config.php
This is the prefered openSUSE way. So your settings including passwords, etc. are stored outside of the webservers
root directory.
Afterwards, you should rename the file: /srv/www/moodle/config-suse.php to /srv/www/moodle/config.php
# mv /srv/www/moodle/config-suse.php /srv/www/moodle/config.php
3.8) Accept the license
3.9) Read the Release Notes.
You can enable the "unattended" checkbox and moodle will create/update the needed database tables for you.
4) Configure moodle to your needs
Now you should be able to edit your admin account for moodle (this is NOT the root account of your machine!),
edit your sites name and description and start with your new moodle site.
Moodle Upgrade Instructions
===========================
1) Once updated your Moodle RPM packages, please login as Administrator and visit the following link:
http://localhost/moodle/admin/index.php
2) Follow the instructions to upgrade your database scheme - check the 'automatic' checkbox to let moodle do all steps automatically for you.
--------------- Links: ---------------
* http://docs.moodle.org/en/Installing_Moodle
* http://docs.moodle.org/en/Upgrading
* http://en.opensuse.org/Moodle