Archive | LINUX

RSS feed for this section

How to chmod folders or files only

To chmod folders only, you can use command: To chmod files only, you can use command:

Read full story Comments { 0 }

Using FTP with VPSSIM on CentOS

Use vpssim menu: Choose menu 9 then choose sub-menu 5 to setup FTP server: Now you will see this screen: Type 1 to create an FTP account, then type your domain like: tutorialspots.com

Read full story Comments { 0 }

How to create a free Let’s Encrypt certificate on CentOS with NGINX

Step 1: Step 2: Result: Result: You can use crond to run below command twice per day: https://certbot.eff.org/#centos6-nginx

Read full story Comments { 1 }

How to install bmon – Bandwidth Monitor on CentOS

bmon is a monitoring and debugging tool to capture networking related statistics and prepare them visually in a human friendly way. It features various output methods including an interactive curses user interface and a programmable text output for scripting. If your server hasn’t git, follow guide: How to install Git on Centos Linux I install […]

Read full story Comments { 0 }

Linux: Cron job to monitor for php-fpm service problem

Sometimes, php-fpm service is error, how to monitor for php-fpm service ? Step 1: create a file like check.php with a simple content like and upoad this file to document root (like: /home/vpssim.demo/public_html), you will have the link: http://localhost/check.php Step 2: add a cron job: You can use the command line Then type: i Then […]

Read full story Comments { 0 }

How to reset MariaDb root password on Linux

You forgot or you unknow your root MYSQL password! How to reset MariaDb root password on Linux? Step 1: stop MariaDb Result: Step 2: Result: Step 3: stop and start Mariadb service Note: You can’t use command service mysql restart

Read full story Comments { 0 }

How to run golang web server forever on Linux

To run nodejs webserver forever, you can use forever like: How to do this with golang ? There are many methods, i can show one of them: Step 1: content: Step 2:

Read full story Comments { 0 }

How to install golang on Centos

Step 1: For win64 For win32 Result example: Step 2: extract tar.gz file For win64 For win32 Step 3: Put the export declaration in ~/.bashrc. (use your GOPATH) Now you can use go command:

Read full story Comments { 0 }

Install PHP 7 on CentOS 7

After I showed last week what problems you can deal with when switching from PHP 5.6 to PHP 7, I would like to show you how to switch to PHP 7 at all. Since I am now migrating to CentOS with all servers, it will be the first time that it is not a Debian […]

Read full story Comments { 0 }

How to install PHP5.6 php-fpm on Centos 7

Step 1: Result: Step 2: Result: Step 3: Step 4: Result: Step 5: Step 6: Result: Step 7: Result: Step 8: Result: Step 9:

Read full story Comments { 0 }