天天躁日日躁狠狠躁AV麻豆-天天躁人人躁人人躁狂躁-天天澡夜夜澡人人澡-天天影视香色欲综合网-国产成人女人在线视频观看-国产成人女人视频在线观看

配置最新的PHP加MYSQL服務(wù)器

通過(guò)一個(gè)小時(shí)的研究和設(shè)置.實(shí)現(xiàn)了最新的 php 5.0 + MYSQL 5.0 + WIN2003.
個(gè)人認(rèn)為還是有必要寫(xiě)個(gè)教程出來(lái).因?yàn)楹芏喾矫婧屠习姹镜牟槐M相同.
說(shuō)實(shí)話自己也是查閱了很多官方文檔才解決了很多怪異問(wèn)題.

=========================

相關(guān)軟件均可以在 WWW.SKYCN.NET 下載.

MYSQL 5.0 FOR WINDOWS
php 5.0 FOR WINDOWS
phpMYADMIN
WINDOWS SERVER 2003

=========================

首先安裝 MYSQL .本來(lái)以為新版本的安裝界面應(yīng)該會(huì)花哨點(diǎn).
但是仍然只看到老土的海豚.除了安裝時(shí)間比 4.0 長(zhǎng).當(dāng)然咯.因?yàn)?5.0 比 4.0 體積大很多.

推薦安裝在獨(dú)立的 NTFS 分區(qū)上.比如我服務(wù)器的 F盤(pán).只放服務(wù)器軟件.
路徑為: F:/MYSQL/

然后進(jìn)入 F:/MYSQL/BIN/ 鼠標(biāo)雙點(diǎn) winmysqladmin.exe
首次運(yùn)行會(huì)提示輸入超級(jí)用戶和密碼.就輸入 root 密碼 root
注意啊.如果是對(duì)外服務(wù)器請(qǐng)?jiān)O(shè)置超級(jí)復(fù)雜.比如 Wjwsfjn29szjwh~mysql
翻譯過(guò)來(lái)就是: 我叫魏舒芬.今年29歲至今未婚.

到這里.MYSQL就安裝完畢了.如果不明白請(qǐng)參看深空同學(xué)的相關(guān)文章.

=========================

下面安裝 php 5.0 其實(shí)沒(méi)什么安裝不安裝的.解壓縮文件.推薦放到
路徑為: F:/php/

到這里就應(yīng)該進(jìn)入關(guān)鍵步驟了.
首先復(fù)制 php 目錄下的 php.ini-dist 到 C:/Windows/ 并將文件名修改成為 php.ini

COPY F:/php/php.ini-dist C:/Windows
Ren php.ini-dist php.ini

如果是 WINDOWS 2000 就是: C:/WINNT/
如果是 WIN9X / 2003 就是: C:/Windows/

然后復(fù)制 php 目錄下 DLLS 目錄里的所有文件到 SYSTEM32 目錄.

COPY F:/php/dlls/*.* C:/Windows/System32/

如果是 WINDOWS 2000 就是: C:/WINNT/System32/
如果是 WIN9X / 2003 就是: C:/Windows/System32/

繼續(xù).復(fù)制php目錄下 php4ts.dll 文件到 System32 目錄里.

COPY F:/php/php4ts.dll C:/Windows/System32/

=========================

到這里復(fù)制工作全部完成.下面修改 C:/Windows/php.ini 文件.

請(qǐng)注意.5.0的版本修改與4.0并不完全相同.需要注意的如下.

查找 extension_dir 字串.修改為你 php 目錄里 extensions 的路徑.

; Directory in which the loadable extensions (modules) reside.
extension_dir = F:/php/extensions

相關(guān)官方技術(shù)資料:

Edit your php.ini file:

You will need to change the 'extension_dir' setting to
point to your php-install-dir, or where you have placed
your 'php_*.dll' files. ex: c:/php

If you are using OmniHTTPd, do not follow the next step.
Set the 'doc_root' to point to your webservers
document_root. ex: c:/apache/htdocs or c:/webroot

Choose which extensions you would like to load when php
starts, noting that several extensions are already built
into the Windows release, see the section about
Windows extensions for details of the built-in extensions.
You can uncomment the: 'extension=php_*.dll' lines
in php.ini to load these extensions.

Note that on a new installation it is advisable to first get
php working and tested without any extensions before enabling
them in php.ini.

On PWS and IIS, you can set the browscap.ini
to point to: 'c:/windows/system/iNETsrv/browscap.ini' on
Windows 9x/Me and 'c:/winnt/system32/iNETsrv/browscap.ini'
on NT/2000/XP Server.

More information on the capabilities of browscap can be found here:

www.php.NET/manual/en/function.get-browser.php

Note that the mibs directory supplied with the Windows distribution
contains support files for SNMP. This directory should be moved to
DRIVE:/usr/mibs (DRIVE being the drive where php is installed.)

然后與 php 4.0 不同的是.需要修改 php.ini 文件里的如下內(nèi)容:
查找 cgi.force_redirect 字串.默認(rèn)值為1.將其修改為0.并取消前面的;號(hào).

即:

; cgi.force_redirect is necessary to provide security running php as a CGI under
; most web servers. Left undefined, php turns this on by default. You can
; turn it off here AT YOUR OWN RISK
; **You CAN safely turn this off for IIS, in fact, you MUST.**
cgi.force_redirect = 0

切記如上修改的地方.否則php 5.0是無(wú)法運(yùn)行的.會(huì)有如下提示.

Security Alert! The php CGI cannot be accessed directly.

相關(guān)官方技術(shù)資料:

!NOTE!: Since 4.1.2, the php.ini setting cgi.force_redirect defaults to '1'
which effectively prevents the cgi from working within IIS. You need to set
up at least a minimal php.ini file with the following directive:

cgi.force_redirect = 0

If it doesn't work immidiately, make sure you have the php.ini file in the
right place (%SYSTEMROOT%/php.ini).

接下來(lái)修改 php.ini 文件關(guān)于 MYSQL 5.0 的設(shè)置.

查找 [MySQL] 字段內(nèi)的內(nèi)容.修改如下.

mysql.default_port = 3306
// 這里是MYSQL的端口.

mysql.default_host = localhost
// 這里是本地主機(jī).

mysql.default_user = root
// 這里是用戶

mysql.default_password = Wjwsfjn29szjwh~mysql
// 這里是密碼

修改到這里就可以讓 php 與 MYSQL 關(guān)聯(lián)了.
最后啟動(dòng) php 對(duì) MYSQL 模塊支持.

查找 extension=php_mysql.dll 字串.刪除掉前面的 ; 號(hào)

extension=php_mysql.dll

請(qǐng)注意.如果不啟動(dòng) php 對(duì) MYSQL 模塊支持.將無(wú)法使 phpMYADMIN 正常工作.將提示:

cannot load MySQL extension, please check php Configuration
無(wú)法裝入 MySQL 擴(kuò)展,請(qǐng)檢查 php 的配置。

相關(guān)官方技術(shù)資料:

To connect to a MySQL server, php needs a set of MySQL functions called "MySQL extension".
This extension may be part of the php distribution (compiled-in), otherwise it needs to be loaded dynamically.
Its name is probably mysql.so or php_mysql.dll. phpMyAdmin tried to load the extension but failed.

=========================

到這里應(yīng)該就沒(méi)有很大問(wèn)題了.如果有配置基礎(chǔ)的朋友應(yīng)該完全可以理解了.
本人在實(shí)際配置的時(shí)候也遇到了很多問(wèn)題.最后都是耐心查詢官方文檔得到了解決.

php技術(shù)配置最新的PHP加MYSQL服務(wù)器,轉(zhuǎn)載需保留來(lái)源!

鄭重聲明:本文版權(quán)歸原作者所有,轉(zhuǎn)載文章僅為傳播更多信息之目的,如作者信息標(biāo)記有誤,請(qǐng)第一時(shí)間聯(lián)系我們修改或刪除,多謝。

主站蜘蛛池模板: 国产原创中文视频 | 国产日韩欧美三级 | 亚洲AV精品无码喷水直播间 | 九九精品国产亚洲A片无码 九九精彩视频在线观看视频 | 午夜亚洲精品不卡在线 | 免费 高清 中文在线观看 | 高中生被C到爽哭视频免费 高挑人妻无奈张开腿 | 蜜臀AV精品久久无码99 | 极品色αv影院 | 欧美一区二区影院 | 推倒美女总裁啪啪 | 久久亚洲欧美国产综合 | 国产精品视频国产永久视频 | 97精品在线观看 | 国产69精品久久久久人妻刘玥 | 国产在线精彩亚洲 | 成人久久欧美日韩一区二区三区 | 女教师二十三歳 | 亚洲AV无码国产精品色午夜情 | 玖玖爱这里只有精品视频 | 乌克兰内射私拍 | 欧美精品做人一级爱免费 | 伊人伊人伊人 | 超级碰碰青草久热国产 | 精品手机在线视频 | 神马影院午夜伦理限级 | 欧美视频 亚洲视频 | 亚洲AV 无码AV 中文字幕 | 国产女人毛片 | 秋霞电影伦网理最新在线看片 | 无人视频在线观看免费播放影院 | 成人在线观看免费视频 | gogogo在线观看 | 欧美日韩精品一区二区三区高清视频 | 亚洲伊人精品综合在合线 | 国内精自品线一区91 | 国产自啪偷啪视频在线 | 亚洲一区免费香蕉在线 | AV福利无码亚洲网站麻豆 | 蜜芽最新域名解析网站 | 日本bbwhd|