可以chrislin2k 寫:1)可否安裝phpbbs2?
這個問題我們就不要在這邊討論了 :Q2)如何安裝呢? 如果不行, 要如何安裝D 4.1呢?
假如我是安裝php-4.4.4-Win32.zip 和 mysql-4.0.26-win32.zip那引言部份要如何更改呢???引言回覆:
6. 再搜尋 extension=php_mysql.dll
把 extension=php_mysql.dll 前面的;去掉
使 MySQL 函數庫可以運行
引言回覆:
7. 再搜尋 ;session.save_path = "/tmp"
把 include_path 前面的;去掉
並在等號後 "/tmp" 取代成 "C:\Apache2\tmp"
使用檔案總管在你的C:\ 開新資料夾,名稱為 tmp
引言回覆:
8. 完成以上步驟後將 php.ini 存檔 (注意不要存成 php.ini.txt)
引言回覆:
9. 進入 C:\php 複製 libmysql.dll 與 php5ts.dll 到系統安裝目錄下的 system32
( WIN2000 預設是 C:\WINNT\system32,WIN XP 預設是C:\WINDOWS\system32)
php5ts.dll 以使您的 PHP 作為 Apache 的 PHP-Module
libmysql.dll 搭配步驟7的extension php_mysql.dll 後PHP5才能使用MySQL資料庫
引言回覆:
10. 開啟 Apache 的配置檔 httpd.conf
搜尋 DirectoryIndex index.html (設定預設首頁,可以更改前後順序將 index.php 加到 DirectoryIndex 後面 ,中間要空一格
於配置檔最後面加入以下內容存檔後關閉
# For PHP 5 do something like this:
LoadModule php5_module "c:/Apache2/php/php5apache2.dll"
AddType application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "c:/Apache2/php"
如我之前貼的~~chiouss 寫:你找不到什麼?說出來我給你一個痛快吧!pcrick 寫:假如我是安裝php-4.4.4-Win32.zip 和 mysql-4.0.26-win32.zip那引言部份要如何更改呢???
因為好幾個部驟都找不到代碼?
代碼: 選擇全部
7. 再搜尋 ;session.save_path = "/tmp"
代碼: 選擇全部
; session.save_path = "N;/path"
代碼: 選擇全部
複製 php5ts.dll 到系統安裝目錄下的 system32
代碼: 選擇全部
於配置檔最後面加入以下內容存檔後關閉
# For PHP 5 do something like this:
LoadModule php5_module "c:/Apache2/php/php5apache2.dll"
AddType application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "c:/Apache2/php"
謝謝您的指點!!chiouss 寫:要會變通阿!你用的是 php4,你的檔案裡面的名稱就都是 php4 不會冒出 php5 Orz
代碼: 選擇全部
# For PHP 4 do something like this:
#LoadModule php5_module "c:/Apache2/php/php4ts.dll"
#AddType application/x-httpd-php .php
# configure the path to php.ini
#PHPIniDir "c:/Apache2/php"
代碼: 選擇全部
<?php
/* $Id: index.php,v 2.33.2.2 2006/04/20 14:14:19 nijel Exp $ */
// vim: expandtab sw=4 ts=4 sts=4:
/**
* forms frameset
*
* @uses libraries/common.lib.php global fnctions
* @uses libraries/relation.lib.php table relations
* @uses $GLOBALS['strNoFrames']
* @uses $GLOBALS['cfg']['QueryHistoryDB']
* @uses $GLOBALS['cfg']['Server']['user']
* @uses $GLOBALS['cfg']['DefaultTabServer'] as src for the mainframe
* @uses $GLOBALS['cfg']['DefaultTabDatabase'] as src for the mainframe
* @uses $GLOBALS['cfg']['LeftWidth'] for left frame width
* @uses $GLOBALS['collation_connection'] from $_REQUEST (grab_globals.lib.php)
* or common.lib.php
* @uses $GLOBALS['available_languages'] from common.lib.php (select_lang.lib.php)
* @uses $GLOBALS['db']
* @uses $GLOBALS['charset']
* @uses $GLOBALS['lang']
* @uses $GLOBALS['text_dir']
* @uses $_ENV['HTTP_HOST']
* @uses PMA_getRelationsParam()
* @uses PMA_purgeHistory()
* @uses PMA_generate_common_url()
* @uses PMA_VERSION
* @uses session_write_close()
* @uses time()
* @uses PMA_getenv()
* @uses header() to send charset
*/
/**
* Gets core libraries and defines some variables
*/
require_once('./libraries/common.lib.php');
/**
* Includes the ThemeManager if it hasn't been included yet
*/
require_once('./libraries/relation.lib.php');
// free the session file, for the other frames to be loaded
session_write_close();
// Gets the host name
// loic1 - 2001/25/11: use the new globals arrays defined with php 4.1+
if (empty($HTTP_HOST)) {
if (PMA_getenv('HTTP_HOST')) {
$HTTP_HOST = PMA_getenv('HTTP
以下略........
你沒有加上 AddType 的部份吧?pcrick 寫:但是解壓縮phpMyAdmin 至C:\Apache2\htdocs\phpMyAdmin 後,
開啟瀏覽器,輸入網址 http://localhost/phpMyAdmin/ ,
確直接看到PHP的程式碼= =....
是不是PHP沒有裝好啊???
我是照這裡改的!!!hankyuan 寫:innostr1am 寫:
於配置檔最後面加入以下內容存檔後關閉
# For PHP 5 do something like this:
LoadModule php5_module "c:/Apache2/php/php5apache2.dll"
AddType application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "c:/Apache2/php"
它裡面寫的也是錯的....
是...
# For PHP 5 do something like this:
#LoadModule php5_module "c:/Apache2/php/php5apache2.dll"
#AddType application/x-httpd-php .php
# configure the path to php.ini
#PHPIniDir "c:/Apache2/php"
才對....
剛剛去看了error.log , 發現問題好像是出在 AddType, 如下~~chiouss 寫:你沒有加上 AddType 的部份吧?
還有,你在 httpd.conf 裡面更改的東西,前面不要加 # 上去,那樣會變成註解...
不知道這要如何解決了??[Mon Oct 16 00:13:11 2006] [notice] Parent: Received restart signal -- Restarting the server.
Syntax error on line 958 of C:/Apache2/conf/httpd.conf:
Can't locate API module structure `php4_module' in file C:/Apache2/php/php4ts.dll: No error
[Mon Oct 16 00:13:12 2006] [warn] (OS 995)因為執行緒結束或應用程式要求,所以已中止 I/O 操作。 : winnt_accept: Asynchronous AcceptEx failed.
[Mon Oct 16 00:13:12 2006] [notice] Child 1672: Released the start mutex
[Mon Oct 16 00:13:13 2006] [notice] Child 1672: Waiting for 250 worker threads to exit.
[Mon Oct 16 00:13:13 2006] [notice] Child 1672: All worker threads have exited.
[Mon Oct 16 00:13:13 2006] [notice] Child 1672: Child process is exiting