Brugerværktøjer

Webstedsværktøjer


cpanel_server_setup

Forskelle

Dette viser forskellene mellem den valgte og den nuværende udgave af dokumentet. Gul er linjer der findes i den gamle udgave, og grøn er linjer der findes i den nuværende.

Link til denne sammenlinings vising

Begge sider forrige revision Forrige revision
Næste revision
Forrige revision
cpanel_server_setup [2026/05/28 23:43]
216.73.216.233 gammel revision gendannet (2017/02/22 16:26)
cpanel_server_setup [2026/05/28 23:44] (nuværende)
216.73.216.233 gammel revision gendannet (2017/03/08 15:23)
Linje 1: Linje 1:
 +===== Install cPanel and CloudLinux =====
 +
 Install CentOS 7 on the server Install CentOS 7 on the server
 +
 +Create ''/home'' partition
  
 Install extra packages Install extra packages
Linje 11: Linje 15:
 </code> </code>
  
-Install CloudLinux+Disable SELinux: Edit the ''/etc/selinux/config'' file to set the SELINUX parameter to disabled. 
 + 
 +==== Install CloudLinux ====
 <code> <code>
 wget http://repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy wget http://repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy
Linje 19: Linje 25:
 Now reboot the server Now reboot the server
  
-LVE-Stats 2+==== Install cPanel ==== 
 +https://documentation.cpanel.net/display/ALD/Installation+Guide 
 + 
 +Setup services according to the guide
 <code> <code>
-yum install lve-stats+systemctl stop firewalld.service 
 + 
 +systemctl stop NetworkManager.service 
 +systemctl disable NetworkManager.service 
 +systemctl enable network.service 
 +systemctl start network.service 
 +systemctl start ipaliases.service
 </code> </code>
  
 +== Install cPanel ==
 <code> <code>
 +cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
 </code> </code>
 +
 +==== 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 ====
 +
 +
 +<code>
 +
 +</code>
 +
 +==== System Setup ====
 +
 +Change ''/etc/ssh/sshd_config''
 +<code>
 +Port 223
 +</code>
 +
 +Add firewall rule
 +<code>
 +firewall-cmd --permanent --zone=public --add-port=223/tcp
 +firewall-cmd --reload
 +</code>
 +
 +Add group ''groupadd ininova''
 +Create file ''/etc/sudoers.d/ininova'' containing this snippet
 +<code>
 +# Allow members of group ininova to execute any command
 +%ininova   ALL=(ALL:ALL) ALL
 +</code>
 +
 +== Install Puppet ==
 +<code>
 +yum install puppet
 +</code>
 +
 +Now, go to the puppet.hosting.gl and add the server in ''/etc/puppet/manifests/site.pp''. Then sign the request for the new server.
 +
 +Restart the puppet service with ''service puppet restart''. Check ''/var/log/messages'' for errors.
 +
 +
 +
 +
 +
 +
 +
  
cpanel_server_setup.1780011812.txt.gz · Sidst ændret: 2026/05/28 23:43 af 216.73.216.233