原來FreeBSD上的extension是mysql.so,我真是的XD
我現在的問題描述如下:
我在FreeBSD 5.3 Release上用ports安裝phpBB 2.0.10
安裝後的mySQL版本是5.0.0 alpha
原本http://localhost/phpBB2/install/install.php 的安裝的錯誤訊息是\r
The PHP configuration on your server doesn't support the database
type that you chose
於是我就follow ileadu 兄和style兄的指導
在 /usr/ports/lang/php5-extensions
make install
果然就多了mysql.so檔在/usr/local/lib/php/20040412/中\r
然後我把php.ini中的mysql extension uncomment,變成
extension =mysql.so
然後執行php -v
PHP Warning: Module 'mysql' already loaded in Unknown on line 0
看起來是已載入模組
但是我寫了一個index.php檔去跑
<?php
phpinfo();
?>
顯示的結果裡沒有mySQL相關的(我用ctrl+F去搜尋)
且
http://localhost/phpBB2/install/install.php 的安裝的錯誤訊息仍是\r
The PHP configuration on your server doesn't support the database
type that you chose
1. 請問各位,我該怎麼讓PHP支援mySQL 5.0.0 alpha
好讓phpBB能work呢?
(這一版的phpBB 2.0.10的安裝選單上只有到mySQL 4.x,我猜可能也是問題)
2. 我要怎麼知道php有沒有支援mySQL? (除了phpinfo(); #已試過,看不出來有)
謝謝