Configure Win2003 + Apache + PHP + MySQL

xiaoxiao2021-04-05  270

Article from programming files 100,000 classic technical documents http://www.seeitco.com/doc/html/web/index.html

The first point:

There is nothing to say by Apache & mysql installation. It is basically NEXT to take the next way.

My Apache installation directory is d: / webgui / apache2;

Note that the place is:

Add: httpd.conf Add:

# for php

# Loadingfile 'd: /webgui/apache2/bin/php5ts.dll'loadModule PHP5_MODULE MODULES / PHP5APACHE2.DLLADDTYPE Application / X-httpd-php .php

# Set Apache2 to Chinese support.

Find # adddefaultcharset ISO-8859-1. Then add it below

AdddefaultCharset GB2312

DEFAULTLANGUAGE GB2312

AddLanguage EN-CN .CN

Second point:

PHP installation

Unzip or install php5.zip to directory D: / PHP

Change the file name php.ini-dist of PHP.INI

At the same time, copy php.ini and php5tsts.dll to the directory of Apache2 / bin /

Copy php5apache2.dll into the modules directory of Apache2

PHP.INI To (1) Change Display_errors = Off Be display_errors = on (2) change eXtension_dir = './' becomes extension_dir = 'D: / Webhui / PHP / EXT /' (3) change; extension = php_mysql.dll removal The semicolon becomes extension = php_mysql.dll (4) libmysql.dll Copy to D: / Webhui / Apache2 / BIN bottom (to copy the libmysql.dll given by PHP, not mysql directory, that is PHP4, pay attention to the version La)

Step 3: Restart the system

Apache will start and load httpd.conf to loadModule will use Windows API LoadLibrary to load php5apache2.dll then loaded into PHP5TS.DLL of the directory and loaded into other extension DLLs according to the settings of each extension After the DLL is loaded, if the Extension DLL needs to load the associated DLL, other required DLLs are placed in the bin directory of Apache because Apache uses Windows API LoadLibrary to load the DLL file, the search path is the most Priority, followed by system32)

Step 5: Test

Write test file info.php

Document content: (on a line)

Visit: http://localhost/info.php

If you see the welcome test page of PHP, the installation is successful!

You have configured Win2003 Apache PHP MySQL

转载请注明原文地址:https://www.9cbs.com/read-131983.html

New Post(0)