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

配置最新的PHP加MYSQL服務器

通過一個小時的研究和設置.實現了最新的 php 5.0 + MYSQL 5.0 + WIN2003.
個人認為還是有必要寫個教程出來.因為很多方面和老版本的不盡相同.
說實話自己也是查閱了很多官方文檔才解決了很多怪異問題.

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

相關軟件均可以在 WWW.SKYCN.NET 下載.

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

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

首先安裝 MYSQL .本來以為新版本的安裝界面應該會花哨點.
但是仍然只看到老土的海豚.除了安裝時間比 4.0 長.當然咯.因為 5.0 比 4.0 體積大很多.

推薦安裝在獨立的 NTFS 分區上.比如我服務器的 F盤.只放服務器軟件.
路徑為: F:/MYSQL/

然后進入 F:/MYSQL/BIN/ 鼠標雙點 winmysqladmin.exe
首次運行會提示輸入超級用戶和密碼.就輸入 root 密碼 root
注意啊.如果是對外服務器請設置超級復雜.比如 Wjwsfjn29szjwh~mysql
翻譯過來就是: 我叫魏舒芬.今年29歲至今未婚.

到這里.MYSQL就安裝完畢了.如果不明白請參看深空同學的相關文章.

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

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

到這里就應該進入關鍵步驟了.
首先復制 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/

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

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

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

繼續.復制php目錄下 php4ts.dll 文件到 System32 目錄里.

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

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

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

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

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

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

相關官方技術資料:

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 文件里的如下內容:
查找 cgi.force_redirect 字串.默認值為1.將其修改為0.并取消前面的;號.

即:

; 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是無法運行的.會有如下提示.

Security Alert! The php CGI cannot be accessed directly.

相關官方技術資料:

!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).

接下來修改 php.ini 文件關于 MYSQL 5.0 的設置.

查找 [MySQL] 字段內的內容.修改如下.

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

mysql.default_host = localhost
// 這里是本地主機.

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

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

修改到這里就可以讓 php 與 MYSQL 關聯了.
最后啟動 php 對 MYSQL 模塊支持.

查找 extension=php_mysql.dll 字串.刪除掉前面的 ; 號

extension=php_mysql.dll

請注意.如果不啟動 php 對 MYSQL 模塊支持.將無法使 phpMYADMIN 正常工作.將提示:

cannot load MySQL extension, please check php Configuration
無法裝入 MySQL 擴展,請檢查 php 的配置。

相關官方技術資料:

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.

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

到這里應該就沒有很大問題了.如果有配置基礎的朋友應該完全可以理解了.
本人在實際配置的時候也遇到了很多問題.最后都是耐心查詢官方文檔得到了解決.

php技術配置最新的PHP加MYSQL服務器,轉載需保留來源!

鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。

主站蜘蛛池模板: 91精品一区二区三区在线观看 | 亚洲欧美一区二区三区蜜芽 | 在线国产三级 | 国产AV高清怡春院 | 国产成人免费观看在线视频 | 中文字幕s级优女区 | 国产高清视频在线观看97 | 国产免费人成在线视频有码 | 回复术士人生重启在线观看 | 综合色一色综合久久网vr | 2023国产精品一卡2卡三卡4卡 | 极品少妇伦理一区二区 | bbwxxxx交女警 | 国产人妻麻豆蜜桃色在线 | 天天久久影视色香综合网 | 午夜理论电影在线观看亚洲 | 麻豆三级电影 | 少妇精品无码一区二区三区 | 亚欧日韩毛片在线看免费网站 | 无码毛片内射白浆视频 | 老头狠狠挺进小莹体内视频 | 亚洲 视频 在线 国产 精品 | 久久久久久久久久毛片精品美女 | 老汉老太bbbbbxxxxx | 国产精品九九久久精品视 | 麻1豆传媒2021精品 | 女bbbbxxx孕妇 | 中文中幕无码亚洲在线 | 精品午夜久久福利大片免费 | 黄网址在线观看 | 小蝌蚪视频在线观看免费观看WWW | 9420高清完整版在线电影免费观看 | 亚洲国产精品嫩草影院永久 | 国产三级电影网 | 色欲AV无码乱码精品国产 | 国产三级91 | 亚洲成A人片在线观看中文L | 工口肉肉彩色不遮挡 | 中文字幕一区久久久久 | 国产精品色午夜视频免费看 | 国产精品99久久久久久AV下载 |