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.
| 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 ''/ | ||
| Install extra packages | Install extra packages | ||
| Linje 11: | Linje 15: | ||
| </ | </ | ||
| - | Install CloudLinux | + | Disable SELinux: Edit the ''/ |
| + | |||
| + | ==== Install CloudLinux | ||
| < | < | ||
| wget http:// | wget http:// | ||
| Linje 19: | Linje 25: | ||
| Now reboot the server | Now reboot the server | ||
| - | LVE-Stats 2 | + | ==== Install cPanel ==== |
| + | https:// | ||
| + | |||
| + | Setup services according to the guide | ||
| < | < | ||
| - | 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 | ||
| </ | </ | ||
| + | == Install cPanel == | ||
| < | < | ||
| + | cd /home && curl -o latest -L https:// | ||
| </ | </ | ||
| + | |||
| + | ==== Setup cPanel ==== | ||
| + | Install ClamAV using " | ||
| + | |||
| + | Copy configuration from existing cPanel server using " | ||
| + | |||
| + | Update setting "Host to publish in the SRV records for Outlook autodiscover support" | ||
| + | |||
| + | ==== Setup CloudLinux Features ==== | ||
| + | |||
| + | |||
| + | < | ||
| + | |||
| + | </ | ||
| + | |||
| + | ==== System Setup ==== | ||
| + | |||
| + | Change ''/ | ||
| + | < | ||
| + | Port 223 | ||
| + | </ | ||
| + | |||
| + | Add firewall rule | ||
| + | < | ||
| + | firewall-cmd --permanent --zone=public --add-port=223/ | ||
| + | firewall-cmd --reload | ||
| + | </ | ||
| + | |||
| + | Add group '' | ||
| + | Create file ''/ | ||
| + | < | ||
| + | # Allow members of group ininova to execute any command | ||
| + | %ininova | ||
| + | </ | ||
| + | |||
| + | == Install Puppet == | ||
| + | < | ||
| + | yum install puppet | ||
| + | </ | ||
| + | |||
| + | Now, go to the puppet.hosting.gl and add the server in ''/ | ||
| + | |||
| + | Restart the puppet service with '' | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||