Monday, February 25, 2008

PHP CGI vs Apache Module Install

There are two ways to install PHP on your server:

1) As an APACHE module: This method provides the fastest operation of PHP and is generally more compatible with scripts and other server software.

2) As a CGI binary: This method is used when security is key. When there are several web sites on one server, this method provides better tracking of each domains use of PHP. The price is slower PHP.

If you have your own server, you want to install PHP as an Apache module.

What are the steps to compile php as CGI?

Just run ./configure again and don't specify "--with-apxs" or "--with-apache".

You can see a good tutorial of installing php as cgi and as an apache module in below link

for linux :

http://blazonry.com/scripting/install_apache.php

for windows :

http://www.php-mysql-tutorial.com/install-apache-php-mysql.php
.

No comments: