imran_khan

Well-Known Member
Jun 10, 2013
154
1
16
cPanel Access Level
Root Administrator
Hello,

I want to configure/run web site on IP address. Means I want to access the website through IP Address not domain.
And also let me know, Later how can I revert website from IP Address to domain. Actually I have created the cpanel account with xyz.com (actual domain is different) but currently I want to access this through IP Address and later will want to access it through actual domain name. Please let me know the step by step procedure.

Thanks,
Imran Khan.
 

Infopro

Well-Known Member
May 20, 2003
17,075
524
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
Hello,

I want to configure/run web site on IP address. Means I want to access the website through IP Address not domain.
And also let me know, Later how can I revert website from IP Address to domain. Actually I have created the cpanel account with xyz.com (actual domain is different) but currently I want to access this through IP Address and later will want to access it through actual domain name. Please let me know the step by step procedure.

Thanks,
Imran Khan.

The documentation is your friend.

Change Site's IP Address - cPanel Documentation
 

imran_khan

Well-Known Member
Jun 10, 2013
154
1
16
cPanel Access Level
Root Administrator
Hello,

I have checked the dedicated IP option when created cpanel account and I was accessing web site via IP Address and suddenly it stopped. Can I again assign dedicated IP address to the account from the Cpanel and WHM?

Thanks,
Imran Khan
 

Infopro

Well-Known Member
May 20, 2003
17,075
524
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
If its already assigned to the account, no, I don't think you can re-assign it a second time. It's already assigned to the account.

You might reassign the account back to the main shared IP used for other accounts though. Once you've done that, the dedicated IP on your system you had assigned previously to this account, would be free to be reassigned to some other, or that same account even, again.

HTH!
 

imran_khan

Well-Known Member
Jun 10, 2013
154
1
16
cPanel Access Level
Root Administrator
Hello,

Can I run below command to fix this issue?

From the command line:
/scripts/rebuildhttpdconf
/scripts/restartsrv_httpd

or

/scripts/autorepair userdir_enable_fix
/scripts/restartsrv_httpd

From the WHM:
Service Configuration -> Apache Configuration -> Global Configuration ->
Save -> Rebuild Configuration and Restart Apache

Thanks,
Imran Khan.

- - - Updated - - -

Hello,

Yes domain is properly added in DNS.

Thanks,
Imran Khan.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello :)

You can try rebuilding the Apache configuration file via:

Code:
/scripts/rebuildhttpdconf
It's important to ensure the account is assigned a dedicated IP address. This IP address can not be assigned to any other accounts, and it can not be configured as the main shared IP address of the server.

Thank you.