2009年11月29日 星期日

0

ubuntu server啟用使用者家目錄網頁

1./home/使用者名稱/public_html(建立一個使用者並於使用者下建一public_html目錄)
2.複製 /etc/apache2/mods-available下的userdir.load 及userdir.conf
到 /etc/apache2/mods-enabled 下
3.重新啟動apache2
service apache2 restart

2009年11月26日 星期四

0

xoops2.3.3b架設後換ip處理方式

請依以下您所用的XOOPS版本,刪掉資料夾下所有檔案( index.html除外 )


XOOPS 2.0.** :
templates_c


XOOPS 2.3.* 以上 :
/xoops_data/caches/smarty_compile/


本人測試後成功xoops 2.3.3b

2009年11月22日 星期日

0

安裝xoops2時少了gd影像函式庫

apt-get install php-gd
0

mysql建立資料庫

第一次設定mysql root 密碼

mysqladmin -u root password 'your.password'

mysql -u root -p
輸入密碼後進入mysql
mysql>

mysql>create database xoops2;
mysql>grant all privileges on xoops2.* to xoops2user@localhost identified by 'your.password' ;
mysql>exit

測試剛剛建立的資料庫與帳號是否可以使用:
mysql -u xoops2user -p
connect xoops2;
exit

2009年11月18日 星期三

0

在mysql中建立一個資料庫

create database xoops2;

grant all privileges on xoops2.* to xoops2user@localhost identified by '密碼' ;

exit