Brugerværktøjer

Webstedsværktøjer


cpanel_server_setup

Warning: Undefined array key -1 in /home/noergl/dokuwiki.noer.gl/inc/html.php on line 1458

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/07/13 02:35]
216.73.216.243 gammel revision gendannet (2026/05/28 23:43)
cpanel_server_setup [2026/09/19 12:52] (nuværende)
213.209.159.133 gammel revision gendannet (2026/07/13 02:45)
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 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.1783910108.txt.gz · Sidst ændret: 2026/07/13 02:35 af 216.73.216.243