.htaccess Based Authentication On Subdirectories

+=======================================+

Author: Nayyar Ahmad.

Contact:  nayyares *AT* gmail *DOT* com

Dedication: To Baji (my mom). for all those efforts, she did for me.

+=======================================+

Preface:

.htaccess is used to provide facility of changing configuration per directory basis, this file can contains one or more directives that is going to be forced on the directory contains .htaccess.

.htaccess is papular name of this configuration modification file, you can change this default name by changing AccessFileName parameter in apache config file. i.e.

AccessFileName .anyname

In this howto, I will take a dumy scenario of two parallel level subdirectories and will implement password authentication on both of them.
Read the rest of this entry »

Building Apache with PHP, MySQL, OCI8 instant client support

Preface:

There are many howtos on building Apache with PHP, MYSQL support, but it is very rare to find some document on OCI8 support with Apache Build, recently I was building a web server in my data center and I was really in trouble when I was searching some installation document, there are few documents , but most of them are using either RPM version of packages or they are missing some of the essential steps. I am trying to write a howto that will help you to at least understand the installation with step-by-step method.

Plateform:

I am using IBM x system x86_64 bit server with RHEL 4 Update Level 4.

Read the rest of this entry »

Virtual hosts using Apache on Windows

How to set up virtual hosts using Apache on Windows platform.

Read the rest of this entry »

PHP Ini Tweaks

This extract shows a few tweaks to ensure that PHP works the way you would expect. The examples are for windows and are related to 2 previous articles about Apache configuration.

Read the rest of this entry »

Run 2 Versions of PHP concurrently on Windows

A popular debate is how to run 2 versions of PHP at the same time. This extract shows two ways to achieve this.
Read the rest of this entry »

Run PHP as an Apache Module - no friends required

This simple extract shows how to run PHP as an Apache module on windows with just 4 lines of code. PHP configuration will be covered in another article. This does not require XAMPP or WAMP and I feel gives you a bit more control over the installation.

Read the rest of this entry »