Tengo MAMP instalado en OS X. Este es el /Applications/MAMP/conf/apache/httpd.conf
Sección de configuración de Apache para el usuario que debe ejecutar el servidor:
...
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User me
#Group -1
...
Como puede ver, está ajustado a me
que es mi cuenta de usuario. Ahora, he creado un usuario del sistema llamado _apache
que me gustaría utilizar para ejecutar el servidor, así que cambio el httpd.conf
a:
...
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User _apache
Group _apache
...
Pero si reinicio el servidor, y vuelvo a abrir el httpd.conf
veo que MAMP cambia el User
a la directiva me
:
User me
¿Por qué hace eso? ¿Es este el comportamiento esperado? ¿Debo decirle a MAMP que tengo la intención de ejecutar Apache como otro usuario también? ¿Cómo puedo hacerlo?