Author: ashishpsk

Let’s Encrypt on CentOS 7 with Apache

As usual make sure the system is fully up to date before installing any packages: We are going to use Apache as our web server, install it using this command: Install mod_ssl as well as we are going to need it to configure our Let’s Encrypt SSL certificate: Configure Apache: Create a document root folder

Read more

Install WordPress through SSH

Type the following command within the directory where you wish to install wordpress and press the “Enter” key. The latest compressed installation file of WordPress will download. Uncompress the following package. The WordPress platform files will unzip into a directory named “WordPress”. Move the wordpress platform files back up one directory level. Delete the installation

Read more

Useful Exim Commands

exigrep domain.com /var/log/exim_mainlogcat /home/username/.contactemailexim -bpc List the messages in the queue:exim -bop List frozen mais:exit -bp | grep frozen | wc -l Summary of messages in the queue (count, volume, oldest, newest, domain, and totals):exim -bp | exiqsumm Display what Exim is doing right now:exiwhat Test Exim SMTP transactionexim -bh ipaddress  Display Exim settings exim -bP

Read more

Installing GCC c and c++

Command to list groups on a CentOS / RHEL 7 Another option: Command to install GCC and Development Tools on a CentOS / RHEL 7 server: If above command failed, try: A note about failing groupinstall on CentOS/RHEL 7.x: To install all the packages belonging to a package group called “Development Tools” use the following

Read more

Find Command

The option -L (options) tells the find the command to follow symbolic links. The /var/www (path…) specifies the directory that will be searched. The (expression) -name "*.js tells find to search files ending with .js (JavaScript files). To search for a file named document.pdf in the /home/linuxize directory, you would use the following command: To run a case-insensitive search, change the -name option with -iname: Find Files by Extension  Searching for files by extension

Read more