OS X'te MAMP yüklü. Bu, /Applications/MAMP/conf/apache/httpd.confApache'nin sunucuyu çalıştırması gereken kullanıcı için yapılandırma bölümüdür:
...
#
# 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
...
Gördüğünüz gibi mekullanıcı hesabım olan ayarlandı . Şimdi, adlı bir sistem kullanıcı oluşturduk _apacheBen sunucuyu çalıştırmak için kullanmak istiyorum, bu yüzden değiştirmek httpd.confiçin:
...
#
# 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
...
Ancak sunucuyu yeniden httpd.confbaşlatıp dosyayı yeniden açarsam, MAMP'ın Useryönergeyi tekrar değiştirdiğini görüyorum me:
User me
Neden bunu yapıyor? Beklenen davranış bu mu? Bir şekilde MAMP'a Apache'yi de başka bir kullanıcı olarak çalıştırma niyetim olduğunu söylemeli miyim? Bunu nasıl yapabilirim?