Tag: rhel

How to redirect URL with Apache


mod_rewrite is a powerful and sophisticated Apache web server module that allows urls to be rewritten using regular expressions. To redirect the urls to the corresponding url with www in front.

CentOS or Fedora?

Short answer: CentOS.

Long answer...

How to install MySQL 5.7 on CentOS 7

MySQL

MySQL is a relational database server with a great reputation for being fast, efficient, safe, stable, easy to use, multiplatform (GNU/Linux, * BSD, Windows,...) and well documented. The current MySQL development process is under Oracle's umbrella but the community version is released as free software and you can use under GPL terms.

Install and configure Apache HTTP server

Apache HTTPD

Apache HTTP is a general purpose web server, designed to achieve a balance between flexibility, portability and performance. Apache HTTP has a modular architecture which allows to extend the basic functionality by selecting a set of modules: the modules are compiled as Dynamic Shared Objects (DSO) and they may be enabled/disabled using the LoadModule directive.

How to know if a package is installed

We can use the aptitude command to know if a package has been installed on Debian GNU/Linux or derivative. In CentOS/RHEL/Fedora you can use yum

Handle NTFS partitions in GNU/Linux

To handle NTFS partitions in GNU/Linux you should install the package ntfs-3g

Note: From April 2011 the ntfs-3g and ntfsprogs projects joined forces so now everything is in a single suite: ntfs-3g.

Most likely your distribution may already have installed the suite ntfs-3g else you can do it by exec

Debian/Ubuntu

$ sudo apt-get install ntfs-3g

CentOS/Fedora/RHEL

# yum install ntfs-3g

Find duplicated files in GNU/Linux

One of the easiest and safest ways to find duplicate files on GNU / Linux files is using the tool fdupes, fdupes find duplicate files comparing the file sizes, making a check MD5 followed by a byte to byte comparison.

Listing files contained in an installed package

GNU/Linux
To know the files contained in an installed package, run the dpkg command in Debian/Ubuntu and derivatives and rpm command in CentOS/Fedora/RHEL

Enable gzip compression on Apache HTTP

Apache HTTPD
mod_deflate is a module for Apache which compresses the content of each http request before sending it to the client decreasing the page load time for each request.

Proceed as follows to enable gzip compression

Activate mod_filter in Apache on CentOS


When you install Apache HTTP on CentOS, mod_filter is not enabled by default then if you try to use some of its directives an error like this is raised: "Invalid command 'FilterDeclare', perhaps misspelled or defined by a module not included in the server configuration", so to resolve the above error is enough to add the following line to the httpd.conf.