[問題]一直無法安裝成功,不知道哪裡出錯了? (已解決,謝謝!)

phpBB Installation & Usage Support
phpBB 2 安裝於各類型作業平台之問題討論;外掛問題,請到相關版面依發問格式發表!
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

版面規則
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
主題已鎖定
SCEA
星球普通子民
星球普通子民
文章: 4
註冊時間: 2007-03-26 13:59

[問題]一直無法安裝成功,不知道哪裡出錯了? (已解決,謝謝!)

文章 SCEA »

主機系統及環境:
++++使用自有主機++++
●主機作業系統:Windows XP sp2
●WebServer:Apache 2.2.4(Win32)
●上網方式:Hinet ADSL 1M/64K
●安裝的程式:Apache 2.2.4(Win32) + PHP 5.2.1 + MySQL 5.0.37 + phpmyadmin 2.10.0.2 -> 採用獨立安裝

安裝教學文章參考此篇 http://phpbb-tw.net/phpbb/viewtopic.php?t=47322
參考了其他的文章,教學文章的一些小錯誤也都更正過了,而且也check了好多次,就是完全無法顯示,還請各位老師指點我一下,感恩!

整個安裝完之後,連 http://localhost/phpmyadmin 都連不上去,更別說是要安裝phpbb了,:-(
最後由 SCEA 於 2007-03-27 22:57 編輯,總共編輯了 1 次。
chiouss
竹貓忠實會員
竹貓忠實會員
文章: 1741
註冊時間: 2002-11-29 18:19

文章 chiouss »

你沒說到重點 :-o
SCEA
星球普通子民
星球普通子民
文章: 4
註冊時間: 2007-03-26 13:59

文章 SCEA »

不好意思,沒有將問題說清楚。
依照教學文章小弟安裝過程如下:

1. 安裝Apache 2.2.4
將目錄安裝於 C:\Apache2 ,完成後並配置系統環境變數,
新增變數名:「APACHE2_HOME」與設定變數值:「C:\Apache2」,
最後開啟瀏覽器輸入 http://localhost/ 測試結果顯示 "It works!"
2. 安裝MySQL 5.0.37
將目錄安裝於 C:\Apache2\MySQL ,完後後並設定 my.ini,
將「[mysql]」下的「default-character-set=latin1」,
取代為「default-character-set=utf8」
3. 安裝 PHP 5.2.1
a. 解壓縮「php-5.2.1-Win32.zip」到「C:\Apache2\php」

b. 將「php.ini-dist」檔案名稱更改為「php.ini」

c. 用文字編蜎器開啟「php.ini」
搜尋「register_globals = Off」,改成「register_globals = On」
搜尋「;include_path = ".;c:\php\includes"」,改成「include_path = "C:\Apache2\htdocs"」
搜尋「doc_root =」,改成「doc_root = "C:\Apache2\htdocs"」
搜尋「extension_dir = "./"」,改成「extension_dir = "C:\Apache2\php\ext"」
搜尋「;extension=php_mbstring.dll」,改成「extension=php_mbstring.dll」
搜尋「;extension=php_mysql.dll」,改成「extension=php_mysql.dll」
搜尋「;session.save_path = "/tmp"」,改成「session.save_path = "C:\Apache2\temp"」
並在 Apache2 目錄下新建一名為「temp」的資料夾
將 php.ini 存檔

d. 複製 C:\Apache2\php 下的「libmysql.dll、php5ts.dll」 到 C:\WINDOWS\system32

e. 開啟 Apache 的配置檔 httpd.conf (在 C:\Apache2\conf\ )
搜尋「DirectoryIndex index.html」,更改為「DirectoryIndex index.html index.php」
並將下面內容加入配置檔的最後面
# For PHP 5 do something like this:
# LoadModule php5_module "c:/Apache2/php/php5apache2_2.dll"
# AddType application/x-httpd-php .php

# configure the path to php.ini
# PHPIniDir "c:/Apache2/php"

f. 配置系統環境變數
編輯變數名:「PATH」
加入變數值:「C:\apache2\php\;C:\apache2\php\ext\;C:\Apache2\MySQL\bin;%PATH%」
4. 安裝phpMyAdmin 2.10.0.2
a. 解壓縮 phpMyAdmin-2.10.0.2-all-languages.zip 至C:\Apache2\htdocs\phpMyAdmin

b. 複製 C:\Apache2\htdocs\phpMyAdmin\config.sample.inc.php
到 C:\Apache2\htdocs\phpMyAdmin\,並變更檔名為「config.inc.php」

c. 用文字編輯器開啟 config.inc.php 編輯
搜尋「$cfg['Servers'][$i]['auth_type'] = 'cookie';」,改成「$cfg['Servers'][$i]['auth_type'] = 'http';」
搜尋「$cfg['Servers'][$i]['controluser'] = 'pma';」,改成「$cfg['Servers'][$i]['controluser'] = 'root';」
搜尋「$cfg['Servers'][$i]['controlpass'] = 'pmapass';」,改成「$cfg['Servers'][$i]['controlpass'] = '輸入和 MySQL 資料庫一樣的密碼';」

d. 開啟瀏覽器,並在網址列輸入 http://localhost/phpmyadmin 進入 phpMyAdmin

問題來了,最後我開啟瀏覽器輸入 http://localhost/phpmyadmin 不論用IE或是火狐,網頁都是沒反應,不知道我是哪裡的設定有問題?

不知道我這樣解釋,各位先進知道我的意思了嗎?
chiouss
竹貓忠實會員
竹貓忠實會員
文章: 1741
註冊時間: 2002-11-29 18:19

文章 chiouss »

先看 log
SCEA
星球普通子民
星球普通子民
文章: 4
註冊時間: 2007-03-26 13:59

文章 SCEA »

奇怪,設定有更改應該只需要將Apache Restart 就可以了不是嗎?

怎麼小弟我重新開機後,瀏覽器輸入 http://localhost/phpmyadmin 時,卻出現不一樣的結果

現在有出現下列的一堆字了,結果如下
<?php
/* $Id: index.php 9832 2007-01-09 09:50:49Z nijel $ */
// 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']['NaviWidth'] for navi 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_HOST');
} else {
$HTTP_HOST = '';
}
}


// purge querywindow history
$cfgRelation = PMA_getRelationsParam();
if ($GLOBALS['cfg']['QueryHistoryDB'] && $cfgRelation['historywork']) {
PMA_purgeHistory( $GLOBALS['cfg']['Server']['user'] );
}
unset($cfgRelation);


/**
* pass variables to child pages
*/
$drops = array('lang', 'server', 'convcharset', 'collation_connection',
'db', 'table');

foreach ($drops as $each_drop) {
if (! array_key_exists($each_drop, $_GET)) {
unset($_GET[$each_drop]);
}
}
unset($drops, $each_drop);

if (! isset($GLOBALS['db']) || ! strlen($GLOBALS['db'])) {
$main_target = $GLOBALS['cfg']['DefaultTabServer'];
} elseif (! isset($GLOBALS['table']) || ! strlen($GLOBALS['table'])) {
$_GET['db'] = $GLOBALS['db'];
$main_target = $GLOBALS['cfg']['DefaultTabDatabase'];
} else {
$_GET['db'] = $GLOBALS['db'];
$_GET['table'] = $GLOBALS['table'];
$main_target = $GLOBALS['cfg']['DefaultTabTable'];
}

$url_query = PMA_generate_common_url($_GET);

if (isset($GLOBALS['target']) && is_string($GLOBALS['target']) && !empty($GLOBALS['target']) && in_array($GLOBALS['target'], $goto_whitelist)) {
$main_target = $GLOBALS['target'];
}

$main_target .= $url_query;

$lang_iso_code = $GLOBALS['available_languages'][$GLOBALS['lang']][2];


