[問題]安裝完PHP+MySql+Apache後(已解決)

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

版主: 版主管理群

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

[問題]安裝完PHP+MySql+Apache後(已解決)

文章 楊師維 »

在依教學安裝完後(php4.38版,MySql5.0.0版,Apache2.0.5版)
以及安裝完phpbb2.x版後
開啟http://localhost/phpbb2/install/install.php
結果ie開出來的是程式碼...無法安裝(如下)
請問大大門要如何解決 :-?
----------------------------------------------------
<?php
<?php
/***************************************************************************
* install.php
* -------------------
* begin : Tuesday, Sept 11, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id: install.php,v 1.6.2.12 2003/05/17 17:32:25 acydburn Exp $
*
***************************************************************************/

/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
...................(以下省略)
最後由 楊師維 於 2004-08-15 22:03 編輯,總共編輯了 1 次。
webspirit
竹貓忠實會員
竹貓忠實會員
文章: 1354
註冊時間: 2004-02-16 12:01
來自: 精靈國度

文章 webspirit »

若想得到協助\r
快補上發問格式
而且你的問題有點莫名其妙
楊師維 寫:安裝完phpbb2.x版後
那還執行install.php幹嘛?
楊師維
星球普通子民
星球普通子民
文章: 20
註冊時間: 2004-08-15 11:23

文章 楊師維 »

抱歉 口誤 :-o
是下載zip解壓縮完而已\r
我在教學區照教學方法 將解壓縮後的檔案放置htdocs
然後以ie開啟install.php
開出來 內容為php的程式碼 而不是執行install.php
webspirit
竹貓忠實會員
竹貓忠實會員
文章: 1354
註冊時間: 2004-02-16 12:01
來自: 精靈國度

文章 webspirit »

楊師維
星球普通子民
星球普通子民
文章: 20
註冊時間: 2004-08-15 11:23

文章 楊師維 »

架設主機作業系統:Windows 2000 Pro
上網方式:Hinet 2M/256 ADSL
您安裝的程式:Apache2.0.50 + php4.3.8 + MySql5.0.0
phpBB2 版本:phpBB 2.0.10
問題:
不知為何這個php檔能開啟
http://phpbb-tw.net/phpbb/viewtopic.php?t=16149
而phpbb2/install.php卻開啟不了 ,以ie開起後如下---
<?php
/***************************************************************************
* install.php
* -------------------
* begin : Tuesday, Sept 11, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id: install.php,v 1.6.2.12 2003/05/17 17:32:25 acydburn Exp $
*
***************************************************************************/

/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/

// ---------
// FUNCTIONS
//
function page_header($text, $form_action = false)
{
global $phpEx, $lang;

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $lang['ENCODING']; ?>">
<meta http-equiv="Content-Style-Type" content="text/css">
<title><?php echo $lang['Welcome_install'];?></title>
<link rel="stylesheet" href="../templates/subSilver/subSilver.css" type="text/css">
<style type="text/css">
<!--
th { background-image: url('../templates/subSilver/images/cellpic3.gif') }
td.cat { background-image: url('../templates/subSilver/images/cellpic1.gif') }
td.rowpic { background-image: url('../templates/subSilver/images/cellpic2.jpg'); background-repeat: repeat-y }
td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom { background-image: url('../templates/subSilver/images/cellpic1.gif') }

/* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */
@import url("../templates/subSilver/formIE.css");
//-->
</style>
</head>
<body bgcolor="#E5E5E5" text="#000000" link="#006699" vlink="#5584AA">

<table width="100%" border="0" cellspacing="0" cellpadding="10" align="center">
<tr>
<td class="bodyline" width="100%"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="../templates/subSilver/images/logo_phpBB.gif" border="0" alt="Forum Home" vspace="1" /></td>
<td align="center" width="100%" valign="middle"><span class="maintitle"><?php echo $lang['Welcome_install'];?></span></td>
</tr>
</table></td>
</tr>
<tr>
<td><br /><br /></td>
</tr>
<tr>
<td colspan="2"><table width="90%" border="0" align="center" cellspacing="0" cellpadding="0">
<tr>
<td><span class="gen"><?php echo $text; ?></span></td>
</tr>
</table></td>
</tr>
(........原始檔過長,略)
問題狂
竹貓忠實會員
竹貓忠實會員
文章: 1947
註冊時間: 2004-06-28 17:13

文章 問題狂 »

請看這篇教學:
http://dob.tnc.edu.tw/themes/old/showPa ... s=1886&t=1
出自:DoB網頁建構百寶箱
楊師維
星球普通子民
星球普通子民
文章: 20
註冊時間: 2004-08-15 11:23

文章 楊師維 »

問題狂 寫:請看這篇教學:
http://dob.tnc.edu.tw/themes/old/showPa ... s=1886&t=1
出自:DoB網頁建構百寶箱
我開啟的方法是以htpp://........來開啟
看是文章說的"沒啟動php引擎" 小弟我不太懂
php不是解壓縮後就啟動了嗎 還是有額外的其他指令呢?
webspirit
竹貓忠實會員
竹貓忠實會員
文章: 1354
註冊時間: 2004-02-16 12:01
來自: 精靈國度

文章 webspirit »

重裝PHP
問題狂
竹貓忠實會員
竹貓忠實會員
文章: 1947
註冊時間: 2004-06-28 17:13

文章 問題狂 »

埃..建議你用Appserv好了..
要不然看下面: (出自DOB網頁建構百寶箱 By 工友 )
工友 寫: 到這裡為止,存檔後,Apache已經算是安裝完畢,不過為了省事起見,若您是第一次安裝Apache,那麼請在該檔的最後面,加入以下三行,這三行的用意便是教Apache認識PHP,並告訴Apache遇到PHP類型的檔案應該要去找誰來作編譯的工作。:

代碼: 選擇全部

ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php .php3
Action application/x-httpd-php "/php/php.exe" 
http://dob.tnc.edu.tw/themes/old/showPa ... 49&t=1&at=

我不大確定問題是不是這裡..試試看吧~
楊師維
星球普通子民
星球普通子民
文章: 20
註冊時間: 2004-08-15 11:23

文章 楊師維 »

可以了
謝謝兩位厲害大大喔 :mrgreen:
webspirit
竹貓忠實會員
竹貓忠實會員
文章: 1354
註冊時間: 2004-02-16 12:01
來自: 精靈國度

文章 webspirit »

我一點都不厲害
問題狂大哥才厲害
恭喜 ^^
主題已鎖定

回到「phpBB 2 安裝與使用」