2
votes

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:

Starting Apache Web Server... Exit code: 8 Stdout: apache config test fails, aborting Stderr: AH00543: httpd: bad user name 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?

5

5 Answers

4
votes

(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

User daemon

Group daemon

If the user is not daemon, change it to daemon, worked for me.

4
votes

You need to update httpd.conf file. Run the following command to open Apache configuration file httpd.conf:

sudo gedit /opt/lampp/etc/httpd.conf

Then, search CTRL+F for User word until you will see the following:

user abc(any word)
Group abc(any word)
</ifmodule>

Replace user and group in a following way:

User nobody
Group Nobody
</ifmodule>
1
votes

Only replace

User daemon Group daemon

by

User "your username of linux" Group "your username of linux"

1
votes
  1. Navigate to /opt/lampp/etc/httpd.conf

Change User daemon to User your-linux-username

For me it's under LoadModule list

  1. You may want to change as well /opt/lampp/etc/proftpd.conf

User daemon to User your-linux-username

0
votes

Just take a look into .conf file,

find directives 
User
Group

(usualy after words: "If you wish httpd to run as a different" in config file)

and fill values with your system usernames.

  • For ubuntu

    User www-data
    Group www-data
    
  • For CentOS

    User apache
    

and so on