如何在98上支援cgi,php,asp,mysql

來源:互聯網
上載者:User
如何在98上支援cgi,php,asp,mysql
首先安裝win98的pws,在安裝perl(下載perl),在安裝php4(下載).asp呢?pws本身就有了.

pws,98盤中就有

eNet軟體網站 全部軟體

安裝mysql(下載mysql)

在註冊表HEKY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3SVC\parameters\Script Map

中加入 .cgi "c:/perl/bin/perl.exe %s %s"
.pl "c:\perl\bin\perl.exe %s %s"
.php "c:\php4\sapi\php4isapi.dll"
.php3 "c:\php4\sapi\php4isapi.dll"
.php4 "c:\php4\sapi\php4isapi.dll"
.phtml "c:\php4\sapi\php4isapi.dll"

php4的設定:
把php4安裝到c:php4目錄 copy php4ts.dll c:windowssystem
更改php.ini.dist成php.ini
編輯php.ini檔案,找到 doc_root=c:\php4,找到extension_dir = C:\php4\extensions完後存檔
copy php.ini c:\windows

從新啟動電腦一切ok

pws屬性中選進階/編輯屬性,讀取,執行,指令碼,全打鉤

測試php:編輯test.php 加入存檔到c:\Inetpub\wwwroot目錄下,在ie中localhost/test.php能看到xiaoyuan,php4就算成功了

測試cgi:編輯test.cgi 加入#!c:/perl/bin/perl
print "Content-type:text/htmlnn";
print"恭喜!CGI程式運行成功了!";
存到c:\Inetpub\wwwroot目錄下,在ie中localhost/test.cgi能看到恭喜!CGI程式運行成功了的字樣就成功了

安裝mysql:setup預設安裝就行了
測試mysql,c:\mysql\mysqld-shareware.exe啟動mysql在敲入mysql.exe進入sql了嗎?:) 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.