Installation PHP in Windows

Loading PHP


At the moment of installation PHP at you the web-server, for example, Apache should be already established.


On a site http://www.php.net/ it is possible to find some adjusting packages PHP. For systems Windows variants are offered: ready package CGI with automatic installation and full skompelirovannyj package CGI/ISAPI with the additional libraries, demanding manual adjustments. Go on a site http://www.php.net/ and load that variant which in the best way meets your needs{requirements}.

Installation PHP


?         Unpack the loaded file in any catalogue, for example, C:\PHP4.

?         Pass to this catalogue and find a file php.ini-dist. Place it  in the catalogue C:\Windows and rename in php.ini.

?         Then again return to catalogue PHP and copy files php4ts.dll and Mscvrt.dll in the catalogue C:\Windows\System\. If the file Mscvrt.dll already exists, do not rewrite it .

?         Then open file Apache http.conf in the text editor and find a line

ScriptAlias/cgi-bin/" C:/Apache/cgi-bin / "


?         

Under this line enter following

ScriptAlias/php4/" C:/php4 / "


?         

Then find these stochki:

*AddType application/x-httpd-php .php

*AddType application/x-httpd-php-source .phps


?         

Under them add

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

AddType application/x-httpd-php-source .phps


?         

And, at last, find a fragment

*

* Action lets you define media types that will execute a script whenever

* a matching file is called. This eliminates the need for repeated URL

* pathnames for oft-used CGI file processors.

* Format: Action media/type/cgi-script/location

* Format: Action handler-name/cgi-script/location

*


?         

Under it  add a line

Action application/x-httpd-php /php4/php.exe


?         Installation PHP is completed.