Category: Linux

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

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

Allow mysql client to access remote mysql databases

One thing you must understand is that mysql server only allow localhost connections by default. So what does that mean ? Before going deep let me put up an example mysql-server. (1) ” Consider abc.com (5.5.5.5) is our mysql-server and is hosted on a VPS machine. We have setup a lamp environment on 5.5.5.5 and

Read more

Restore a dump file from mysqldump?

To get a list of all MySQL user accounts, use the SELECT statement to retrieve all rows from the mysql.users table: Backup a Single MySQL Database: Backup all MySQL databases to separate files: Create a Compressed MySQL Database Backup: Create a Backup with Timestamp: Restoring a MySQL dump : Restoring using MySQL Prompt, using source: On the command-line, if you’re

Read more

Using CXS scan via SSH

Before starting the scan for the whole server, first adjust the CXS ignore list, since there are some standard cPanel files located in /home folder that will trigger false-positive results. To do this, run the following command: Now you can start the scan. In order to run it in the background, save the report to the /root//full_server_scan file and

Read more