Featured Posts

Using DKIM with Exim and cPanel Similar to the intentions of SPF records and DomainKeys, DKIM is intended to authenticate a sender by using a public/private key pair to digitally sign email, therefore increasing deliverability. At this...

Readmore

Copy Outgoing Email on a cPanel Server with Exim A common request we get is how a user can automatically BCC outgoing email to another address. This is most often requested by law firms that need to be able to retain copies of communication. Forwarding...

Readmore

Do You Care About Your Customers' Data? I was working a case last week for a new client that's been hosting local business websites for over three years. As with all of my case studies, I did a short survey of the client's infrastructure, processes,...

Readmore

Tips to Reduce Your Customer Support Costs When hosting websites, whether as a mainstream hosting provider, a hobby, or to supplement another service, it's your job to make sure your customers have access to technical support in case they need...

Readmore

Roundcube: MySQL or SQLite? cPanel 11.25 introduces a new feature: The ability to have RoundCube use SQLite instead of MySQL. After benchmarking resource usage and performance, I've come to the conclusion that SQLite is definitely...

Readmore

The cPanel Admin Rss

Assign Multiple IP Addresses on One Account

Posted by Vanessa | Tagged under , | Posted on May 14, 2010

7

By default, cPanel supports the usage of one dedicated IP per account. However, you can get around this by editing just a few files on the server. Here are the steps:

1. Edit /var/cpanel/userdata/$USER/$SUBDOMAIN.$DOMAIN for each subdomain (for addon/parked domains you’ll usually edit the file for the subdomain associated with the addon/parked domain) and change the ip value to a ‘dedicated’ ip.

2. Run /scripts/rebuildhttpdconf

3. Edit the dns zone for the subdomain (which will likely be attached to the parent domain) and update the a-record to point to that IP as well. Then syncronize the zone out to the DNS cluster, if one exists:

/scripts/dnscluster synczone <parentdomain>

4. Edit /etc/domainips and add an entry for that sudomain to point to the IP and run /scripts/rebuildippool to make sure the IP is marked as taken.

Liking this article? Share it and spread the word!
  • Print
  • PDF
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • LinkedIn
  • Live
  • MySpace
  • RSS
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Twitter

Related posts:

Comments (7)

Hey, Thanks for the post. I can’t seem to get the last step to work. I have added the entry for the domain and ip address but it dosn’t show the address as taken. Any Suggestions?

Did you rebuild httpd.conf? Try also /scripts/rebuildippool to update the ip pool

I did this and cPanel shows the addresses are being used, but when I ping the web address, it still comes back to the original IP.

This depends on if you got shared or vps hosting? Cause i have shared hosting and i’ve studying how to have mupltiple ip on one cpanel.

Thanks for reply

I ran into the issue of it saying:

/scripts/rebuildhttpconf

Wasn’t a file.

After a little research, I saw other places saying to do “httpd” not “http”:

/scripts/rebuildhttpdconf

And it worked.

Just as a heads up, there is a typo. Script:

/scripts/rebuildhttpconf

should be:

/scripts/rebuildhttpdconf

(notice the D in httpDconf)

Fixed – thanks for pointing it out

Write a comment