Entradas

Mostrando las entradas etiquetadas como apache

How to install and configure suPHP

This tutorial is about how to install and configure suPHP. I know that they exist more tutorials about this but even though I'll write it because it took me a lot of time for me to make it work, and I want to explain how it finally work for me. I made this installation and configuration with Fedora 16 and httpd. What the suPHP module does is define which user and group will execute the PHP scripts. This is established inside one or more VirtualHost. This means that we can have multiple users for each one of our sites. They can even be executed by root but this is not advisable. Now let's see how to install it: It can be with yum or in case of Debian based distros with apt-get, but at least with Fedora and other similar distros I recommend to download the suPHP module from the official site. Here is the link: Now that we have downloaded the package, we untar it: tar -xzvf suphp-*.tar.gz We get inside the folder that is generated after de untaring and we configure...

Instalación y configuración de suPHP

Hola hoy voy a hacer este tutorial de como instalar y configurar el módulo suPHP para Apache o httpd. La instalación la realicé en Fedora 16 con httpd. Tal vez ya muchos saben como instalarlo pero de todas formas lo escribiré ya que yo nunca antes lo había hecho y si me tomo tiempo para algo tan sencillo que es el lograr que funcionara. Lo que el módulo suPHP hace en si es definir que usuario y grupo ejecutará los scripts de PHP. Esto se define dentro de uno o varios VirtualHost. Esto quiere decir que podemos tener distintos usuarios para cada uno de nuestros sitios. Incluso pueden ejecutarse bajo root aunque no es recomendable. Ahora como se instala: Se puede con yum o en caso de distros basadas en Debian con apt-get, pero al menos en el caso de Fedora y otras distros similares recomiendo que se descargue desde la página oficial (lo digo por experiencia -.-). Aquí está el link: http://www.suphp.org/Download.html Entonces ya descargado descomprimimos el paquete con: tar -x...

Run Apache with multiple users

You can run Apache as multiple users with this module: apache2-mpm-itk. This module as I understand it is for executing one of the Apache processes as the user established in VirtualHost. So we can have multiple VirtualHost with multiple users. I have already used this module with Ubuntu and Apache2. Ubuntu installation: apt-get install apache2-mpm-itk Then we just have to add this line inside a VirtualHost (or in all the VirtualHosts we want to run with a different user than the default for Apache): <IfModule mpm_itk_module> AssignUserId User Group </IfModule> And that's all. But obviously if we want the directory established to that VirtualHost to work, it must have the right permissions for that user and group whether to run scripts or to write a file. Even it's possible to run Apache as root.

Ejecutar Apache con múltiples usuarios en Ubuntu

Bueno otra vez voy a escribir algo rápido que puede ser útil. Esta vez necesitaba ejecutar Apache como root, pero es obvio que esto no es seguro, así que quería ejecutar sólo un VirtualHost bajo root. Buscando en Internet di con un blog que explicaba sobre un módulo para Apache llamado apache2-mpm-itk . Este módulo según entiendo es para ejecutar uno de los procesos de Apache como el usuario establecido en el VirtualHost. Por lo tanto podemos tener múltiples VirtualHost con múltiples usuarios. Este módulo ya lo utilicé en Ubuntu con Apache2, lo que no he logrado desfortunadamente es que me funcione en Fedora16 con httpd. Pero sigo haciendo el intento todos los días si me es posible de ver la forma de correr httpd con distintos usuarios. Existen otras opciones como suPHP y suExec pero no les he dedicado el tiempo para checarlos. Pero bueno sigamos con lo del módulo itk. Para instalarlo en Ubuntu  apt-get install apache2-mpm-itk Después sólo basta agregar lo siguiente ...