OpenVZ Template w/ cPanel Pre-Installed

MikeP

Registered
May 29, 2010
3
0
51
Hello everyone!

I'm looking to make an OpenVZ template with cPanel pre-installed, however, my main concern is that the Hostname and IP address details etc will remain the same when the template is used to create other VPS's apart from it's originator. How would I go about writing a script to update the internal database or wherever the details are held?

Thanks
 

tersum

Member
PartnerNOC
Jan 1, 2008
5
0
51
I'm surprised you haven't received a response. You would think this is a very common issue.
 

robert420

Member
Nov 3, 2006
8
0
151
You can find the templates at OpenVZ Templates

After creating a new vps server in SolusVM then installing cPanel on that vps servers. Once cPanel was installed finished I basically went into SolusVM click create template gave it a name. Then terminated the vps servers recreated it using the new freshly Centos 5 Templates with cPanel pre-installed. Then from this point of view I can still you then the information we'll not stay intact the information we'll automatically be changed to the new vps server whenever that template is use to create that vps server.
 
Last edited:

VL-Adam

Registered
Oct 17, 2010
2
0
51
You can find the templates at OpenVZ Templates

After creating a new vps server in SolusVM then installing cPanel on that vps servers. Once cPanel was installed finished I basically went into SolusVM click create template gave it a name. Then terminated the vps servers recreated it using the new freshly Centos 5 Templates with cPanel pre-installed. Then from this point of view I can still you then the information we'll not stay intact the information we'll automatically be changed to the new vps server whenever that template is use to create that vps server.
That still never worked for us. Can anyone else confirm?
 

jmginer

Well-Known Member
Jul 26, 2006
164
7
168
Alicante
cPanel Access Level
Root Administrator
You can find the templates at OpenVZ Templates

After creating a new vps server in SolusVM then installing cPanel on that vps servers. Once cPanel was installed finished I basically went into SolusVM click create template gave it a name. Then terminated the vps servers recreated it using the new freshly Centos 5 Templates with cPanel pre-installed. Then from this point of view I can still you then the information we'll not stay intact the information we'll automatically be changed to the new vps server whenever that template is use to create that vps server.

Yes, you can do this,
but if you restore this template in other vps (with other IP)
there still exist some configurations (ancien IP) preconfigured.
And also you need connect by SSH and run a re-check license, because when you try to login to cpanel is expired. Then, by default, is not accesible and with IP errors.

In DirectAdmin exist a script to reconfigure a template install with new server parameters
How to change your server IP address

I think the better way is create a script to run just previously the step to create the template, than delete IP and services configuration,
and in the next login with port 2087, run a litle check IP and services to reconfigure it with new parameters.

Best regards!!
 

singh9211

Member
Jan 18, 2011
15
0
51
Hi robert420,

Thanks for the link but i think it has old version of CentOS version.
If anyone have the new pre-created templates, please share the download link.....

I really need it.

Thanks in Advance.
 

Abadon

Member
May 7, 2014
6
0
1
cPanel Access Level
Website Owner
We're looking for one of these as well.
We also seek a solution to this problem.

I know that the topic is very old so I hope someone to have working solution of the problem.

We tried to put in:

/var/cpanel/mainip
the new ip address of the VPS after deployment, but this doesn't help. On the web at:


WHM -> Server Configuration > Basic cPanel & WHM Setup -> The IPv4 address (only one address) to use to set up shared IPv4 virtual hosts
we continue to see old precreated ip address.
 

dalem

Well-Known Member
PartnerNOC
Oct 24, 2003
2,983
159
368
SLC
cPanel Access Level
DataCenter Provider
if you run upcp --force it will check for IP changes and correct
set it to run in a bash script after deployment

there are some other things you might want to fix depending on what back end software you use