Mudanças entre as edições de "Install Moodle"

De Slacam_Wiki
m (Install Moodel foi movido para Install Moodle)
 
(3 revisões intermediárias por 2 usuários não estão sendo mostradas)
Linha 1: Linha 1:
−
'''Instalando moodle no Centos'''
+
<ads media=goo5/>
 +
'''Instalando moodle no Centos'''  
  
−
Eu assumo que o apache e mysql já estejam instalados no servidor.
+
Eu assumo que o apache e mysql já estejam instalados no servidor.  
  
−
1 - Vá para moodle.org e download o último moodle*.tgz.
+
1 - Vá para moodle.org e download o último moodle*.tgz.  
  
−
cd /tmp
+
cd /tmp  
  
−
wget http://download.moodle.org/stable19/moodle-weekly-19.tgz #Do not use this link. Get latest file from http://www.moodle.org/
+
wget http://download.moodle.org/stable19/moodle-weekly-19.tgz #Do not use this link. Get latest file from http://www.moodle.org/  
  
 +
<br> 2 - Como root:
  
−
2 - Como root:
+
yum install php php-mysql httpd mysqlclient10 mysql-server php-gd php-mbstring php-xmlrpc
  
−
yum install php php-mysql httpd mysqlclient10 mysql-server php-gd php-mbstring php-xmlrpc
+
<br> 3 - Se a sua instalação do mysql é recente, vc precisa ter a senha do root
  
 +
<br> service mysqld start
  
−
3 - Se a sua instalaçã do mysql é recente, vc precisa ter a senha do root
+
<br> /usr/bin/mysqladmin -u root password 'newpassword'
  
 +
<br>
  
−
service mysqld start
+
4 - Inicie os serviços e tenha certeza que estão iniciando automaticamente
  
 +
service httpd start
  
−
/usr/bin/mysqladmin -u root password 'newpassword'
+
service mysqld start
  
 +
chkconfig httpd on
  
 +
chkconfig mysqld on
  
−
4 - Inicie os serviços e tenha certeza que estão iniciando automaticamente
+
<br> 5 - Conecte-se ao banco de dados e crie o banco e de permissão para usuário moodle.
  
−
service httpd start
+
mysql -u root -p
  
−
service mysqld start
+
Após entrar no mysql, crie o banco:
  
−
chkconfig httpd on
+
create database moodle;
  
−
chkconfig mysqld on
+
Dê as permissões para o usuário moodle:
  
 +
grant all on moodle.* to moodle identified by 'senhadousuario';
 +
flush privileges;
  
−
5 - Create a user moodle with a good password that has all privileges on the table moodle. I suggest that you download and install PhpMyAdmin to do it. Try the latest 2.xx.x.x version as it will work on Centos 5. To use PhpMyAdmin, you will need to create a file named config.inc.php inside PhpMyAdmin instalation folder (/var/www/html/phpmyadmin) with mysql information like root password defined on step 3.
+
<br>
  
 +
6 - Extraia os arquivos do pacote do moodle*.tgz em /var/www/html/.
  
−
config.inc.php example:
+
  tar xvzf moodle*.tgz
  
 +
<br> 7 - Inicie o seu navegador e aponte para o endereço http://seu.servidor.com/moodle e siga as instruções de instalação.
  
−
<?
 
  
−
$i = 1;
 
  
−
$cfg['Servers'][$i]['host'] = 'localhost';
+
8 - Caso de erro de UTF-8 entre no banco de dados como root e dê o comando:
  
−
$cfg['Servers'][$i]['extension'] = 'mysqli';
+
&nbsp;<span class="Apple-style-span" style="font-family: monospace; font-size: 11px; line-height: 11px; white-space: pre; background-color: rgb(249, 249, 249); ">ALTER DATABASE mydatabasename charset=utf8;</span>
  
−
$cfg['Servers'][$i]['connect_type'] = 'tcp';
+
<ads media=goo3/>
−
 
 
−
$cfg['Servers'][$i]['compress'] = false;
 
−
 
 
−
$cfg['Servers'][$i]['auth_type'] = 'config';
 
−
 
 
−
$cfg['Servers'][$i]['user'] = 'root';
 
−
 
 
−
$cfg['Servers'][$i]['password'] = 'newpassword';
 
−
 
 
−
?>
 
−
 
 
−
 
 
−
After configure PhpMyAdmin, open your favorite browser, point to PhpMyAdmin installation path and:
 
−
 
 
−
 
 
−
Privileges -> Add a new user -> Fill the form -> Click on "Create database with same name and grant all privileges" -> Go
 
−
 
 
−
 
 
−
Be sure to protect the access to your PhpMyAdmin as it will probably grant root access to anyone that knows its URL. It is a good idea to remove the entire directory after all is working as it is very easy to install it back. Password protect the directory may be good idea too.
 
−
 
 
−
 
 
−
6 - Extract files from moodle*.tgz at /var/www/html/moodle.
 
−
 
 
−
mkdir /var/www/html/moodle
 
−
 
 
−
cd /var/www/html/moodle
 
−
 
 
−
tar xvzf /tmp/moodle-weekly-19.tgz
 
−
 
 
−
 
 
−
7 - Start your favorite browser and point to your server /moodle directory. Follow installation instructions.
 

Edição atual tal como às 11h12min de 19 de dezembro de 2013

<ads media=goo5/> Instalando moodle no Centos

Eu assumo que o apache e mysql já estejam instalados no servidor.

1 - Vá para moodle.org e download o último moodle*.tgz.

cd /tmp

wget http://download.moodle.org/stable19/moodle-weekly-19.tgz #Do not use this link. Get latest file from http://www.moodle.org/


2 - Como root:

yum install php php-mysql httpd mysqlclient10 mysql-server php-gd php-mbstring php-xmlrpc


3 - Se a sua instalação do mysql é recente, vc precisa ter a senha do root


service mysqld start


/usr/bin/mysqladmin -u root password 'newpassword'


4 - Inicie os serviços e tenha certeza que estão iniciando automaticamente

service httpd start
service mysqld start
chkconfig httpd on
chkconfig mysqld on


5 - Conecte-se ao banco de dados e crie o banco e de permissão para usuário moodle.

mysql -u root -p

Após entrar no mysql, crie o banco:

create database moodle;

Dê as permissões para o usuário moodle:

grant all on moodle.* to moodle identified by 'senhadousuario';
flush privileges;


6 - Extraia os arquivos do pacote do moodle*.tgz em /var/www/html/.

 tar xvzf moodle*.tgz


7 - Inicie o seu navegador e aponte para o endereço http://seu.servidor.com/moodle e siga as instruções de instalação.


8 - Caso de erro de UTF-8 entre no banco de dados como root e dê o comando:

 ALTER DATABASE mydatabasename charset=utf8;

<ads media=goo3/>