PHP Environment Building, WAMP
Php+mysql+apache Configuration
PHP:VC6 's thread safe version-----VC6 for other servers, VC9 for IIS
PHP.ini configuration:
1) point its path to the extensions directory in your PHP directory
Extension_dir = "C:\Inetpub\php\ext";
2) Extension=php_gd2.dll
GD Library Support, if you do not open the module discuz! forum image Watermark can not be used.
3) Extension=php_mbstring.dll
To support phpMyAdmin, open mbstring.
4) Extension=php_mysql.dll
Support MySQL.
5) Setting of Session Path:
Session.save_path = "D:/hello_world/wamp/phptools/phpsession"
6) setting of the upload path:
Upload_tmp_dir = "D:/hello_world/wamp/phptools/phpfileupload"
7) settings for the time zone:
Date.timezone =date.timezone = Asia/shanghai
Extension Summary:
Extension=php_curl.dll
Extension=php_gd2.dll
Extension=php_mbstring.dll
Extension=php_mysql.dll
Extension=php_pdo_mysql.dll
Extension=php_pdo_odbc.dll
Extension=php_xmlrpc.dll
Configure the path of PHP and Php/ext to the environment variable's path and restart.
Configuration of Apache:
Configure Apache to support PHP, here is my address
#LoadModule Vhost_alias_module modules/mod_vhost_alias.so
LoadModule php5_module "D:\hello_world\WAMP\php\php5apache2_2.dll"
Phpinidir "D:\hello_world\WAMP\php"
AddType application/x-httpd-php. php. html. htm
Configure the local Web page path, here is my address
DocumentRoot "D:\hello_world\WAMP\WWW"
Open in case IIS is turned off
?