≡ Menu

Apache

What is SSI? SSI stands for Server Side Includes. As the name suggests, they are simple server side scripts that are typically used as directives inside html comments. Where to use SSI? There are several ways to SSI. The two most common reason to use SSI are to serve a dynamic content on your web [...]

{ 2 comments }

Typically you'll see .php as the extension for PHP files that are served by a webserver. Sometimes you might also have a php file that has an extension other than .php, and in those cases, the webserver might not be able to serve that file. For discussion purpose, let us assume that you have written [...]

{ 1 comment }

How to Install Apache Solr with Tomcat on Linux

Apache Solr is an open source text search server. It is based on the Apache Lucene search libraries. Solr does full-text search, highlight the hits, near real-time indexing. It has an extremely scalable search infrastructure that provides replication, load-balanced search query, and automatic failover. This can get the input data that needs to be indexed [...]

{ 6 comments }

If you try to follow the how to install Apache with SSL article that we discussed a while back, you'll face an issue during "make" because of version compatibility between Apache 2.4.4 and APR utilities (Apache Portable Runtime Library) that comes with CentOS 6. We've explained in this article how to solve that issue to [...]

{ 20 comments }

Using Apache Virtual Host, you can run several websites on the same server. For example, I can run both thegeekstuff.com and top5freeware.com on a single physical server that has one Apache webserver running on it. There are two types of Apache virtual host configurations: 1) IP-Based Virtual Host and 2) Name-based Virtual Host. Name-based virtual [...]

{ 43 comments }

How to Rotate Apache Log Files in Linux

Question: I would like to automatically rotate the apache access_log and error_log files. Can you explain with an example on how to do this? Answer: This can be achived using logrotate utility as explained below. Add the following file to /etc/logrotate.d directory. # vi /etc/logrotate.d/apache /usr/local/apache2/logs/access_log /usr/local/apache2/logs/error_log { size 100M compress dateext maxage 30 postrotate [...]

{ 8 comments }

10 Tips to Secure Your Apache Web Server on UNIX / Linux

If you are a sysadmin, you should secure your Apache web server by following the 10 tips mentioned in this article. If you are planning to install apache from source, you should disable the following modules. If you do ./configure --help, you'll see all available modules that you can disable/enable. userdir - Mapping of requests [...]

{ 15 comments }

This article gives step by step instructions on how to install Apache 2 with mod_ssl. I prefer to install Apache from source, as it gives me more flexibility on exactly what modules I want to enable or disable, and I can also upgrade or apply patch immediately after it is released by the Apache foundation. [...]

{ 32 comments }