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.06 minutes in March 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 *

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF