AppServ 2.4.6安裝法
---------------------------------
架設環境:
# AppServ 2.4.6 Apache 2.0.58
# MySQL 5.0.22
# PHP 4.4.2
# phpMyAdmin-2.8.2
----------------------------------
教學法:
1.安裝 AppServ 2.4.6
2.以root帳號登入,並建立新帳號 aaa (localhost/%),選擇不要密碼
3.去更改config.ini.php中的
第31行 $cfg['PmaAbsoluteUri'] = 'http://localhost/phpMyAdmin';
第71-74行 $cfg['Servers'][$i]['auth_type'] = 'http'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = ''; // MySQL user
$cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed
// with 'config' auth_type)
4.到DOS模式下
切換到c:\AppServ\www\mysql\bin
輸入mysql –u aaa –p
密碼輸入(不用密碼直接按Enter鍵)
MySQL的文字操作環境後就會出現
mysql>
並且輸入
mysql> SET PASSWORD FOR 'aaa'@'localhost' = OLD_PASSWORD('1234');
mysql> SET PASSWORD FOR 'aaa'@'%' = OLD_PASSWORD('1234');
更改密碼完畢
5.再開啟網頁,就可以用新帳號及密碼登入了
---------------------------------
問題:
順便請教各位一個問題~~
登入phpMyAdmin以後...為何會出現..."不知名語言: zh-tw."???
而這樣的狀況會造成在phpMyAdmin那邊的Language欄位中,不管選擇哪一種語言,都會跳回"中文-Chinese traditional".
目前已經試過用站上現有的教學法來更改成為utf8,結果會造成帳號無法登入的現象
(http://phpbb-tw.net/phpbb/viewtopic.php ... 0&start=30)
以下提供自己的 C:\Appserv\Mysql\my.ini 檔案給各位大大參考
# CLIENT SECTION
# ----------------------------------------------------------------------
#
# The following options will be read by MySQL client applications.
# Note that only client applications shipped by MySQL are guaranteed
# to read this section. If you want your own MySQL client program to
# honor these values, you need to specify it as an option during the
# MySQL client library initialization.
#
[client]
port=3306
[mysql]
default-character-set=latin1
我把上面的latin1改成utf8
再來
# SERVER SECTION
# ----------------------------------------------------------------------
#
# The following options will be read by the MySQL Server. Make sure that
# you have installed the server correctly (see above) so it reads this
# file.
#
[mysqld]
# The TCP/IP Port the MySQL Server will listen on
port=3306
#Path to installation directory. All paths are usually resolved relative to this.
basedir="C:/AppServ/MySQL"
#Path to the database root
datadir="C:/AppServ/MySQL/data/"
# The default character set that will be used when a new schema or table is
# created and no character set is defined
default-character-set=latin1
我把上面的latin1改成utf8
更改完以後重新開機的結果就是,原本已經可以使用的新帳號,變成無法登入!!
煩請各位大大們幫忙指導一下~~
謝謝~~~
[教學] AppServ 2.4.6迅速安裝法(已經解決帳號問題)
版主: 版主管理群
Re: [教學] AppServ 2.4.6迅速安裝法(已經解決帳號問題)
你的 phpMyAdmin 是 Appserv 附的還是去官方網站抓的呢?您修改過的 config.inc.php 或是 config.default.php 裡面哪些內容?(建議放在網路上讓大家下載來看?)gutman 寫:登入phpMyAdmin以後...為何會出現..."不知名語言: zh-tw."???
而這樣的狀況會造成在phpMyAdmin那邊的Language欄位中,不管選擇哪一種語言,都會跳回"中文-Chinese traditional".
這個問題太神奇了,我相信站上應該至少有 10+ 個用 utf8 的都沒碰過這個問題。你不能登入的錯誤訊息或是畫面呢?目前已經試過用站上現有的教學法來更改成為utf8,結果會造成帳號無法登入的現象
最後由 chiouss 於 2006-08-28 02:54 編輯,總共編輯了 1 次。
Re: [教學] AppServ 2.4.6迅速安裝法(已經解決帳號問題)
請教一下您修改 第31行 $cfg['PmaAbsoluteUri'] = 'http://localhost/phpMyAdmin'; 的用意是 ??gutman 寫:AppServ 2.4.6安裝法
---------------------------------
架設環境:
# AppServ 2.4.6 Apache 2.0.58
# MySQL 5.0.22
# PHP 4.4.2
# phpMyAdmin-2.8.2
----------------------------------
教學法:
1.安裝 AppServ 2.4.6
2.以root帳號登入,並建立新帳號 aaa (localhost/%),選擇不要密碼
3.去更改config.ini.php中的
第31行 $cfg['PmaAbsoluteUri'] = 'http://localhost/phpMyAdmin';
第71-74行 $cfg['Servers'][$i]['auth_type'] = 'http'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = ''; // MySQL user
$cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed
// with 'config' auth_type)
Re: [教學] AppServ 2.4.6迅速安裝法(已經解決帳號問題)
t54185 寫:請教一下您修改 第31行 $cfg['PmaAbsoluteUri'] = 'http://localhost/phpMyAdmin'; 的用意是 ??
簡單的說,就是把你 phpmyadmin 的 URL 填進去。$cfg['PmaAbsoluteUri'] string
Sets here the complete URL (with full path) to your phpMyAdmin installation's directory. E.g. http://www.your_web.net/path_to_your_phpMyAdmin_directory/. Note also that the URL on some web servers are case–sensitive. Don't forget the trailing slash at the end.
這段是告訴你說,一般而言這個設定留空白就好 (然後下面那個 $cfg['PmaNoRelation_DisableWarning'] 要設 true),除非你的機器狀況特殊,用 php script 會抓錯 URL,這時候你就需要指定位置給它。裡面有提到一個用 port forward 的 case。Starting with version 2.3.0, it is advisable to try leaving this blank. In most cases phpMyAdmin automatically detects the proper setting. Users of port forwarding will need to set PmaAbsoluteUri (more info). A good test is to browse a table, edit a row and save it. There should be an error message if phpMyAdmin is having trouble auto–detecting the correct value. If you get an error that this must be set or if the autodetect code fails to detect your path, please post a bug report on our bug tracker so we can improve the code.
Re: [教學] AppServ 2.4.6迅速安裝法(已經解決帳號問題)
恩 終於了解用意了 呼....之前看了置頂文章以為是跟安全性有關>"<害我好緊張...chiouss 寫:t54185 寫:請教一下您修改 第31行 $cfg['PmaAbsoluteUri'] = 'http://localhost/phpMyAdmin'; 的用意是 ??簡單的說,就是把你 phpmyadmin 的 URL 填進去。$cfg['PmaAbsoluteUri'] string
Sets here the complete URL (with full path) to your phpMyAdmin installation's directory. E.g. http://www.your_web.net/path_to_your_phpMyAdmin_directory/. Note also that the URL on some web servers are case–sensitive. Don't forget the trailing slash at the end.這段是告訴你說,一般而言這個設定留空白就好 (然後下面那個 $cfg['PmaNoRelation_DisableWarning'] 要設 true),除非你的機器狀況特殊,用 php script 會抓錯 URL,這時候你就需要指定位置給它。裡面有提到一個用 port forward 的 case。Starting with version 2.3.0, it is advisable to try leaving this blank. In most cases phpMyAdmin automatically detects the proper setting. Users of port forwarding will need to set PmaAbsoluteUri (more info). A good test is to browse a table, edit a row and save it. There should be an error message if phpMyAdmin is having trouble auto–detecting the correct value. If you get an error that this must be set or if the autodetect code fails to detect your path, please post a bug report on our bug tracker so we can improve the code.
不過又在你身上多學了一課 謝謝chiouss大大 ^^
Re: [教學] AppServ 2.4.6迅速安裝法(已經解決帳號問題)
這是我再搜尋引擎找的~因為我也跟你有同樣的問題!!gutman 寫:問題:
順便請教各位一個問題~~
登入phpMyAdmin以後...為何會出現..."不知名語言: zh-tw."???
而這樣的狀況會造成在phpMyAdmin那邊的Language欄位中,不管選擇哪一種語言,都會跳回"中文-Chinese traditional".
如果你是從 phpMyAdmin 2.6.0 以前的版本升級到 2.7.0 以後的版本時,就有可能會出現一個錯誤:不知名的語言: zh-tw
解決方法 :
代碼: 選擇全部
移除瀏覽器的 Cookie 後,再重新讀取 phpMyAdmin 的主畫面即可。Re: [教學] AppServ 2.4.6迅速安裝法(已經解決帳號問題)
qqabc 寫:這是我再搜尋引擎找的~因為我也跟你有同樣的問題!!gutman 寫:問題:
順便請教各位一個問題~~
登入phpMyAdmin以後...為何會出現..."不知名語言: zh-tw."???
而這樣的狀況會造成在phpMyAdmin那邊的Language欄位中,不管選擇哪一種語言,都會跳回"中文-Chinese traditional".
如果你是從 phpMyAdmin 2.6.0 以前的版本升級到 2.7.0 以後的版本時,就有可能會出現一個錯誤:不知名的語言: zh-tw
解決方法 :代碼: 選擇全部
移除瀏覽器的 Cookie 後,再重新讀取 phpMyAdmin 的主畫面即可。
*****SPAM*****!!這裡真是高手如雲...
感謝大大您的幫忙...
你的方法真的很有效!!謝謝你囉~~~
此外在下再向各位請教一個問題...
當我使用Appserv 2.4.6 版本時,再安裝php相關軟體時都沒有問題...
唯讀使用 Appserv 2.4.6 作為平台時....
要安裝php相關軟體時竟然會出現...
Apache Server HTTP 即將關閉...的視窗...
我個人是懷疑有可能是新版的Apache的相容信問題..
不曉得各位大大們是否有解決方法???
謝謝
Re: [教學] AppServ 2.4.6迅速安裝法(已經解決帳號問題)
完全看不懂你在說什麼...gutman 寫:此外在下再向各位請教一個問題...
當我使用Appserv 2.4.6 版本時,再安裝php相關軟體時都沒有問題...
唯讀使用 Appserv 2.4.6 作為平台時....
要安裝php相關軟體時竟然會出現...
Apache Server HTTP 即將關閉...的視窗...
前後兩句話都是 2.4.6 是想表達什麼嗎 Orz



