My Princess

Janya - My Life

My Co-Authors

Vaishali Shah
Ivan Bayross

My Publishers

Shroff Publishers

I work with

CyberSol Technologies

Web Directories

Directory India

Who's Online

We have 5 guests online
Installing PHP On Windows PDF Print E-mail

Binding The PHP Installation With Apache2  


Apache does not know that PHP is just installed. Therefore Apache needs to be informed about PHP especially where to find it.

 

This is done via Apache's httpd.conf file. Apache reads this file and understands what modules need to be loaded and where these modules are located.

 

It is not mandatory to have Apache web server installed in order to test .php scripts.

 

These scripts can simply be run using the interpreter php.exe. This can be accomplished by appending the .php script file as a command line argument to php.exe interpreter.

 

There are two ways to configure Apache to use PHP.

 

One is to configure it to load the PHP interpreter as an Apache module.

 

The other is to configure it to run the PHP interpreter as a CGI binary.

 

It is recommended that PHP is loaded as a module in Apache, since it runs more efficiently that way, unless there is a specific reason for running PHP as a CGI binary.

 

Edit Apache's httpd.conf file. Make sure the PHP mime type is specified and uncommented. The line should look like this: 


AddType application/x-httpd-php .php  


This line means that every file that ends with .php will be processed as a PHP file.

 

Click here to download the complete E-Book.

 

+/-
Write comment
Name:
Email:
 
Website:
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
:angry::0:confused::cheer:B):evil::silly::dry::lol::kiss::D:pinch:
:(:shock::X:side::):P:unsure::woohoo::huh::whistle:;):s
:!::?::idea::arrow:
 
Please input the anti-spam code that you can read in the image.
+/- Comments
Add New Search RSS

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."