简体   繁体   English

错误:AH00543:httpd:用户名错误 - Xampp / Apache

[英]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:按以下方式替换usergroup

User nobody
Group Nobody
</ifmodule>

Only replace只更换

User daemon Group daemon用户守护进程组守护进程

by经过

User "your username of linux" Group "your username of linux"用户“您的 linux 用户名”组“您的 linux 用户名”

  1. Navigate to /opt/lampp/etc/httpd.conf导航到/opt/lampp/etc/httpd.conf

Change User daemon to User your-linux-username用户守护程序更改为User your-linux-username

For me it's under LoadModule list对我来说它在 LoadModule 列表下

  1. You may want to change as well /opt/lampp/etc/proftpd.conf您可能还想更改/opt/lampp/etc/proftpd.conf

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.

相关问题 Apache HTTPD 2.4 AH02429 错误与幻像响应 header - Apache HTTPD 2.4 AH02429 error with phantom response header Xampp 在启动 Apache HTTPd 时出错 - Xampp gives error while starting Apache HTTPd Apache无法启动 - stdout.log中的“错误用户名”。 我在httpd.conf中指定了LDAP用户。 - Apache fails to start with - “bad user name” in stdout.log. I specified LDAP user in httpd.conf. Apache/xampp 命令行启动错误:AH00436:未安装名为“Apache2.4”的服务 - Apache/xampp command line start error: AH00436: No installed service named "Apache2.4" 错误 AH00558:httpd:无法可靠地确定服务器的完全限定域名 - error AH00558: httpd: Could not reliably determine the server's fully qualified domain name Apache错误AH02538:Child:父进程突然退出。 子进程正在结束xampp PHP 7 - Apache Error AH02538: Child: Parent process exited abruptly. Child process is ending xampp PHP 7 httpd重新启动错误:Apache - httpd restart error : Apache 我在apache start&#39;apache2:错误的用户名superkkt&#39;上收到错误 - i get error on apache start 'apache2: bad user name superkkt' AH00534:httpd:配置错误:未加载MPM - AH00534: httpd: Configuration error: No MPM loaded WAMP无法启动:获取“ AH00526:C:/wamp/bin/apache/Apache2.4.4/conf/httpd.conf的第224行的语法错误” - WAMP won't start: Getting “AH00526: Syntax error on line 224 of C:/wamp/bin/apache/Apache2.4.4/conf/httpd.conf”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM