Archive for the ‘Informática – Sistemas y servidores’ Category
Linux: Sustitución de texto en múltiples ficheros usando SED [resuelto]
¿Cómo hacer una sustitución de texto en múltiples ficheros de forma simultánea, usando la línea de comandos linux? El comando SED permite hacer sustituciones de forma muy cómoda. Por ejemplo, el siguiente comando sustituye todas las ocurrencias (nótese el /g al final) de oldWord por newWord en todos los ficheros *.ext que se encuentren bajo [...]
Apache case sensitive to case insensitive and Alias [SOLVED]
Some days ago I was checking my Apache logs and noticed some 404-Not found errors which made me realize my apache had this annoying case-sensitive behaviour. Thing was tricky, though. If I visited http://www.mysite.com/TAZ/restofpath/file.ext it worked. If I visited http://www.mysite.com/taz/restofpath/file.ext it returned a 404 error. If I visited http://www.mysite.com/TAZ/RESTOFPATH/FILE.EXT of http://www.mysite.com/TAZ/restofpath/FILE.EXT or other combinations it [...]
Know mod_python running version [SOLVED]
A friend of mine asked yesterday: how do I get the mod_python version that my site is running? Answer is quite easy! >>> import mod_python >>> print mod_python.version 3.3.1
Apache server log size and log rotate configuration
Log rotation is a crucial issue. Both RHEL and Suse include logrotate and it is preconfigured for basic log-rotation. If you have some logs under /var/log that are suffixed with a dot and a number (/var/log/daemon.log.1) or even compressed (/var/log/mysql.log.5.gz), it means they were rotated by logrotate. Logrotate needs a simple configuration file to help [...]
Mysql: how to rename a database [solved]
MySQL rename database command was added in MySQL 5.1.7 but was found to be dangerous and was removed in MySQL 5.1.23. It was intended to enable upgrading pre-5.1 databases to use the encoding implemented in 5.1 for mapping database names to database directory names (see Section 8.2.3, “Mapping of Identifiers to File Names”). However, use [...]
Instalación y configuración vufind en RedHat EL5 + Apache 2.2.16 + PHP 5.2.14
Vufind es un portal para bibliotecas, desarrollado por las bibliotecas. El propósito de vufind es posibilitar búsquedas sobre los fondos completos de una biblioteca, que incluyen los registros del catálogo, elementos de repositorios, publicaciones electrónicas etc. Vufind es completamente modular, por lo que se puede instalar el sistema básico o ir ampliándolo con sus distintos [...]
Creando un repositorio GIT a partir de las fuentes
De cara al desarrollo de aplicaciones es muy interesante tener algún software de control de versiones, tipo Subversion o GIT. Os comento a modo de “chuleta” cómo hacer esto desde las fuentes. Para ello, algunas consideraciones preliminares: Servidor y SO: Linux myserver.com 2.6.18-194.3.1.el5 #1 SMP Sun May 2 04:17:42 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux [...]
Active directory: Delete protected OU (Windows SERVER 2008) [SOLVED]
In Windows 2008 Active Directory Users and Computers Microsoft activated new feature “Protect Container from accidential deletion” During OU (organizational unit) creation you have the ability to mark OU as protected from accidental deletion , and if you try to delete OU you will receive the following error “You do not have sufficient privileges to [...]
Allow write fstab in maintenance mode [SOLVED]
Imagine your server crashes (due to some hardisk I/O error, for instance). Then if you reboot your machine, it’ll spit out something like: Checking filesystems… e2fsck: Cannot continue, aborting Type root password for maintenance mode or CTRL+D to continue Lets suppose the culprit of this is some HDD (for instance, /dev/mapper/Vt31-p1 which should be mounted [...]
BackupPC – gestión de backups. Guía de instalación para bobos.
¿Qué es BackupPC? El otro día tuve la ocasión de ver en funcionamiento una herramienta estupenda para gestionar copias de seguridad mediante un interfaz web (o por via de comandos). Se llama BackupPC y es libre. Las opciones de personalización son infinitas, no sólo a nivel de compresión de los backups, sino también la posibilidad [...]