Brugerværktøjer

Webstedsværktøjer


cpanel_server_setup

Dette er en gammel revision af dokumentet!


Install cPanel and CloudLinux

Install CentOS 7 on the server

Create /home partition

Install extra packages

yum install wget mosh

Open firewall ports for mosh

firewall-cmd --add-service=mosh --permanent

Disable SELinux: Edit the /etc/selinux/config file to set the SELINUX parameter to disabled.

Install CloudLinux

wget http://repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy
sh cldeploy -k yourkey

Now reboot the server

Install cPanel

https://documentation.cpanel.net/display/ALD/Installation+Guide

Setup services according to the guide

systemctl stop firewalld.service

systemctl stop NetworkManager.service
systemctl disable NetworkManager.service
systemctl enable network.service
systemctl start network.service
systemctl start ipaliases.service
Install cPanel
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest

Setup cPanel

Install ClamAV using „Manage Plugins“

Copy configuration from existing cPanel server using „Transfer Tool“

Update setting „Host to publish in the SRV records for Outlook autodiscover support“ to the current hostname.

Setup CloudLinux Features



System Setup

Change /etc/ssh/sshd_config

Port 223

Add firewall rule

firewall-cmd --permanent --zone=public --add-port=223/tcp
firewall-cmd --reload

Add group groupadd ininova Create file /etc/sudoers.d/ininova containing this snippet

# Allow members of group ininova to execute any command
%ininova   ALL=(ALL:ALL) ALL
Install Puppet
yum install puppet

Now, go to the puppet.hosting.gl and sign the request for the new server. Then restart the puppet service with service puppet restart. Check /var/log/messages for errors.

cpanel_server_setup.1488983740.txt.gz · Sidst ændret: 2017/03/08 14:35 af noer