Install MySQL (skip Postgresql)
At this point we'll need to log in again to the server and type:sudo apt-get install mysql-server php5-mysqlPress Y to continue the install.
Replace the following string NewRootDatabasePassword with a secure password of your own choosing.
There is no space between the -p and the password on the second command.
mysqladmin -u root password NewRootDatabasePassword mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePasswordWe now need to create the Moodle database and Moodle user in MySQL.
The mysql command will prompt for your NewRootDatabasePassword (from above). Replace NewMoodleDatabasePassword with a secure password of your own choosing.
mysql -u root -p > CREATE DATABASE moodle DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; > GRANT ALL PRIVILEGES ON moodle.* TO moodleuser@localhost IDENTIFIED BY 'NewMoodleDatabasePassword'; > GRANT SELECT,LOCK TABLES on moodle.* TO moodlebackup@localhost IDENTIFIED BY 'MoodleBackupPassword'; > FLUSH PRIVILEGES; > QUITThe above also creates a backup user moodlebackup so that you can use mysqldump to make database backups without accident.
Install Apache
The following mod-security, ldap, and odbc libraries are optional.sudo apt-get install apache2 libapache2-mod-php5 php5-gd sudo apt-get install libapache2-mod-security php5-ldap php5-odbcRestart Apache
sudo /etc/init.d/apache2 restartNote: To install Moodle 2.0 for the current ubuntu, you need to install PHP from an external repository --Olli Savolainen 19:28, 10 April 2009 (UTC)
Install other software
On the command line, type:sudo apt-get install openssh-server unattended-upgrades sudo apt-get install unzip zip aspell-en aspell-fr aspell-de aspell-es sudo apt-get install curl php5-curl php5-xmlrpc sudo apt-get install clamav-base clamav-freshclam clamavPress Y to continue the install after each of these apt-get commands.
The clamav package will support virus checking on file uploads into Moodle. May have to run it again to configure properly.
Additional languages are available for aspell.
0 comments:
Posting Komentar