Php environment preparation, WAMP

Source: Internet
Author: User
Tags configuration php vc9
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

?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.