Category archive

linux

Explore every article in linux, with preserved WordPress-friendly URLs.

16 articles

apache

Copy file from one server to another using scp on linux

If you have to copy any files from one server to another, you normally copy the same using FTP or wget. But some time wget function is disabled on server due to security reason. Hence there is one more additional option that you can use to copy your file from another server to your server. […]

Apr 26, 2024

Read article

linux

export mysql database – mysql dump

When you have access to the command line and you have the export large database, you will not be able to export from phpmyadmin. Hence mysql provide you handy method to export the database from the command line. Below are various options, you can use while exporting the database. ——databases – This allows you to [&hell

Apr 14, 2020

Read article

linux

How to change the php version for the console

Many a times when you view the php version in the browser by displaying the phpinfo() information and the php version that is displayed when you see by typing the command “php -v” in the console or command prompt, You will notice that there is difference in the two. So how to set the php […]

Nov 18, 2019

Read article

CMS

Yii2 how to set custom value for checkbox in gridview widget

In Yii2, while you use gridview widget to display your table data, for performing any operation on the record by selecting the checkbox, gridview assign the value of the first column retrieved from your the result set. But you need to set some different value to the checkbox, so to do that you can use […]

Aug 4, 2019

Read article

linux

How to create tar archive file in linux

The below command will create a tar archive file whatevername_yougive.tar for a directory /path/of/directory/to/archive in current working directory. See the example below. tar cvf whatevername_yougive.tar /path/of/directory/to/archive The options detail are explained as below c – Creates a new .tar archive file. v – V

Jan 19, 2018

Read article

linux

How to Change Timezone in CentOS

You check the time from the command line (run date), and find that the timezone is set to UTC or some other timezone. How do you get this changed? To change this you have to have root access to the server. There are a series of time zone files located at /usr/share/zoneinfo. Select the appropriate […]

Feb 2, 2016

Read article

linux

Timezone issue with cron

If your cron job timing does’t match with the server time zone for example. You have set the cron to run at 12:30 PM, but when you see the cron log the time show say 3:40 PM. So to run your cron job as per your time zone Say if you are in India, your […]

Feb 2, 2016

Read article