Setting the correct time zone on a Linux server is important for logs, cron jobs, monitoring tools, and applications. A wrong time zone can create confusion while debugging or tracking events. This guide explains both the modern and legacy ways to change the time zone in Linux. Step 1: Check the Current Time Zone Login to the server as root or a user with sudo access and run: date Example output: Wed Sep 12 15:13:14 IST 2012 Here, IST is the current time zone. Recommended Method (Modern Linux Systems) This …
Miscellaneous
Tmux is a software application that can be used to multiplex several virtual consoles, allowing a user to access multiple separate terminal sessions inside a single terminal window or remote terminal session. It is similar to screen as it lets you run numerous TTYs in the same terminal window. Tmux is a software application that can be used to multiplex several virtual consoles, allowing a user to access multiple separate terminal sessions inside a single terminal window or remote terminal session. It is similar to screen as it lets you …
an secure Mysql service using the following methods. 1. Restrict anonymous remote access :- Which meansnever provide grant access from all hosts. It must limit to specific users from specific hosts only. Do not grant the SUPER privilege and FILE privilege to non-administrative users. Any user who has this privilege can write a file anywhere in the file system with the privileges of the mysqld daemon. 2. Improve local security :- To improve local security use different socket file for both client and server connections. For that edit and add …
1.Click Start, Programs, Administrative Tools, and select Internet Information Services (IIS) Manager. 2.Expand local computer and right click on Web Sites 3.Click New and select Web Site 4.Click Next to begin. 5.Type in a description for the website. This is usually the domain name but can be anything that we prefer to distinguish the site from others. 6.Click Next. 7.Type in the IP address of our new site. TCP port should be 80. * If the site is an IP-based site we can leave the host header line blank. *If …
Magic quotes is a module of php which was implemented in older versions of PHP. In latest versions, the module is depreciated. It is for the purpose of processing of escaping special characters with a ‘\’ to allow a string to be entered into a database. There are three magic quote directives: magic_quotes_gpc :- Affects HTTP Request data (GET, POST, and COOKIE). Cannot be set at runtime, and defaults to on in PHP. magic_quotes_runtime:- If enabled, most functions that return data from an external source, including databases and text files, …
‘rncd : connection failed : connection refused’ is a common error occurred in cpanel. Inorder to get the name servers work properly we need to eliminate this error. Elimination of this error is a simple process which takes only a few minutes via cPanel /scripts.. The steps to solve the issue is as follows : 1. Login to your server as root via SSH 2. Run: /scripts/updatenow 3. Run: /scripts/fixrndc The above steps should fix most of the cases, but if it does not, do follow the following steps : …
First we need to identify failed RAID Arrays. we can gather information from the following command’s output. # cat /proc/mdstat Removing the failed partition and disk # mdadm –manage /dev/md0 –remove /dev/sdb1 => Power down # shutdown -h now Then replace the drive and power up In order to use the new drive we should have to create the same partition table structure that was on the old One. # sfdisk -d /dev/sda | sfdisk /dev/sdb After that we can add the partitions to the RAID Array. # mdadm –manage …
.htaccess (hypertext access) is the default name of directory-level configuration file that provides decentralized management of configuration while inside your web tree. .htaccess files are often used for security restrictions on a particular directory. So it is very important to secure .htaccess. 1. Add the following code into the .htaccess files. # STRONG HTACCESS PROTECTION order allow,deny deny from all satisfy all 2. Secure your config.php by adding the follwoing # protect wp-config.php Order deny,allow Deny from all 3. Prevent hacker from browsing your directory by adding the code # …
RAID stands for Redundant Array of Inexpensive Disks.The main purpose of raid is to increase logical capacity of storage devices used,improve read/write performance and ensure redundancy in case of a hard disk failure. Raid devices are marked by two letters and a number. Eg. md0,md1,md2. Raid is mostly used in large file servers where data accessibility is higher. Raid unit appears to be equivalent to a single large capacity disk drive. The remarkable benefit of disk array is that if any single disk in the RAID fails, the system and array still continues to function without …
If you encounter the error: in your PHP application, it means your code is using a deprecated function that is no longer supported in modern PHP versions. This issue commonly appears after upgrading PHP, especially when migrating to PHP 5.4 or later. Understanding why this Deprecated Function error occurs and how to fix it will help ensure your application works properly on newer PHP environments. What Causes the Deprecated Function Error? The set_magic_quotes_runtime() function was used in older PHP versions to automatically escape special characters in incoming data and database …