≡ Menu


How to Setup Nginx Reverse Proxy to Apache/PHP on Linux

Nginx can be used as a front-end to an Apache/PHP website. For this, we need to setup Nginx as a reverse proxy. For example, let us say we have an enterprise application that is running on Apache and PHP on app.thegeekstuff.com, and we also have Nginx running on example.com. In this example scenario, when someone [...]


How to Configure MongoDB with PHP for XAMPP on Windows

XAMPP is an open source, easy to use and easy to install stack that contains Apache webserver, MySQL database, PHP compiler and Perl. MongoDB is one of the most widely NoSQL database in market today. We often end up in a situation where we might find it useful to set up mongodb also along with [...]


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


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


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


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


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