Installation PHP

We bring to your attention fast and the main thing simple installation PHP4 as the module for Apache.

1.         On a site www.php.net in section downloads <http://www.php.net/downloads.php> we search most I skin version PHP.

2.         Further we unpack archive in any directory. For example C:\Server\

By default the archive is unpacked in a directory with the name " php-4. *. *-Win32 ". Hence, at unpacking it is necessary to specify a way C:\Server\. Then it is necessary to rename simply a folder " php-4. *. *-Win32 " on "php". In general, for correctness of unpacking we shall be guided by a file php.exe. He should is to the address: C:\Server\php\php.exe.

3.         We open a folder C:\Server\php\. And in parallel we open a directory where it is established Apache. At this stage we should work with some files.


File php.ini-recommended, we copy in a directory where is apache.exe, and already there it is renamed in php.ini. Here it will be necessary for you to change a little it , namely section Paths and Directories. (Ways to files should be changed on C:\Server).


The file php4ts.dll is copied in a folder where there is a file apache.exe.


In a directory C:\Server \php \sapi \ there is a file php4apache.dll, it{he} is necessary for copying in a folder modules, that is at the same level, as apache.exe (it is a folder of modules for apache).

4.         Configuration file Apache - httpd. conf (without a blank) (in a folder conf at a level apache.exe) now is opened.

And in his  end it is added such lines:

********************* PHP4

LoadModule php4_module modules/php4apache.dll

AddType application/x-httpd-php .php .phtml


5.         Now it is necessary to test PHP.

In directory WWW we create a file phptest.php with the following maintenance{contents} (only one line):

<? php phpinfo ();?>



We start <http://localhost/phptest.php>. The table with the information about established by version PHP should open.

All! PHP4 it is established!