Instalación de MediaWiki
Feb 25, 08 by Juan Lebrijo about blog, Wiki
En este artículo veremos la instalación de MediaWiki sobre un servidor LAMP, en mi caso, montado sobre Debian Etch. MediaWiki es un software para montar wikis desarrollado en PHP. Una wiki es un sitio web colaborativo que puede ser editado por varias personas. A mi me interesa para gestionar mi documentación e indexarla eficientemente. En concreto los ladrillos largos, ya que para los pequeños apuntes está este blog. En principio, y como viene siendo habitual, os dejo mi ficha de referencias: Origen http://meta.wikimedia.org/wiki/Portada/Es Repositorio http://www.mediawiki.org/wiki/Download Paquete mediawiki-1.11.1.tar.gz Documentación Instalación: http://meta.wikimedia.org/wiki/Help:Installation General: http://meta.wikimedia.org/wiki/Help:Contents Permisos: http://devpit.org/wiki/Installing_Mediawiki Ficheros Configuración: LocalSettings.php Descomprimimos, lo movemos al raíz del web y damos el poder al usuario de apache:
tar -zxvf mediawiki-1.11.1.tar.gz
cp -r mediawiki-1.11.1 /var/www/wiki
chown -R www-data:www-data /var/www/wiki
Creamos la base de datos y el usuario que la administrará:
elite:/var/www# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or g.
Your MySQL connection id is 12022
Server version: 5.0.32-Debian_7etch1-log Debian etch distributionType 'help;' or 'h' for help. Type 'c' to clear the buffer.

mysql> create database wiki;
Query OK, 1 row affected (0.00 sec)

mysql> grant all on wiki.* to 'wikiadmin'@'localhost' identified by 'contraseña-super-segura';
Query OK, 0 rows affected (0.06 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.03 sec)

mysql> quit
Bye
Finalmente instalamos por navegador: http://midominio/wiki
  • Nombre del Sitio: lebrijo.com
  • Lenguaje: ES
  • Usuario admin.: admin/contraseña
  • Usuario BD: wikiadmin/contraseña
Generado el fichero de configuración lo movemos al raíz, y por seguridad borramos el directorio config:
mv config/LocalSettings.php .
rm -r config/
Podremos acceder a nuestro wiki a través del enlace: http://www.midominio.com/wiki
Joomla! installation
Feb 20, 08 by Juan Lebrijo about blog, Joomla!
joomla_logo_black.jpg 7.21 KB
In this article i explain how do I install joomla, it is a CMS (Content Management System) for general purpose portals based on PHP+MySQL technologies. Warning: if you want install th Joomla version with spanish administration system, download entire opackage from here: Joomla_1.0.13-spanish-premium.tar.gz, here. As usually I keep mi traditional refference note: Origin http://joomla.org/ Repository Download: http://joomlacode.org/gf/project/joomla/frs/ Modules: http://www.module.joomlademo.de/index.php Themes: themes Translations: todos los lenguajes Extensions: http://extensions.joomla.org/ Paquete Joomla_1.0.13-Stable-Full_Package.tar.gz Documentation (Spanish) Administration: http://ayuda.joomlaspanish.org/ayuda-joomla/ Documentation (English) Help: http://help.joomla.org/ For developers: http://dev.joomla.org/ Go to the oficial web and download the package. Unzip it in our server:
tar -zxvf Joomla_1.0.13-Stable-Full_Package.tar.gz
cp -r Joomla_1.0.13-Stable-Full_Package /var/www
chown -R www-data:www-data /var/www
With this action we are installing joomla in our web root. Create the portal data base:
elite:~# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or g.
Your MySQL connection id is 7748
Server version: 5.0.32-Debian_7etch1-log Debian etch distribution

Type 'help;' or 'h' for help. Type 'c' to clear the buffer.

mysql> create database joomla;
Query OK, 1 row affected (0.00 sec)

mysql> grant all on joomla.* to 'joomla_admin'@'localhost' identified by 'contraseña-super-segura';
Query OK, 0 rows affected (0.04 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.04 sec)

mysql> quit
Bye
Then continue the installation with the web assistance going to the URL: http://www.mydomain.com.
  • Pass the requirements test. In my installation I must add the following parameter to my PHP configuration: session.auto_start = 0.
  • Accept the GPL license.
  • Write the DDBB data connection.
  • Site data and administrator password.
  • Be careful: delete the installation directory
rm -r /var/www/installation/
Finally we can acceed to the administration wev through the link: http://www.mydomain.com/administrator/index.php
Instalación de Joomla!
Feb 20, 08 by Juan Lebrijo about blog, Joomla!
joomla_logo_black.jpg 7.21 KB
En este artículo instalamos joomla que es un CMS (Content Management System) para portales de propósito general basado en PHP+MySQL. Aviso: si deseas tener la versión de Joomla con la parte de administración incluida en español bájate el paquete de español entero: Joomla_1.0.13-spanish-premium.tar.gz, aquí. Como siempre os dejo mi ficha de referencias: Origen http://joomla.org/ Repositorio Wpress: http://joomlacode.org/gf/project/joomla/frs/ Modulos: http://www.module.joomlademo.de/index.php Presentaciones: themes Traducción: todos los lenguajes Extensiones: http://extensions.joomla.org/ Paquete Joomla_1.0.13-Stable-Full_Package.tar.gz Documentación (Castellano) Administración: http://ayuda.joomlaspanish.org/ayuda-joomla/ Documentación (Inglés) Ayuda: http://help.joomla.org/ Desarrolladores: http://dev.joomla.org/ Vamos a la web oficial y descargamos el paquete: . Lo descomprimiremos en el directorio dentro de la raíz de nuestro servidor:
tar -zxvf Joomla_1.0.13-Stable-Full_Package.tar.gz
cp -r Joomla_1.0.13-Stable-Full_Package /var/www
chown -R www-data:www-data /var/www
De esta manera estamos instalando el portal en el raíz de nuestra web. Creamos la base de datos del portal:
elite:~# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or g.
Your MySQL connection id is 7748
Server version: 5.0.32-Debian_7etch1-log Debian etch distribution

Type 'help;' or 'h' for help. Type 'c' to clear the buffer.

mysql> create database joomla;
Query OK, 1 row affected (0.00 sec)

mysql> grant all on joomla.* to 'joomla_admin'@'localhost' identified by 'contraseña-super-segura';
Query OK, 0 rows affected (0.04 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.04 sec)

mysql> quit
Bye
Luego continuamos la instalación a través de la web con el proceso automático tecleando en nuestro navegador: http://www.midominio.com.
  • Pasamos un test de requisitos: en mi instalación de PHP tuve que arreglar el siguiente parámetro: session.auto_start = 0.
  • Aceptamos la licencia GPL.
  • Ponemos los datos de la base de datos.
  • Datos de sitio y contraseña de administrador.
  • OJO: por seguridad borrar el directorio de instalación
rm -r /var/www/installation/
Finalmente podemos acceder a la web de administración a través del enlace: http://www.midominio.com/administrator/index.php