Step-by-step Install Guide for Ubuntu: Skillnad mellan sidversioner

Från MoodleDocs
Hoppa till:navigering, sök
(Created page with "== Step 1: Install Ubuntu 10.04 == http://www.ubuntu.com/download == Step 2: Install LAMP stack == Open the Terminal and install tasksel sudo apt-get install tasksel and then...")
 
Ingen redigeringssammanfattning
Rad 6: Rad 6:
Open the Terminal and install tasksel
Open the Terminal and install tasksel


sudo apt-get install tasksel
<pre>sudo apt-get install tasksel</pre>


and then the LAMP stack:
and then the LAMP stack:


sudo tasksel install lamp-server
<pre>sudo tasksel install lamp-server</pre>




Rad 16: Rad 16:


== Step 3: Install the additional PHP extensions ==
== Step 3: Install the additional PHP extensions ==
sudo apt-get install php5-curl php5-gd php5-intl php5-xmlrpc
 
<pre>sudo apt-get install php5-curl php5-gd php5-intl php5-xmlrpc</pre>


== Step 4: Download Moodle ==
== Step 4: Download Moodle ==
cd /var/www
 
<pre>cd /var/www


sudo wget http://download.moodle.org/stable23/moodle-latest-23.tgz
sudo wget http://download.moodle.org/stable23/moodle-latest-23.tgz
Rad 29: Rad 31:
sudo chmod 777/var/moodledata
sudo chmod 777/var/moodledata


sudo chmod 777 /var/www/moodle
sudo chmod 777 /var/www/moodle</pre>


== Step 5: Create Moodle database ==
== Step 5: Create Moodle database ==
mysql -u root -p
<pre>mysql -u root -p


create database moodledb charset=utf8;
create database moodledb charset=utf8;
Rad 40: Rad 42:
grant all privileges on moodledb.* to 'mdluser'@'localhost';
grant all privileges on moodledb.* to 'mdluser'@'localhost';


\q
\q</pre>


== Step 6: Setup Moodle server ==
== Step 6: Setup Moodle server ==
Rad 49: Rad 51:


===database type===
===database type===
select option mysqli
 
Choose: mysqli


=== database settings ===
=== database settings ===
Rad 64: Rad 67:


This will indicate if any elements required to run moodle haven't been installed.
This will indicate if any elements required to run moodle haven't been installed.


=== next next next... ===
=== next next next... ===
Rad 71: Rad 73:
===create a site administrator account ===
===create a site administrator account ===
Create your moodle user account which will have site administrator permissions.
Create your moodle user account which will have site administrator permissions.
The password you select has to meet certain security requirements.
The password you select has to meet certain security requirements.


===Installation Complete ===
===Installation Complete ===
Bravo! You can now start playing with moodle!
Bravo! You can now start playing with moodle!

Versionen från 14 september 2012 kl. 18.21

Step 1: Install Ubuntu 10.04

http://www.ubuntu.com/download

Step 2: Install LAMP stack

Open the Terminal and install tasksel

sudo apt-get install tasksel

and then the LAMP stack:

sudo tasksel install lamp-server


This will run a gui install of the lamp stack. It will prompt you to set the root password for mysql - take note of it.

Step 3: Install the additional PHP extensions

sudo apt-get install php5-curl php5-gd php5-intl php5-xmlrpc

Step 4: Download Moodle

cd /var/www

sudo wget http://download.moodle.org/stable23/moodle-latest-23.tgz

sudo tar -zxf moodle-latest-23.tgz

sudo mkdir /var/moodledata

sudo chmod 777/var/moodledata

sudo chmod 777 /var/www/moodle

Step 5: Create Moodle database

mysql -u root -p

create database moodledb charset=utf8;

create user 'mdluser'@'localhost' identified by 'password';

grant all privileges on moodledb.* to 'mdluser'@'localhost';

\q

Step 6: Setup Moodle server

Open your browser and go to http://localhost/moodle

Follow the prompts selecting:

database type

Choose: mysqli

database settings

Host server: localhost

User: mdluser

Password: password

Tables Prefix: mdl_

environment checks

This will indicate if any elements required to run moodle haven't been installed.

next next next...

follow prompts and confirm installation

create a site administrator account

Create your moodle user account which will have site administrator permissions.

The password you select has to meet certain security requirements.

Installation Complete

Bravo! You can now start playing with moodle!