Server

Add SSHkey to VPS

https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys-2 Create .ssh folder in root foder mkdir -p ~/.ssh touch ~/.ssh/authorized_keys echo public_key_string >> ~/.ssh/authorized_keys Phần quyền, chỉ root account mới có thể access. chmod -R go= ~/.ssh chmod 700 ~/.ssh chmod 600 ~/.ssh/authorized_keys Disabling Password Authentication on your Server sudo nano /etc/ssh/sshd_config PasswordAuthentication no ChallengeResponseAuthentication no UsePAM no Ubuntu sudo systemctl restart ssh …

Add SSHkey to VPS Read More »

How To Install WordPress on Linux/CentOS 7

https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-on-centos-7 https://hocvps.com/cai-dat-wordpress-tren-centos-6/ https://www.digitalocean.com/community/tutorials/install-wordpress-on-ubuntu https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-on-ubuntu-22-04-with-a-lamp-stack https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-22-04 https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-22-04 https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-20-04 Step Two — Install WordPress Before we download WordPress, there is one PHP module that we need to install to ensure that it works properly. Without this module, WordPress will not be able to resize images to create thumbnails. We can get that package directly from CentOS’s default …

How To Install WordPress on Linux/CentOS 7 Read More »

Create virual host in apache

Step 1) C:\WINDOWS\system32\drivers\etc\ Open the “hosts” file : 127.0.0.1 localhost 127.0.0.1 test.com 127.0.0.1 example.com Step 2) xampp\apache\conf\extra\httpd-vhosts.conf DocumentRoot C:/xampp/htdocs/test/ ServerName www.test.com DocumentRoot C:/xampp/htdocs/example/ ServerName www.example.com Step 3) C:\xampp\apache\conf\httpd.conf. Scroll down to the Supplemental configuration section at the end, and locate the following section (around line 500), Remove the # from the beginning of the second …

Create virual host in apache Read More »