Posts Tagged ‘apache’

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 [...]

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 [...]

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 [...]

Protect your site with password to ldap users and not-ldap (privileged) users

Some time ago I explained how to protect site access with .htaccess. Now I want to do something a bit more complex: I want to control access to my (apache) webserver so that users have to authenticate to LDAP server to access one of my websites. I also want to have some “special” users which [...]

[SOLVED] Apache: ‘[error] [client ::XXX] File does not exist:’

I just noticed my apache.err file was throwing tons of errors like the following: [error] [client 67.195.37.164] File does not exist: /soft/cds-invenio/var/www/incunables I did not know which was causing this error because everything seemed to be working fine. I searched the FAQ, read the Documentation, even tried to search both my website (which generated errors) [...]

dfgallery: Invalid cURL response. We expected ‘true’ from the url …

I am going to install dfgallery 2.0 as it seems to be one of the best flash image gallery softwares available for free. Before the installation I was already using mod_rewrite. A lot of people is getting this error when trying to install df gallery 2.0: Invalid cURL response. We expected ‘true’ from the url [...]

CDS-Invenio: [notice] mod_python: (Re)importing module ‘mod_python.publisher’

Yesterday I looked at /var/log/httpd/error_log and observed a [notice] mod_python: (Re)importing module ‘mod_python.publisher’ was filling apache error_log file. Tibor (from CDS Support Team) told me this was a harmless notice I could safely ignore. I wanted to get rid of it because it fills logs, so I decided to upgrade my mod_python to last version [...]

phpMyAdmin Remote Code Execution: how to deal with disaster

My previous post talked about an attack we had suffered in one of our servers. This attack is based in the remote execution of code (it affects old versions of phpMyAdmin). For a full documentation about the exploit, please read this article. Once you’ve noticed your server has been attacked you should follow these steps [...]

[RESOLVED] [error] an unknown filter was not added: PHP

Last week one of our servers was deeply atacked by a hacker which used a phpMyAdmin’s security bug to access our server (I’ll tell you more about it in a subsequent post, but in the meantime you can read more HERE). We had to perform a full system scaning in order to detect the changes [...]

Montar unidad remota con SAMBA en linux RedHat5 (desde PHP)

Estos días pasados he estado peleándome con lo siguiente: necesitaba que un programa en PHP (ejecutado en máquina llamada RH5, que corre sobre un Red Hat 5) fuera capaz de montar una unidad de cd/dvd remota (más en concreto, de un equipo local Windows XP SP3). Os comento, un poco por encima, los pasos a [...]

Paypal donate

Please help me keep this blog up by donating.

Por favor, ayúdame a continuar con el blog donando.