Step by Step Guide to Install VNC Server on Centos 8
Step 1) Install GNOME Desktop environment
dnf groupinstall "workstation"
Step by Step Guide to Install VNC Server on Centos 8
Step 1) Install GNOME Desktop environment
dnf groupinstall "workstation"
wget https://www.directadmin.com/setup.sh
chmod 755 setup.sh
./setup.sh auto
You may run manual installation script as follows:
./setup.sh
ethernet_dev=eth1
This may be eth0, venet0:0, eth0:1, eth1 etc.
ethernet_dev=eth1
This may be eth0, venet0:0, eth0:1, eth1 etc.
letsencrypt=1
service directadmin restart
cd /usr/local/directadmin/custombuild ./build rewrite_confs
cd /usr/local/directadmin/custombuild ./build update ./build letsencrypt ./build rewrite_confs
cd /usr/local/directadmin/scripts ./letsencrypt.sh request_single server.hostname.com 4096
ssl=1
systemctl restart sshd.service
cd /usr/local/directadmin/custombuild mkdir -p custom/ap2 cp -Rp configure/ap2/conf custom/ap2
Alias /.well-known/acme-challenge /var/www/html/.well-known/acme-challenge Alias /config /var/www/html/redirect.php Alias /roundcube /var/www/html/roundcube Alias /webmail /var/www/html/roundcube Alias /phpMyAdmin /var/www/html/phpMyAdmin Alias /phpmyadmin /var/www/html/phpMyAdmin Alias /pma /var/www/html/phpMyAdmin
You can change the bold word(s) and also delete any line if you don’t need.
sudo systemctl restart httpd.service
cd /usr/local/directadmin/custombuild ./build update ./build rewrite_confs
cd /usr/local/directadmin/custombuild ./build update ./build set php1_release 7.1 ./build set php2_release 5.6 ./build set php3_release 7.0 ./build set php4_release 7.3 ./build set php1_mode php-fpm ./build set php2_mode php-fpm ./build set php3_mode php-fpm ./build set php4_mode php-fpm ./build php n ./build rewrite_confs
User can select PHP version on their “Domain Setup”.
perl -pi -e 's|nofork|foreground|g' /etc/systemd/system/clamd.service systemctl daemon-reload systemctl restart clamd.service
yum install spamassassin chkconfig spamassassin on service spamassassin start
File edited: directadmin.conf, csf.conf, sshd_config
Important command line
DirectAdmin Status
systemctl status directadmin.service
DirectAdmin Restart
systemctl restart directadmin.service
or
service directadmin restart
Restart CSF firewall
csf -r
Restart httpd
sudo systemctl restart httpd.service
or
systemctl restart sshd.service
Moving domain between user accounts can be done with following command,
cd /usr/local/directadmin/scripts ./move_domain.sh domain olduser newuser
Here,
domain = the domain name you want to move
olduser = current user
newuser = new user of the domain
To enable browsing websites with IP address, you have to run following commands
cd /usr/local/directadmin/custombuild ./build set userdir_access yes ./build rewrite_confs
The website can be visited with IP address. For example, 194.245.58.124/~username
This will enable browsing default website of the username.
And to disable website with IP address:
cd /usr/local/directadmin/custombuild ./build set userdir_access no ./build rewrite_confs
https://www.transip.eu/knowledgebase/entry/653-directadmin-tutorial-series-securing-your/
netstat -tulpn | less
nano /etc/ssh/sshd_config
firewall-cmd --permanent --zone=public --add-port=56316/tcp