Archive | LINUX

RSS feed for this section

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 }

How To Install Linux, nginx, MySQL, PHP (LEMP) stack on Debian 8

Step 1: install nginx: Result: Step 2: Install MySQL Step 3: Install php-fpm and php5-mysql Result: Step 4: Edit file /etc/php5/fpm/php.ini Find line change to Step 5: Configure Nginx to use our PHP Example we edit file /etc/nginx/sites-available/default Done!

Read full story Comments { 0 }

How to install netstat on Linux

To install netstat on Linux, use one command line Result:

Read full story Comments { 0 }

How to install OpenVPN on Linux

You can easily install OpenVPN on Debian, Ubuntu and CentOS by using only one command line: Result: Finish, now you retype that command to create new account, remove account, uninstall OpenVPN Result: Looks like OpenVPN is already installed If you get the error during the installation: You can easily fix it by using these command […]

Read full story Comments { 0 }

How to install Chilkat PHP on Linux

In this tutorial, i use PHP 5.4 and CentOS 32bits. Step 1: You can find other download at here For 32bits For 64bits Result: Step 2: decompress Result: Verify in the folder extract: Now change dir to the folder: chilkat-9.5.0-php-5.4-x86-linux Step 3: Copy chilkat_9_5_0.so to the PHP extensions directory. You can find the path of […]

Read full story Comments { 0 }