Tag Archives: apache

How to Check which MPM (Multi Processing Module) Apache is Running

By | August 15, 2020

MPM (Multi processing module) is a component of apache server, that determines how multiple clients or connections shall be handled. Apache is flexible by design and there are different mpms that can be used with apache depending on the needs. Some MPMs create a separate process to handle each request, whereas some create separate threads…. Read More »

Run Apache as a specific user with mpm itk on Ubuntu Linux

By | December 8, 2011

Install mpm itk On ubuntu mpm itk can be installed from synaptic. Look for the package called apache2-mpm-itk sudo apt-get install apache2-mpm-itk Configure Configuration for mpm itk can be done in the file sites-enabled/000-default $ gksudo gedit /etc/apache2/sites-enabled/000-default In the VirtualHost *:80 section add this just before the end of the VirtualHost tag [xml] <IfModule… Read More »

htaccess php_flag not allowed here

By | June 13, 2011

If using this code &lt;IfModule mod_php5.c&gt; #Turn off php register globals php_flag register_globals off &lt;/IfModule&gt; gives the error : .htaccess: php_flag not allowed here in /var/log/apache/error.log Then Options should be added to AllowOverride in : /etc/apache2/sites-available/default AllowOverride FileInfo Options like this &lt;Directory /var/www/&gt; Options Indexes FollowSymLinks MultiViews AllowOverride FileInfo Options Order allow,deny allow from all… Read More »

Cgi bin directory for each user in Apache

By | May 9, 2020

This page http://httpd.apache.org/docs/2.2/howto/cgi.html describes how to give each user his own cg-bin directory. The following lines should be added to the Apache configuration file http.conf : &lt;Directory /home/*/public_html/cgi-bin&gt; Options ExecCGI SetHandler cgi-script &lt;/Directory&gt; Along with this there are some more points to be kept in mind. If you .htaccess file has a section like this… Read More »

Install apache mod rewrite on windows

By | September 30, 2009

In httpd.conf file the following line should be uncommented : LoadModule rewrite_module modules/mod_rewrite.so by removing the # sign before it. Then comes a section which looks like this : <Directory "C:/Apache2.2/htdocs"> # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews #… Read More »

How to Install Apache Mod Rewrite on Ubuntu / Linux

By | August 8, 2020

Apache Mod Rewrite mod_rewrite is an apache module which enables rewriting of urls requested by client before the pages are fetched by apache. For example www.site.com/products.php?code=459 can be written as www.site.com/products/459 or www.site.com/products/459.html. The second url is re-written into the first one by mod_rewrite using rewrite rules specified in the .htaccess file. Enable Mod Rewrite… Read More »