PHP environment for the preparation, WAMP

Source: Internet
Author: User
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

?

  • 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.