Bobcares

WeSupport

Call Us! 1-800-383-5193
Call Us! 1-800-383-5193
Call Us! 1-800-383-5193

Need Help?

Emergency Response Time custom

Our experts have had an average response time of 11.55 minutes in January 2021 to fix urgent issues.

We will keep your servers stable, secure and fast at all times for one fixed price.

Unable to write user’s httpd.conf in Directadmin – How to fix

by | Jan 22, 2021

Facing the error, Unable to write user’s httpd.conf in Directadmin? We can help you.

We often come across this error while creating a domain in DirectAdmin. This is probably because we tried to delete this domain before and there is a chance of existing files of this domain under “/var/spool/virtual”.

As part of our Server Management Services, we assist our customers with Directadmin queries.

Today, let us see how to resolve this error in a few steps.

 

How to add Domains to DirectAdmin

Before we see how to remove the files from the directory, let us see how to add domains to the DirectAdmin server.

Unable to write user’s httpd.conf in Directadmin

Here are a few steps our Support Engineers find the best fit to do the same.

Step 1: Set the main domain name

By default, no web site associates with our domain.

  1. Initially, we sign in to the control panel at http:xxx.xxx.xxx.xxx//:2222 as the admin user.
  2. Then we switch to the User panel (link is near the top right of the screen)
  3. Click the “Add Another Domain” text link.
  4. Finally, enter the domain name into the box and click Submit.

 

Step 2: Create nameservers (optional)

a) Add at least one additional IP address to the server.

  1. Initially, we sign in to DirectAdmin as the admin user, then select IP Manager from the menu
  2. To add an IP address, go to “IP” field -> “Add IP
  3. Then, place a checkmark next to all the IP addresses and click the “Assign to [username]
  4. Eventually, we can find the Admin username in the dropdown menu.

b) Create the nameservers.

  1. Switch to the Reseller panel and click the Name Servers icon.
  2. If there are any nameservers in the list, checkmark them and click the “Delete Nameservers” button.
  3. Then, we place checkmarks next to any two IP addresses and click “Create Nameservers for” hence selecting the domain we want the nameservers for.

c) Tell DirectAdmin that these will be the primary nameservers.

  1. We switch back to the Admin panel and click Admin Settings.
  2. Then make sure the NS1/NS2 fields are accurate, and then click “Save.”

[Failed to add domains? We’d be happy to assist]

 

Unable to write user’s httpd.conf in Directadmin

When we try to create a domain in a server with the latest DirectAdmin with existing domains, we receive:

Unable to write user’s httpd.conf
Could not include user’s httpd file to the main httpd.conf

As we mentioned earlier, this might be because we tried to delete this domain before and there is a chance of existing files of this domain under “/var/spool/virtual”.

In order to fix this error, we have to delete the existing domain files under the “/var/spool/virtual” directory. Once we remove the files, we can add the domains to the DirectAdmin server.

# cd /var/spool/virtual

We can use the rm command to delete these files.

[Couldn’t delete the files? We are here to help you]

 

Conclusion

To conclude, Unable to write user’s httpd.conf in Directadmin is an error that triggers when we try to add a domain in DirectAdmin. Today, our Support Techs suggested methods to add a domain and to fix the error.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *