Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 5340 to server version: 3.23.54
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> CREATE DATABASE databasename;
Query OK, 1 row affected (0.00 sec)
mysql> GRANT ALL PRIVILEGES ON databasename.* TO "dolphinusername"@"hostname" IDENTIFIED BY "password";
Query OK, 0 rows affected (0.00 sec)
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.01 sec)
Bye
其中“adminusername”用root登陸,“databasename”和“dolphinusername”都可以是dolphin這個容易記得名稱,"hostname"通常情況下是localhost
3、在這一步我們得確定把dolphin的安裝腳本裝到哪個地方了,
(1)可以安裝到網站根目錄(如:www.mysite.com),
(2)也可以安裝到網站的子目錄下(如:www.mysite.com/mycommunity)
你可以進入到http.conf文件中,查看網站的根目錄是哪個。我的網站根目錄是/usr/local/apache2/htdocs,於是我把解壓出來的dolphin文件中所有的內容都移動到htdocs
用mv命令移動文檔:mv /usr/local/src/Dolphin-v.x.x/* /usr/local/apache2/htdocs
4、然後開始安裝dolphin腳本程序
在web瀏覽器上輸入:http://www.codepartners.com.cn/install/index.php,
單擊“安裝”,這時需要我們爲一些文檔添加權限了
5、在安裝過程中的第一頁,有一些文件和文件夾需要讀寫執行的權限,那麼就需要我們爲這些文件添加權限了
(1)現在我們用shell賬號登陸到shell客戶端,在網站根目錄下也就是htdocs,爲dolphin腳本添加權限
chmod 777 ./inc ./backup ./cache ./cache_public ./langs ./media/app ./media/images ./media/images/banners ./media/images/blog ./media/images/classifieds ./media/images/membership ./media/images/profile ./media/images/profile_bg ./media/images/promo ./media/images/promo/original ./tmp ./plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer ./plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/HTML ./plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/CSS ./plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/Test ./plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/URI
chmod 777 ./flash/modules/board/files ./flash/modules/chat/files ./flash/modules/photo/files ./flash/modules/im/files ./flash/modules/mp3/files ./flash/modules/video/files ./flash/modules/video_comments/files
chmod 666 inc/prof.inc.php
chmod 666 ./flash/modules/global/data/integration.dat ./flash/modules/board/xml/config.xml ./flash/modules/board/xml/langs.xml ./flash/modules/board/xml/main.xml ./flash/modules/board/xml/skins.xml ./flash/modules/chat/xml/config.xml ./flash/modules/chat/xml/langs.xml ./flash/modules/chat/xml/main.xml ./flash/modules/chat/xml/skins.xml ./flash/modules/desktop/xml/config.xml ./flash/modules/desktop/xml/langs.xml ./flash/modules/desktop/xml/main.xml ./flash/modules/desktop/xml/skins.xml ./flash/modules/global/xml/config.xml ./flash/modules/global/xml/main.xml ./flash/modules/im/xml/config.xml ./flash/modules/im/xml/langs.xml ./flash/modules/im/xml/main.xml ./flash/modules/im/xml/skins.xml ./flash/modules/mp3/xml/config.xml ./flash/modules/mp3/xml/langs.xml ./flash/modules/mp3/xml/main.xml ./flash/modules/mp3/xml/skins.xml ./flash/modules/photo/xml/config.xml ./flash/modules/photo/xml/langs.xml ./flash/modules/photo/xml/main.xml ./flash/modules/photo/xml/skins.xml ./flash/modules/video/xml/config.xml ./flash/modules/video/xml/langs.xml ./flash/modules/video/xml/main.xml ./flash/modules/video/xml/skins.xml ./flash/modules/video_comments/xml/config.xml ./flash/modules/video_comments/xml/langs.xml ./flash/modules/video_comments/xml/main.xml ./flash/modules/video_comments/xml/skins.xml
chmod 777 flash/modules/global/app/ffmpeg.exe
注意:在dolphin安裝文件夾中其他文件夾的權限爲644,子文件夾應有755的權限
(2)如果php在unix系統中,作爲CGI運行,所有的文件夾應該有755的權限和所有的文件應該有644的權限,執行文件如ffmpeg應該有755的權限
要快速的做到這一點,在你的dolphin安裝文件夾下你可以運行以下命令:
find ./ -type d –exec chmod 755 {} \;
find ./ -type f –exec chmod 644 {} \;
chmod 755 flash/modules/global/app/ffmpeg.exe
(3)如果你的網站是在windows系統下安裝,那麼就需要改變任何權限了
2.當所有的文件和文件夾都給加完權限後,這是單擊“check”,看是否有權限沒有給全的,若弄好後,單擊“next”
3、在第三頁你將指定數據庫信息
其中:
Database host port number爲3306
Database socket path 你可以不填,如果想填寫的話,你可以進入到你mysql安裝目錄中用bin/mysqladmin version查看
Database name爲dolphin
Database password爲你爲dolphin配置的密碼,
填好後單擊“next”
4、配置好後,單擊“next”
5、cron jobs
在linux shell下輸入以下命令
#crontab –e
然後在出現的界面中輸入:
[email protected]
* * * * * cd /var/local/apache/htdocs/periodic; /usr/bin/php -q cron.php
在windows環境中
(1)創建cron的批處理文件
例如:c:\wamp\www\periodic\cron.bat
(2)、在這個批處理文件中這樣寫道:
schtasks /Create /tn dolphin_cron /sc MINUTE /mo 1 /tr c:\wamp\www\periodic\cron.bat (to run every minute)
6、然後給inc文件755的權限
#chmod 755 .inc之後單擊“next”
到了這一步爲了網站的安全性,你可以把安裝文件給刪除了,要不然豈不是每個人都可以在你們的服務器上安裝了,吼吼
7、完成安裝
註冊你的序列號:
登錄到你的網站,如:http://dol.codepartners.com.cn/administration當你登陸成功後,他會提示你註冊,然後把你的序列號寫進去,點擊註冊,就會進入管理界面
插曲:如果你在安裝完腳本後出現以下相似的錯誤Warning: phpinfo()[function.phpinfo]:Itisnot safe to rely on the system's
timezone settings. You are *required* to use the date.timezone setting or the
date_default_timezone_set() function. In case you used any of those methods
and you are still getting this warning, you most likely misspelled the
timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST'
instead in /Users/{me}/Sites/localmirror/htdocs/tests/phpinfo.php on line 3
那麼你可以在錯誤中給你提示的文檔中,比如tests/phpinfo.php文檔中,加入以下語句,
<?php
if(date_default_timezone_set('Europe/Stockholm')==0){
print"<!-- Error uknown timezone using UTC as default -->\n";
date_default_timezone_set('UTC');
}
phpinfo();
?>
就可以解決了。
當然,如果覺得免費的序列號用着不爽,你也可以更換各收費的玩玩,嘿嘿,設置方法如下
Settings -> Advanced Settings -> Variables,在Dolphin License Code下輸入新的序列號,然後保存退出就可以了
(1)安裝模塊
在Tools——>Modules這個選項卡中,你可以看見有哪些模塊已經安裝,哪些模塊沒有安裝,當然默認情況下是沒有任何模塊安裝的,這時就需要你手工進行安裝了,那麼下面開始安裝吧
在安裝的時候,若你的php是作爲apache的一個模塊來運行的話,那麼爲了能夠安裝某些模塊你必須改變些文件權限,如下所示:
chmod 777 modules/boonex/avatar/data/images/ modules/boonex/avatar/data/tmp/
chmod 777 modules/boonex/forum/classes modules/boonex/forum/conf modules/boonex/forum/layout modules/boonex/forum/log modules/boonex/forum/js modules/boonex/forum/cachejs modules/boonex/forum/data/attachments
chmod 777 modules/boonex/photos/data/files
chmod 777 modules/boonex/files/data/files
chmod 777 modules/boonex/desktop/file
chmod 777 modules/boonex/profile_customize/data/images
chmod 666 modules/boonex/profiler/log/profiler.log
不過在你的服務器中如果php是運行在CGI模式下,你可以跳過以上步驟的。
現在你需要檢查下你所需安裝的所有模塊,他們之中有的依賴別的模塊,這就需要我們幾個幾個的安裝了,也需要你注意,若是一些模塊安裝不成功,會在Operation Results空間這個地方顯示些錯誤信息的,我們要在第一時間解決,以至於不影響下面模塊的安裝,當所有的模塊都安裝好後,那麼恭喜你,dolphin已經安裝成功了,吼吼吼O(∩_∩)O哈哈哈~