LINUX
-
LAMP in Centos 7 Easy steps to install and configure
In my previous post I have posted the LAMP configuration in centos 6 and also how to install the wordpress. Here I took joomla open source for installing and configuring of LAMP for centos 7. There is no difference between centos 6 and centos 7 the version only changed. And there is slight difference in commands used in SSH. LAMP-indicates Linux, Apache, mysql and php. The LAMP Components includes, Steps to Install Apache: Installing and configuring a LAMP (Linux, Apache, MySQL, PHP) stack on CentOS 7 involves a series of steps. Here’s a simplified guide to help you set it up: Step 1: Update System Make sure your system is…
-
How to Install WordPress Quickly Using SSH – easy to learn
Installing WordPress via FTP can take up quite a long time, as you´ll have to upload hundreds of files to the server. Installing via the console is much faster, but you really need to know what you´re doing. Still, confused why you should install WordPress SSH than any other method? Let me help you with that! Installing WordPress via SSH (Secure Shell) allows you to set up WordPress on a remote server without using a graphical user interface. WHY SSH? Secure Shell (SSH) is used for installing WordPress (or any other software) on a remote server for several reasons Well, the process to Install WordPress Quickly Using SSH is faster and much convenient than any…
-
Rsync Command in Linux with Examples easy to learn – Basic guide
'rsync' is a command-line utility used for data synchronization and file transfer between two systems. It is commonly found in Unix and Unix-like operating systems but can also be used on Windows / Linux through various implementations. The primary purpose of ‘rsync‘ is to efficiently copy and synchronize files and directories from one location to another while minimizing data transfer. ‘rsync‘ is a fast and versatile command-line utility for synchronizing files and directories between two locations over a remote shell, or from/to a remote Rsync daemon. It provides fast incremental file transfer by transferring only the differences between the source and the destination. There are basically two ways in which rsync can…
-
How To Reset Root Password On CentOS 7
Have you ever encountered a situation when you missed your user account password on a Linux System? If you forget user password, you can easily reset it using root account. What if you forget your root password? You cannot reset root account password using user account. Since user account is not permitted to perform such task in general. So I planned to boot into single user mode. As the system boots, press ESC to bring up the GRUB boot prompt. The prompt happens early in the boot process. If you miss the prompt, you need to restart the server from the control panel and try again. At the GRUB boot prompt, press E to…
-
How To Disable Root SSH Access
By default when you install CentOS 7 and SSH server, the root account automatically have remote access via SSH. This can be dangerous. If the root account password falls into the wrong hands, your server is at the mercy of the bad guys with the password. They can delete every file and folder on the server and take down the entire system with few commands. That’s why limiting the root account from directly accessing the server is recommended. I will show you through the step by step disable root SSH access on a CentOS 7 server. Before you disable SSH logins for the root account, you must create a normal…
-
How to check the PHP version on Linux
There are several possibilities to check and validate PHP version on Linux. METHOD 1 Open a bash shell terminal and use the command “php –version” METHOD 2 “php -v” to get the version of PHP installed on the system METHOD 3 Let’s create a PHP file with content as shown below. The phpinfo() function outputs a great deal of information about the state of the current PHP environment, including loaded extensions, compilation options, version, server information, and so on. Now, considering that Apache is installed and working, open a browser and test PHP using address as follow: We hope you’ve found this useful!
-
How to clear Default Mail Account in a cPanel Server using SSH
In every cPanel server, we can find a default mail account in the name of cPanel username. The default mail account is not used for normal mailing purposes. All the notification mails from the server are forwarded to this default mail account. cPanel also routes mails sent to the non-existing email accounts at your domain name to the default mail account if catch-all feature is enabled. For example, if your default mail account is vasco@demoserver.com and someone emails a non-existent or mistakenly entered address, billy@demoserver.com, then cPanel forwards the email to vasco@demoserver.com. In most cases spam mails are sent to randomly generated email accounts which may or may not exists…
-
How To Archive Files and Directories in Linux
Introduction Archiving is the process of combining multiple files and directories (same or different sizes) into one file. On the other hand, compression is the process of reducing the size of a file or directory. Archiving is usually used as part of a system backup or when moving data from one system to another. Archives and Directories The most common programs for archiving files and directories are: Tar Zip Archive files and directories using the tar command Tar is a Unix command representative TAPE Archive (tape archive). It is used to combine or store multiple files (same or different into one file. There are four main modes of operation in the…
-
Task Scheduling in Linux with cron
Cron is a Linux and UNIX based tool that allows scheduling automated tasks. Cron commands are stored in a file named for the user who created them in /var/spool/cron/ CRON Commands The Crontab command is used to create new cron files: Crontab -l list the contents of your personal cron file. Crontab -r removes all crontab entries. Crontab -e opens your default text editor for cron job creation. Steps Creating a Cron Job Login to your server as root Create a directory for the purpose of testing as Add files to the crondemo directory using touch command Open crontab -e and add the command Allow sometime and list the directory…
-
How To Use Rsync to Sync with a Remote System
Syncing to a remote system is trivial if you have SSH access to the remote machine and rsync installed on both sides. Once you have SSH access verified between the two machines, you can sync the dir1 folder from earlier to a remote computer by using this syntax This is called a “push” operation because it pushes a directory from the local system to a remote system. The opposite operation is “pull”. It is used to sync a remote directory to the local system. If the dir1 were on the remote system instead of our local system, the syntax would be: Like cp and similar tools, the source is always the first argument, and the destination is always…




















