Skip to content

Instantly share code, notes, and snippets.

@saqpsaqp
Created September 4, 2019 03:19
Show Gist options
  • Save saqpsaqp/14dbe8bbceebdbc486bd080f1f1b1bf3 to your computer and use it in GitHub Desktop.
Save saqpsaqp/14dbe8bbceebdbc486bd080f1f1b1bf3 to your computer and use it in GitHub Desktop.
Install CWP Server

Install CWP Server - CentOS 7

Prepare server

sudo su
yum update -y
yun install nano
hostnamectl set-hostname xyz.com
echo 127.0.0.1 xyz.com >> /etc/hosts
swapon -s
dd if=/dev/zero of=/swapfile count=2048 bs=1MiB
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
swapon -s
echo -e '/swapfile\tswap\tswap\tsw\t0\t0' >> /etc/fstab
echo vm.swappiness=10 >> /etc/sysctl.conf
echo vm.vfs_cache_pressure=50 >> /etc/sysctl.conf

Install CWP

yum -y install wget
cd /usr/local/src
wget http://centos-webpanel.com/cwp-el7-latest
sh cwp-el7-latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment