Tag: fedora

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...

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.

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.

Install Alternative PHP Cache in CentOS

APC is a cache system which stores compiled PHP code, also allows to store user data allowing the web server to serve a greater number of requests per second, it's a worth noting that a wrong configuration of it can slow the response process, so it is important to adjust the cache parameters until finding the proper performance.

Recovering my GNU/Linux system

I have made some modifications to my RHEL/Fedora/CentOS, Debian/Ubuntu operating system and now it does not restart. How can I make a recovery / rescue operation?