[英]Error: AH00543: httpd: bad user name - Xampp / Apache
I hope you're good, this seems like a great resource and I'd really like your help if possible.我希望你很好,这似乎是一个很好的资源,如果可能的话,我真的很想得到你的帮助。 It would be greatly appreciated.
这将不胜感激。
Xampp and Apache were working fine for me for the past few days and since restarting my computer I am getting the following error:过去几天,Xampp 和 Apache 对我来说运行良好,自从重新启动计算机后,我收到以下错误:
Starting Apache Web Server... Exit code: 8 Stdout: apache config test fails, aborting Stderr: AH00543: httpd: bad user name ccda正在启动 Apache Web 服务器...退出代码:8 标准输出:apache 配置测试失败,正在中止标准错误:AH00543:httpd:用户名错误 ccda
I have tried multiple solutions, but it appears there is a user name error in the config file.我尝试了多种解决方案,但似乎配置文件中存在用户名错误。 The only problem is I don't know how to fix this.
唯一的问题是我不知道如何解决这个问题。
Can anyone help?任何人都可以帮忙吗?
(Sorry for such a delayed post, but this may be helpful for other's search) (抱歉这么晚才发帖,但这可能对其他人的搜索有帮助)
Just go to the httpd.conf file in XAMPP and find只需转到 XAMPP 中的 httpd.conf 文件并找到
User daemon用户守护进程
Group daemon组守护进程
If the user is not daemon, change it to daemon, worked for me.如果用户不是守护进程,请将其更改为守护进程,为我工作。
You need to update httpd.conf
file.您需要更新
httpd.conf
文件。 Run the following command to open Apache configuration file httpd.conf
:运行以下命令打开 Apache 配置文件
httpd.conf
:
sudo gedit /opt/lampp/etc/httpd.conf
Then, search CTRL + F for User
word until you will see the following:然后,在CTRL + F 中搜索
User
词,直到您看到以下内容:
user abc(any word)
Group abc(any word)
</ifmodule>
Replace user
and group
in a following way:按以下方式替换
user
和group
:
User nobody
Group Nobody
</ifmodule>
Only replace只更换
User daemon Group daemon用户守护进程组守护进程
by经过
User "your username of linux" Group "your username of linux"用户“您的 linux 用户名”组“您的 linux 用户名”
Change User daemon to User your-linux-username将用户守护程序更改为User your-linux-username
For me it's under LoadModule list对我来说它在 LoadModule 列表下
User daemon to User your-linux-username用户守护程序到用户 your-linux-username
Just take a look into .conf file,只需查看 .conf 文件,
find directives
User
Group
(usualy after words: "If you wish httpd to run as a different" in config file) (通常在配置文件中的单词之后:“如果您希望 httpd 以不同的方式运行”)
and fill values with your system usernames.并用您的系统用户名填充值。
For ubuntu对于 ubuntu
User www-data Group www-data
For CentOS对于 CentOS
User apache
and so on等等
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.