顯示具有 FreeBSD 標籤的文章。 顯示所有文章
顯示具有 FreeBSD 標籤的文章。 顯示所有文章

2013年12月23日 星期一

學校網址突然無法解析

作業系統:freebsd

tail -n 15 /var/log/messages | grep named

2012年2月6日 星期一

Freebsd修改學務系統佈告欄附件下載中文檔名問題

#安裝
cd /usr/ports/www/mod_fileiri
make install clean

#設定
ee /usr/local/etc/apache22/httpd.conf
LoadModule fileiri_module libexec/apache2/mod_fileiri.so <--拿掉前面的#

最後加入
<IfModule mod_fileiri.c>
FileIRI On
FilenameCharset Big5
</IfModule>

#重新啟動apache
/usr/local/etc/rc.d/apache22 restart

參考資料:
http://home.csjh.tcc.edu.tw/phpbbinf/viewtopic.php?t=4356&sid=939f9f3440fc2fb39fdb450d8fd27bdb

2010年12月19日 星期日

FreeBSD_8.1安裝SSL VPN紀錄(SSLexplorer)

SSLexplorer可以讓外部網路透過網頁登入的方式,存取組織內部特定網頁或資源(含程式)。

2010年12月17日 星期五

讓ostube支援php5.3與資料庫編碼設定

一、ostube支援php5.3
參考:ostube 2.6 在ubuntu 10.04上的php5.3問題解決方式

Freebsd8.1下的指令:官網說明文件有漏掉class.database.php檔
# cd /usr/local/www/apache22/data
# fetch http://jetzweb.de/bluelotus/auvica_temp/osTube-Update-for-PHP5.3.tar.gz
# tar zxvf osTube-Update-for-PHP5.3.tar.gz
# mv osTube-Update-for-PHP5.3/signup.php ostube/signup.php
# mv osTube-Update-for-PHP5.3/includes/class.login.php ostube/includes/class.login.php
# mv osTube-Update-for-PHP5.3/includes/class.mail.php ostube/includes/class.mail.php
# mv osTube-Update-for-PHP5.3/includes/header.php ostube/includes/header.php
# mv osTube-Update-for-PHP5.3/includes/class.database.php ostube/includes/class.database.php
# mv osTube-Update-for-PHP5.3/admin/header.php ostube/admin/header.php
# mv osTube-Update-for-PHP5.3/admin/moduls/tags.php ostube/admin/moduls/tags.php
# rm -rf osTube-Update-for-PHP5.3
# rm -f osTube-Update-for-PHP5.3.tar.gz


Freebsd8.1安裝AMP套件紀錄

一切從Freebsd8.1安裝完畢,且可以SSH遠端登入說起。
參考資料:


檔案下載:freebsd8_1安裝AMP實做

2010年9月27日 星期一

FreeBSD 8.1開啟VirtualHost

目的:我希望訪客連http://good.hwjh.ylc.edu.tw/
可以連入http://163.27.156.8/ostube/
前提:請先在DNS serve設好good給163.27.156.8

ee /usr/local/etc/apache22/httpd.conf
ctrl+y:# Virtual hosts
把#Include etc/apache22/extra/httpd-vhosts.conf的#拿掉
esc存檔

ee /usr/local/etc/apache22/extra/httpd-vhosts.conf

2010年9月23日 星期四

FreeBSD 8.1 實做rsync異機備份檔案

1.安裝
#cd /usr/ports/net/rsync       //切換到安裝路徑
#make install clean            //安裝並清除安裝過程中不必要的檔案

2.建立備份區
#mkdir /home/backup7          //建立備份目的區 (owner及group需配合rsyncd.conf)

2009年12月28日 星期一

FreeBSD小筆記-(3)安裝myadmin

安裝myadmin
#cd /usr/local/www/apache22/data
#fetch http://163.27.156.6/990101/myadmin.tar.gz
#tar zxvf myadmin.tar.gz
#mv myadmin 其他名稱 
#ee /usr/local/www/apache22/data/其他名稱/config.inc.php  改路徑

若出現錯誤



  升級php4-extensions
# portmaster -o /usr/ports/lang/php5-extensions php4-extensions-1.0
  Rebuild php5-pcre
#cd /usr/ports/devel/php5-pcre
#make deinstall rmconfig clean
#make build
#make install clean

重新啟動Apache
#/usr/local/etc/rc.d/apache22 restart

2009年12月19日 星期六

FreeBSD小筆記-(2)FreeBSD遇到問題解決

修正資料庫
#mysqlcheck -uroot -p -r sfs3
#mysqlcheck -uroot -p --use-frm sfs3

學務系統年級修正
修改include/config.php裡的$school_kind_name設定
將$school_kind_name=array("幼稚園","一年","二年","三年","四年","五年","六年","一年","二年","三年","一年","二年","三年");
改為$school_kind_name=array("幼稚園","一年","二年","三年","四年","五年","六年","七年","八年","九年","一年","二年","三年");

佈告欄標題字數限制
board_p     b_sub

2009年12月18日 星期五

FreeBSD小筆記-(1)安裝FreeBSD與常用指令

本文參考眾多大師文章,主要當個人小筆記用。
若侵權請告知,會立即刪除。

一個很好的參考網站:
http://docs.google.com/View?id=dd9mswk6_1251chzsh2d9#openssl

1.圖解安裝 http://bbs.mychat.to/sindex.php?t715281.html
   安裝影音教學 http://203.68.253.130/~huang/video/freebsd/6/install/
/         1GB
swap   512MB
/usr     15GB
/tmp    3GB
/var     10GB
/home  50GB
(以80GB為例)