Home > Backend Development > PHP Tutorial > php的环境筹建,WAMP

php的环境筹建,WAMP

WBOY
Release: 2016-06-13 10:29:34
Original
828 people have browsed it

php的环境搭建,WAMP

PHP+MySql+Apache配置
php:vc6的thread safe版-----vc6针对其他服务器,vc9针对IIS
php.ini配置:
1)将其路径指到你的 PHP 目录下的 extensions 目录
extension_dir = "C:\Inetpub\php\ext" ;

2)extension=php_gd2.dll
GD库支持,如果不打开该模块则Discuz!论坛图片水印不能使用。

3)extension=php_mbstring.dll
为了支持phpMyAdmin,打开mbstring。

4)extension=php_mysql.dll
支持MySQL。

5)session路径的设置:
session.save_path = "D:/hello_world/WAMP/phptools/phpsession"

6)upload路径的设置:
upload_tmp_dir ="D:/hello_world/WAMP/phptools/phpfileupload"

7)时区的设置:
date.timezone =date.timezone = Asia/Shanghai

extension总结:
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

将php的路径以及php/ext配置到环境变量的path中并重启。

Apache的配置:
配置apache使得支持php,以下是我的地址
#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

配置本地的网页路径,以下是我的地址
DocumentRoot "D:\hello_world\WAMP\WWW"



在IIS关闭的情况下打开

?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template