Author Topic: Installed... now, i want to bind panel to a domain  (Read 4106 times)

0 Members and 2 Guests are viewing this topic.

Offline
*
Installed... now, i want to bind panel to a domain
« on: February 28, 2020, 06:58:08 PM »
Hello, i'm quite a newbie.

I installed cwp easily. but now i have 3 main questions.

1) i read somewhere that it's best to setup a swap partition before. This is not mentioned in the official guide for installation... why? do you suggest it? usually on most servers i do add that...

2) i'd like to point my panel to a domain name. Is it suggested? or best to leave it joinable only by ip? if so... how can i do that? should i set an A record inside the panel? or inside my domain setting page?

3) are there some best practice for managing the panel?

Thanks

Offline
*****
Re: Installed... now, i want to bind panel to a domain
« Reply #1 on: March 01, 2020, 04:45:59 AM »
if you have 6 gb and above you didn't need to have swap

for other 2 questions check our wiki and docs
https://docs.control-webpanel.com/
http://wiki.centos-webpanel.com/

Offline
*
Re: Installed... now, i want to bind panel to a domain
« Reply #2 on: March 04, 2020, 10:41:35 PM »
considering my server is 2gb ram 20gb hd and 2core processor... i need to swap i guess.
which process do you think is best?

Process A
Code: [Select]
swapon -swapon
free -m
df -h
sudo dd if=/dev/zero of=/swapfile count=4096 bs=1MiB
ls -lh /swapfile
sudo chmod 600 /swapfile
ls -lh /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
swapon -s
free -m

sudo nano /etc/fstab
/swapfile swap swap sw 0 0

sudo nano /etc/sysctl.conf

vm.swappiness = 10
vm.vfs_cache_pressure=50

Process B
Code: [Select]
sudo dd if=/dev/zero of=/swapfile count=4096 bs=1M
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
echo '/swapfile   none    swap    sw    0   0' | sudo tee -a /etc/fstab
free -m

echo 'vm.swappiness=10' | sudo tee -a /etc/sysctl.conf
sudo sysctl -p
cat /proc/sys/vm/swappiness

thanks

Offline
*****
« Last Edit: January 22, 2024, 07:34:59 AM by Administrator »