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 page, and to reuse a code snippet as shown below.
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 PHP server side coding in a file with “.myext” extension. For some reason, you want to keep the file extension this way for testing purpose, without having to rename it to .php
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 for searching from various sources including information from a database. You can use HTTP/XML, JASON APIs provided by Apache Solr and write application code in any programming language.
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 get the latest Apache working on CentOS or RedHat.
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.
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.
If you are a sysadmin, you should secure your Apache web server by following the 10 tips mentioned in this article.
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.