1. Required software environment:
1. apache 2.2
2. active perl 5.8 c:perl
3. php 5.1 must be installed in c:php
4. ZendOptimizer-3.0.2
5. Includes required by the PHP environment - libraries necessary when PHP cannot run normally after installation.
--------------------------------------------------
2. apache 2.2--------httpd.conf file configuration
1. Add # in front of line 133
2. Modify between <IfModule alias_module> </IfModule>
ScriptAlias /cgi-bin/ "D:/Programmes/Server/Apache2.2/cgi-bin/"
and
<Directory "D:/Programmes/Server/Apache2.2/cgi-bin">
Change the underlined parts to C:/php/ and C:/php respectively.
3. Change #!c:/program files/perl/perl to #!C:/Perl/bin
4. Add at the end of the file
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
# For PHP 4
#Action application/x-httpd-php "/php/php.exe"
# For PHP 5
Action application/x-httpd-php "/php/php-cgi.exe"
-------------------------------------------------- --------------------------
3. PHP configuration details:
1. Add c:php to the windows environment variable path
2. Copy the includes into c:phpincludes
3. Rename php.ini-dist to php.ini
4. The following are the php.ini configuration details:
1. Set doc_root = to doc_root = D:ProgrammesServerApache2.2htdocs
2. Set extension_dir = extension_dir = "C:phpext"
3. Remove the ";" in front of ;extension=php_mysql.dll and change it to extension=php_mysql.dll
4. In; Windows: "path1;path2" change the include_path = below to
include_path = ".;c:phpincludes"
5. Configure the following [MySQL]
4. Active perl installation is very simple, just follow the instructions and it is best to install it to c:perl
5. Turn off the apache server when installing ZendOptimizer, and specify the installation paths of apache and php during the process.
<?phpinfo() ?>