amuck-landowner

Creating cPanel OpenVZ Template w/WHM Setup Wizard Fix

X3host

New Member
Verified Provider
Thank you for this great tutorial but i think too you can do it with your solusvm too
 

mitgib

New Member
Verified Provider
Updated this again for CentOS 7

Prepare centos-7-minimal template, for now, downgrade initscripts and add to /etc/yum.conf exclude to preserve

 
wget ftp://bo.mirror.garr.it/pub/1/slc/centos/7.0.1406/os/x86_64/Packages/initscripts-9.49.17-1.el7.x86_64.rpm
rpm -Uvh --force initscripts-9.49.17-1.el7.x86_64.rpm
 vi /etc/yum.conf

 
exclude=initscripts
 Add some tools so cPanel will install

 
yum -y install net-tools e2fsprogs nano rsyslog logrotate
Force current so 11.50 is the target install

Code:
echo "CPANEL=current" > /etc/cpupdate.conf
 
Now you can install and prepare cPanel as outlined by OP

Change whatever firstboot script

Code:
-MAIN_IP=`/sbin/ifconfig venet0:0 | awk -F ' *|:' '/inet addr/{print $4}'`; sed -i "s/^ADDR .*$/ADDR $MAIN_IP/" /etc/wwwacct.conf
+MAIN_IP=`/sbin/ifconfig venet0:0 | awk -F ' *|:' '/inet/{print $3}'`; sed -i "s/^ADDR .*$/ADDR $MAIN_IP/" /etc/wwwacct.conf
And in my last update, I added the firstboot script on line 7 in /etc/rc.local, well it is line 15 now
Code:
sed -i '15d' /etc/rc.local
I've tested this a number of times, but have yet to figure out how firstboot runs, calling it in /etc/rc.local is not seeming to work, even installed firstboot and set it to run as a service, so open to suggestions
 
Top
amuck-landowner