php的環境籌建,WAMP

來源:互聯網
上載者:User
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關閉的情況下開啟

?

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    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.