Instalación de MediaWiki
Feb 25, 08 by Juan Lebrijo about Wiki, blog
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
MediaWiki installation
Feb 25, 08 by Juan Lebrijo about Wiki, blog
At this article we will see how to install MediaWiki over a LAMP server, in my server, over Debian Etch. MediaWiki is a software to mount wikis, PHP developed. A wiki is a collaborative web site hich can be edited by some people at same time. My interests is due to manage my documentation and index it efficiently. Concrete, writing the big texts, the little ones serve this blog. At the beginning, and as usually, I leave, as usually, my reference table: Origin http://meta.wikimedia.org/wiki/Portada/Es Repository http://www.mediawiki.org/wiki/Download Package mediawiki-1.11.1.tar.gz Documentation Instalation: http://meta.wikimedia.org/wiki/Help:Installation General: http://meta.wikimedia.org/wiki/Help:Contents Permissions: http://devpit.org/wiki/Installing_Mediawiki Files Configuration: LocalSettings.php Unzip the package, move the directory to the web root and give permissions to the apache user:
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
Then we will create the database and the administrator user:
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
Finally we will install by browser: http://mydomain/wiki
  • Site name: lebrijo.com
  • Language: ES
  • Admin user: admin/password
  • DB user: wikiadmin/pasword
Generate the configuration file and move it to root directory, then delete the config directry to save the security of your site:
mv config/LocalSettings.php .
rm -r config/
We can access to our wiki from the URL: http://www.mydomain.com/wiki
Joomla! installation
Feb 20, 08 by Juan Lebrijo about Joomla!, blog
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