// start output
header('Content-Type: text/html; charset=' . $GLOBALS['charset']);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="<?php echo $lang_iso_code; ?>"
lang="<?php echo $lang_iso_code; ?>"
dir="<?php echo $GLOBALS['text_dir']; ?>">
<head>
<link rel="icon" href="./favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
<title>phpMyAdmin <?php echo PMA_VERSION; ?> -
<?php echo htmlspecialchars($HTTP_HOST); ?></title>
<meta http-equiv="Content-Type"
content="text/html; charset=<?php echo $GLOBALS['charset']; ?>" />
<script type="text/javascript" language="javascript">
// <![CDATA[
// definitions used in querywindow.js
var common_query = '<?php echo PMA_escapeJsString(PMA_generate_common_url('', '', '&'));?>';
var opendb_url = '<?php echo PMA_escapeJsString($GLOBALS['cfg']['DefaultTabDatabase']); ?>';
var safari_browser = <?php echo PMA_USR_BROWSER_AGENT == 'SAFARI' ? 'true' : 'false' ?>;
var querywindow_height = <?php echo PMA_escapeJsString($GLOBALS['cfg']['QueryWindowHeight']); ?>;
var querywindow_width = <?php echo PMA_escapeJsString($GLOBALS['cfg']['QueryWindowWidth']); ?>;
var collation_connection = '<?php echo PMA_escapeJsString($GLOBALS['collation_connection']); ?>';
var lang = '<?php echo PMA_escapeJsString($GLOBALS['lang']); ?>';
var server = '<?php echo PMA_escapeJsString($GLOBALS['server']); ?>';
var table = '<?php echo PMA_escapeJsString($GLOBALS['table']); ?>';
var db = '<?php echo PMA_escapeJsString($GLOBALS['db']); ?>';
var text_dir = '<?php echo PMA_escapeJsString($GLOBALS['text_dir']); ?>';
var pma_absolute_uri = '<?php echo PMA_escapeJsString($GLOBALS['cfg']['PmaAbsoluteUri']); ?>';
// ]]>
</script>
<script src="./js/querywindow.js" type="text/javascript" language="javascript">
</script>
</head>
<frameset cols="<?php
if ($GLOBALS['text_dir'] === 'rtl') {
echo '*,';
}
echo $GLOBALS['cfg']['NaviWidth'];
if ($GLOBALS['text_dir'] === 'ltr') {
echo ',*';
}
?>" rows="*" id="mainFrameset">
<?php if ($GLOBALS['text_dir'] === 'ltr') { ?>
<frame frameborder="0" id="frame_navigation"
src="navigation.php<?php echo $url_query; ?>"
name="frame_navigation" />
<?php } ?>
<frame frameborder="0" id="frame_content"
src="<?php echo $main_target; ?>"
name="frame_content" />
<?php if ($GLOBALS['text_dir'] === 'rtl') { ?>
<frame frameborder="0" id="frame_navigation"
src="navigation.php<?php echo $url_query; ?>"
name="frame_navigation" />
<?php } ?>
<noframes>
<body>
<p><?php echo $GLOBALS['strNoFrames']; ?></p>
</body>
</noframes>
</frameset>
<script type="text/javascript" language="javascript">
// <![CDATA[
<?php if ($GLOBALS['text_dir'] === 'ltr') { ?>
var frame_content = window.frames[1];
var frame_navigation = window.frames[0];
<?php } else { ?>
var frame_content = window.frames[0];
var frame_navigation = window.frames[1];
<?php } ?>
// ]]>
</script>
</html>
~倉木麻衣~
竹貓忠實會員
竹貓忠實會員
文章: 1405
註冊時間: 2004-03-21 21:00

文章 ~倉木麻衣~ »

SCEA 寫: e. 開啟 Apache 的配置檔 httpd.conf (在 C:\Apache2\conf\ )
搜尋「DirectoryIndex index.html」,更改為「DirectoryIndex index.html index.php」
並將下面內容加入配置檔的最後面
# For PHP 5 do something like this:
# LoadModule php5_module "c:/Apache2/php/php5apache2_2.dll"
# AddType application/x-httpd-php .php

# configure the path to php.ini
# PHPIniDir "c:/Apache2/php"
光看這個步驟就知道是錯的了
而且我怎看不出你所參考的教學文件是這樣子教的
謝絕所有私人訊息詢問外掛相關問題
有問題請直接於版上發表, 集思廣議絕對比專挑特定人士詢問來的好

竹貓禁止發表含破解相關的軟體, 違者砍文
不要跟我講別的地方都可以發, 為什麼竹貓就不行
免費不等於破解, 傻傻的搞不清楚
SCEA
星球普通子民
星球普通子民
文章: 4
註冊時間: 2007-03-26 13:59

文章 SCEA »

~倉木麻衣~ 寫:
SCEA 寫: e. 開啟 Apache 的配置檔 httpd.conf (在 C:\Apache2\conf\ )
搜尋「DirectoryIndex index.html」,更改為「DirectoryIndex index.html index.php」
並將下面內容加入配置檔的最後面
# For PHP 5 do something like this:
# LoadModule php5_module "c:/Apache2/php/php5apache2_2.dll"
# AddType application/x-httpd-php .php

# configure the path to php.ini
# PHPIniDir "c:/Apache2/php"
光看這個步驟就知道是錯的了
而且我怎看不出你所參考的教學文件是這樣子教的
謝謝喔,因為我check了很多次,也更改了許多次,但是一直都沒成功。

其實我還有參考另一篇, http://phpbb-tw.net/phpbb/viewtopic.php?t=45056

裡面5樓的大大是這樣寫的,所以因為一值都沒試成功,所以最後誤以為這樣才是對的 :oops:

試了一天終於成功了,原來是因為更改設定後要重新開機,去掉上面的3個#後重新開機,結果可以進去了,謝謝"chiouss" & "~倉木麻衣~" 的指導,感恩!

最後小弟我還想請問一下,是不是更改設定就非得要重新開機啊,還是說清除cookies就可以了,試過好像也不行唷,有沒有別的辦法呢? 請教各位,謝謝。:-P
chiouss
竹貓忠實會員
竹貓忠實會員
文章: 1741
註冊時間: 2002-11-29 18:19

文章 chiouss »

SCEA 寫:最後小弟我還想請問一下,是不是更改設定就非得要重新開機啊,還是說清除cookies就可以了,試過好像也不行唷,有沒有別的辦法呢? 請教各位,謝謝。:-P
要 restart Apache。清 cookie 是看你的網頁有沒有需要...
主題已鎖定

回到「phpBB 2 安裝與使用」