文章詳情頁
Windows2000下安裝Apache PHP4 MySQL
瀏覽:3日期:2024-01-16 13:03:00
作者:大金剛電郵:[email protected]內(nèi)容:一、 安裝APACHE1.3.9(配置conf目錄下的httpd.conf文件)1.#BindAddress * 改為 BindAddress 127.0.0.1;;;;#Servername new.host.name 改為 Servername localhost 2.讓你的APACHE來支持PHP4. 加上下面這么幾句:;;;;;ScriptAlias /php4/ "C:/php4/";;;;;AddType application/x-httpd-php4 .phpAddType application/x-httpd-php4 .php3AddType application/x-httpd-php4 .php4Action application/x-httpd-php4 "/php4/php.exe"3.設(shè)置Apache虛擬目錄,加入以下行:Alias;;/test/;;;"c:/php3/test/" Alias;;/jjjj/;;;"d:/timenet/"4.增加默認啟動文檔:;;;DirectoryIndex index.html;;;DirectoryIndex index.htm ;;;DirectoryIndex index.php ;;;DirectoryIndex index.php3 ;;;DirectoryIndex index.php4 5.測試文件info.php:;;;;在瀏覽器中輸入http://localhost/info.php二、php4安裝(php-4.0.2pl2-Win32.zip)1. 將軟件包解壓到c:php4下。2. 再將目錄下的所有dll文件拷到c;winntsystem32下,不要覆蓋已有的dll文件。將目錄下的php.exe和php.ini-dist兩個文件拷到c:winnt下;3. 將winntphp.ini-dist改名為php.ini,并找到;Windows Extensions項將extension_dir = c:php4 extension=php_zlib.dllextension =php_ldap.dll extension =php_zlib.dll extension =php_calendar.dll extension =php_exif.dll extension =php_ftp.dll extension =php_mssql70.dll (這一項不要加,沒有MSSQL7.0呀)extension =php_imap.dll 有就去掉前面的分號,沒有就自己加上。這個部分容易出現(xiàn)錯誤,是因為在php.ini文件中指定加載了無效的或者不存在的php_*.dll文件,加載這些錯誤信息還可能導(dǎo)致瀏覽器尋找不到服務(wù)器。4. PHP.INI其他設(shè)置:asp_tags = On ; 允許使用ASP風格的標記 upload_max_filesize = 2097152;上載文件的最大字節(jié) (關(guān)于mysql的設(shè)置)mysql.default_host = localhost; mysql.default_user = root; mysql.default_password= yourpasswd; 以上(在您使用include函數(shù)時,只有被指定的目錄下的文件才可以被包含)include_path = path1;path2;path3.... (只有c:php4test目錄下面的php文件才可以執(zhí)行)doc_root= c:php4test;;三、MySQL安裝(mysql-3.23.27-beta-win.zip)1. 先安裝mysql,默認安裝路徑為:c:mysql2. 打開“運行”輸入C:mysqlbinmysqld-nt.exe –install 3. 打開“管理工具”->“服務(wù)”,找到“mysql”服務(wù),啟動它。重啟windows2000。
標簽:
PHP
排行榜
