Php environment setup, WAMPPHP + MySql + Apache configuration php: threadsafe version of vc6 ----- vc6 for other servers, vc9 for IISphp. ini configuration: 1) direct the path to the extension_dirC: Inetpubphpext directory in your PHP directory; 2) establish the extensionphp_g php environment, WAMP
PHP + MySql + Apache configuration
Php: thread safe version of vc6 ----- vc6 for other servers, vc9 for IIS
Php. ini configuration:
1) direct the path to the extensions directory under your PHP directory.
Extension_dir = "C: \ Inetpub \ php \ ext ";
2) extension = php_gd2.dll
GD library support. if this module is not enabled, Discuz! Forum image watermarks cannot be used.
3) extension = php_mbstring.dll
To support phpMyAdmin, open mbstring.
4) extension = php_mysql.dll
MySQL is supported.
5) session path settings:
Session. save_path = "D:/hello_world/WAMP/phptools/phpsession"
6) set the upload path:
Upload_tmp_dir = "D:/hello_world/WAMP/phptools/phpfileupload"
7) time zone settings:
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 php path and php/ext to the path of the environment variable and restart.
Apache configuration:
Configure apache to support php. The following 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 webpage path. The following is my address.
DocumentRoot "D: \ hello_world \ WAMP \ WWW"
When IIS is disabled
?