How do I figure out what user & group Apache is running as?

前端 未结 2 1912
一整个雨季
一整个雨季 2021-01-12 16:37

On DreamHost shared hosting, I\'m setting up htpasswd, but Apache does not have permission to read the file. How do I give it permission? I want to either change the owner o

2条回答
  •  鱼传尺愫
    2021-01-12 17:05

    Actually, you don't need access to httpd.conf:

    ps aux | grep apache2
    groups apache_user
    

    should yield what You want

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题