Archive for febrero, 2017

Instalar Mahara en Debian Jessie

# Instalamos lo que necesitamos previo.
apt-get install -y apache2 apache2-doc php5-common libapache2-mod-php5 php5-cli mysql-server php5-mysql php5 libapache2-mod-php5 php5-mcrypt php5-mysql php5-gd unzip php5-curl php5-xmlrpc

# Seteamos la parte de la db
mysql -u root -p
CREATE DATABASE mahara character set UTF8;
GRANT ALL PRIVILEGES ON mahara.* TO ‘maharauser’@’localhost’ IDENTIFIED BY ‘your-password’;
FLUSH PRIVILEGES;

# Descargamos mahara
cd /tmp/
wget –no-check-certificate https://launchpad.net/mahara/16.10/16.10.2/+download/mahara-16.10.2.zip
unzip mahara-16.10.2.zip
mv mahara-16.10.2 /var/www/html/mahara
mkdir /var/www/html/mahara/upload/
cd /var/www/html/mahara/htdocs/
cp config-dist.php config.php

# Configuramos los parametros de la conexion en php
vi config.php

$cfg->dbtype = ‘mysql’;
$cfg->dbhost = ‘localhost’;
$cfg->dbport = null;
$cfg->dbname = ‘mahara’;
$cfg->dbuser = ‘maharauser’;
$cfg->dbpass = ‘your-password’;
$cfg->dataroot = ‘/var/www/html/mahara/upload/’;

# ponemos los permisos como corresponde
chown www-data:www-data -R /var/www/html/mahara/

touch /etc/apache2/sites-available/mahara.conf
ln -s /etc/apache2/sites-available/mahara.conf /etc/apache2/sites-enabled/mahara.conf

# Editamos el virtualhost de mahara
vi /etc/apache2/sites-available/mahara.conf

ServerAdmin admin@yourdomain.com
DocumentRoot /var/www/html/mahara/htdocs/
ServerName your-domain.com
ServerAlias http://www.your-domain.com

Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all

ErrorLog /var/log/apache2/your-domain.com-error_log
CustomLog /var/log/apache2/your-domain.com-access_log common

# Cambiamos algunas cosas que necesita de php
vi /etc/php5/apache2/php.ini

register_globals off
magic_quotes_runtime off
magic_quotes_sybase off
magic_quotes_gpc off
log_errors on
allow_call_time_pass_reference off
upload_max_filesize 500M
post_max_size 500M

# Reiniciamos apache
service apache2 restart

Anuncios

febrero 3, 2017 at 10:49 pm Deja un comentario


bueno

Páginas

febrero 2017
L M X J V S D
« Dic    
 12345
6789101112
13141516171819
20212223242526
2728