http://www.freebsd.org/doc/zh_TW/books/handbook/network-bind9.html
http://co-web.ks.edu.tw/syshtml/dns-bindupgrade.html
http://nicklee.tw/index.php?load=read&id=375
http://dns-learning.twnic.net.tw/bind/security.html#two-one
http://ohaha.ks.edu.tw/post/1/77
http://www.weithenn.org/cgi-bin/wiki.pl?Bind9-%E6%8F%90%E4%BE%9B_Domain_Name_%E8%88%87_IP_%E5%B0%8D%E6%87%89%E7%9A%84%E6%9C%8D%E5%8B%99
http://www.rd.ipv6.org.tw/?p=786
2011年11月8日 星期二
2011年11月2日 星期三
phpMyAdmin
先設定/etc/rc.conf mysql_enable="yes"
mysql於開機後就會啟動,安裝phpMyAdmin
接著需先設定mysql的密碼MySql 設定密碼 & 忘記密碼
修改config.inc.php中的
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = ''; // use here your password
$cfg['Servers'][$i]['auth_type'] = 'http';
mysql於開機後就會啟動,安裝phpMyAdmin
接著需先設定mysql的密碼MySql 設定密碼 & 忘記密碼
修改config.inc.php中的
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = ''; // use here your password
$cfg['Servers'][$i]['auth_type'] = 'http';
2011年11月1日 星期二
freebsd安裝+sfs3+xoops
1.先安裝freebsd
2.更新port tree
3.安裝mysql+apache+php
4.安裝phpmyadmin
5.安裝學務系統
-------------------------------------------------------
freebsd
taiwan
usb io
-----
custom-->partition-->a-->q-->standard-->lable-->c-->512M-->swap
c-->ok-->/-->distribution-->all-->media-->cd/dvd-->commit-->yes
configure選單-->networking-->inc0-->no-->no-->
主機名稱: ms.ylc.edu.tw
ip:
dns:
gatway:
設定時區
------
未安裝設定好的處理方法:
root
sysinstall
configure
-----------
關機指令:
shutdown -h now
2.更新port tree
#cd /usr/ports/net/cvsup-without-gui
#make insstall clean
#cp /usr/share/examples/cvsup/ports-supfile /root/
#ee /root/ports-supfile
改 default host=cvsup.tw.freebsd.org
#cvsup -g -L /root/ports-supfile
------------------------------------------
升級已安裝的package
更新ports tree
# ee /etc/make.conf //加入下列文字
SUPHOST= cvsup4.us.freebsd.org
SUP_UPDATE= yes
SUP= /usr/bin/csup
SUPFLAGS= -g -L 2
SUPFILE= /usr/share/examples/cvsup/stable-supfile
PORTSSUPFILE= /usr/share/examples/cvsup/ports-supfile
# cd /usr/ports
# make update //開始更新ports tree
# make fetchindex //更新 ports index
3.安裝Apache+Mysql+PHP
Mysql:
# cd /usr/ports/databases/mysql50-server
# make install clean
Apache:
# cd /usr/ports/www/apache22
# make config
必選的選項有:MYSQL,其它用預設選項即可。
# make install clean
PHP:
# cd /usr/ports/lang/php5
# make config
必選的選項有:APACHE,其它用預設選項即可。
# make install clean
# cd /usr/ports/lang/php5-extensions
# make config
必選的選項有:GD、GETTEXT、ICONV、MBSTRING、MING、MYSQL、PDF、SESSION、XML、XMLREADER、XMLWRITER、ZLIB
其它用預設選項即可。
# make install clean
啟動Apaceh Mysql
#ee /etc/rc.conf 加入以下內容:
apache22_enable="YES"
mysql_enable="YES"
測試PHP是否運作正常
#cd /usr/local/www/apaceh22/data/
#ee test.php 加入以下內容:
phpinfo();
?>
在瀏覽器:http:***.**.***.*/test.php/
※備註:讓Apache支援PHP
# ee /usr/local/etc/apache22/httpd.conf 加入以下內容:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
在DirectoryIndex 加入 index.php
DirectoryIndex index.php index.html
#重新啟動Apache
# /usr/local/etc/rc.d/apache22 restart
檢查php.ini是否已調校
# ee /usr/local/etc/php.ini
放寬 max_execution_time, 建議改為max_execution_time = 300(或更高)
放寬 memory_limit(執行每個scripts時使用的memory大小限制),
建議改為memory_limit = 64M或更高
放寬post_max_size (允許一次上傳檔案的大小限制),
建議改為post_max_size = 12M或更高
放寬 upload_max_filesize(上傳單一檔案的大小限制),
建議改為upload_max_filesize =6M或更高
建議將max_input_time =600 改高一點。
確認 register_globals = Off
確認 file_uploads = On
確認magic_quotes_gpc = On
確認打開偵錯模式
display_errors = Off 改為 display_errors = On
error_reporting = E_ALL 改為 error_reporting = E_ALL & ~E_NOTICE
重新啟動apache
# /usr/local/etc/rc.d/apache22 restart
mysql設定密碼
# /usr/local/bin/mysql mysql
mysql> UPDATE user SET password=password('你的密碼') where user='root';
mysql> FLUSH PRIVILEGES;
mysql>exit
-----------------------------------------------------------------------------------
4.安裝phpmyadmin
#cd /usr/ports/databases/phpmyadmin/
#make MYADMDIR=www/data/phpMyAdmin install clean
更改httpd.conf 設定
#ee /usr/local/etc/apache/httpd.conf
在最後一行加入以下內容
Alias /myadmin/ "/usr/local/www/phpMyAdmin/"
Options none
AllowOverride Limit
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 .example.com
重新啟動 apache
#/usr/local/etc/rc.d/apache22 restart
設定phpmyadmin
#cd /usr/local/www/phpmyadmin/
#cp libraries/config.default.php config.inc.php
更改config.inc.php 設定
$cfg['Servers'][$i]['auth_type'] = 'http'; # 將 cookies 改成 http
在網頁上輸入:http://***.**.***.*/myadmin/ 即可進入phpmyadmin
-------------------------------------------------------------------------------------
5.SFS3學務系統安裝:
下載最新檔案至APACHE網頁伺服器根目錄位置(/usr/local/www/apache22/data)
# cd /usr/local/www/apache22/data
# fetch http://sfscvs.tcc.edu.tw/sfs_stable.tar.gz
解開檔案
# tar zxvf sfs_stable.tar.gz
執行setup.sh安裝SFS3
# chmod +x setup.sh
# ./setup.sh
以瀏覽器執行安裝程式:http://***.**.***.*/sfs3/install.php
修改include/config.php的權限成唯讀,確保您系統不會被竄改,方法如下:
在sfs3的根目錄下鍵入以下指令:
# cd sfs3
# chmod 644 include/config.php
移除 install.php,方法如下: 在sfs3的根目錄下,鍵入以下指令:
# rm -f install.php
在apache 在設定檔 httpd.conf 中加入底下資料,注意目錄結尾要有 / 設定上傳目錄的alias:
# vi /usr/local/etc/apache22/httpd.conf
加入以下的內容:
Alias /upfiles/ '/usr/local/www/apache22/data/sfs3/data/'
Options None
AllowOverride None
Order allow,deny
Allow from all
重新啟動 apache
# /usr/local/etc/rc.d/apache22 restart
-------------------------------------------------------------------
xoops安裝
網頁根目錄
#cd /usr/local/www/apache22/data/
將xoops的檔案傳到cd /tmp/
#tar zxvf xoops
#mv htdoc /usr/local/www/apache22/data/
#mv htdoc xoops
#chmod 777 templates_c cache uploads
#chmod 666 mainfile.php
在網頁下安裝***.**.***.*/xoops/install/
2.更新port tree
3.安裝mysql+apache+php
4.安裝phpmyadmin
5.安裝學務系統
-------------------------------------------------------
freebsd
taiwan
usb io
-----
custom-->partition-->a-->q-->standard-->lable-->c-->512M-->swap
c-->ok-->/-->distribution-->all-->media-->cd/dvd-->commit-->yes
configure選單-->networking-->inc0-->no-->no-->
主機名稱: ms.ylc.edu.tw
ip:
dns:
gatway:
設定時區
------
未安裝設定好的處理方法:
root
sysinstall
configure
-----------
關機指令:
shutdown -h now
2.更新port tree
#cd /usr/ports/net/cvsup-without-gui
#make insstall clean
#cp /usr/share/examples/cvsup/ports-supfile /root/
#ee /root/ports-supfile
改 default host=cvsup.tw.freebsd.org
#cvsup -g -L /root/ports-supfile
------------------------------------------
升級已安裝的package
更新ports tree
# ee /etc/make.conf //加入下列文字
SUPHOST= cvsup4.us.freebsd.org
SUP_UPDATE= yes
SUP= /usr/bin/csup
SUPFLAGS= -g -L 2
SUPFILE= /usr/share/examples/cvsup/stable-supfile
PORTSSUPFILE= /usr/share/examples/cvsup/ports-supfile
# cd /usr/ports
# make update //開始更新ports tree
# make fetchindex //更新 ports index
3.安裝Apache+Mysql+PHP
Mysql:
# cd /usr/ports/databases/mysql50-server
# make install clean
Apache:
# cd /usr/ports/www/apache22
# make config
必選的選項有:MYSQL,其它用預設選項即可。
# make install clean
PHP:
# cd /usr/ports/lang/php5
# make config
必選的選項有:APACHE,其它用預設選項即可。
# make install clean
# cd /usr/ports/lang/php5-extensions
# make config
必選的選項有:GD、GETTEXT、ICONV、MBSTRING、MING、MYSQL、PDF、SESSION、XML、XMLREADER、XMLWRITER、ZLIB
其它用預設選項即可。
# make install clean
啟動Apaceh Mysql
#ee /etc/rc.conf 加入以下內容:
apache22_enable="YES"
mysql_enable="YES"
測試PHP是否運作正常
#cd /usr/local/www/apaceh22/data/
#ee test.php 加入以下內容:
phpinfo();
?>
在瀏覽器:http:***.**.***.*/test.php/
※備註:讓Apache支援PHP
# ee /usr/local/etc/apache22/httpd.conf 加入以下內容:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
在DirectoryIndex 加入 index.php
DirectoryIndex index.php index.html
#重新啟動Apache
# /usr/local/etc/rc.d/apache22 restart
檢查php.ini是否已調校
# ee /usr/local/etc/php.ini
放寬 max_execution_time, 建議改為max_execution_time = 300(或更高)
放寬 memory_limit(執行每個scripts時使用的memory大小限制),
建議改為memory_limit = 64M或更高
放寬post_max_size (允許一次上傳檔案的大小限制),
建議改為post_max_size = 12M或更高
放寬 upload_max_filesize(上傳單一檔案的大小限制),
建議改為upload_max_filesize =6M或更高
建議將max_input_time =600 改高一點。
確認 register_globals = Off
確認 file_uploads = On
確認magic_quotes_gpc = On
確認打開偵錯模式
display_errors = Off 改為 display_errors = On
error_reporting = E_ALL 改為 error_reporting = E_ALL & ~E_NOTICE
重新啟動apache
# /usr/local/etc/rc.d/apache22 restart
mysql設定密碼
# /usr/local/bin/mysql mysql
mysql> UPDATE user SET password=password('你的密碼') where user='root';
mysql> FLUSH PRIVILEGES;
mysql>exit
-----------------------------------------------------------------------------------
4.安裝phpmyadmin
#cd /usr/ports/databases/phpmyadmin/
#make MYADMDIR=www/data/phpMyAdmin install clean
更改httpd.conf 設定
#ee /usr/local/etc/apache/httpd.conf
在最後一行加入以下內容
Alias /myadmin/ "/usr/local/www/phpMyAdmin/"
Options none
AllowOverride Limit
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 .example.com
重新啟動 apache
#/usr/local/etc/rc.d/apache22 restart
設定phpmyadmin
#cd /usr/local/www/phpmyadmin/
#cp libraries/config.default.php config.inc.php
更改config.inc.php 設定
$cfg['Servers'][$i]['auth_type'] = 'http'; # 將 cookies 改成 http
在網頁上輸入:http://***.**.***.*/myadmin/ 即可進入phpmyadmin
-------------------------------------------------------------------------------------
5.SFS3學務系統安裝:
下載最新檔案至APACHE網頁伺服器根目錄位置(/usr/local/www/apache22/data)
# cd /usr/local/www/apache22/data
# fetch http://sfscvs.tcc.edu.tw/sfs_stable.tar.gz
解開檔案
# tar zxvf sfs_stable.tar.gz
執行setup.sh安裝SFS3
# chmod +x setup.sh
# ./setup.sh
以瀏覽器執行安裝程式:http://***.**.***.*/sfs3/install.php
修改include/config.php的權限成唯讀,確保您系統不會被竄改,方法如下:
在sfs3的根目錄下鍵入以下指令:
# cd sfs3
# chmod 644 include/config.php
移除 install.php,方法如下: 在sfs3的根目錄下,鍵入以下指令:
# rm -f install.php
在apache 在設定檔 httpd.conf 中加入底下資料,注意目錄結尾要有 / 設定上傳目錄的alias:
# vi /usr/local/etc/apache22/httpd.conf
加入以下的內容:
Alias /upfiles/ '/usr/local/www/apache22/data/sfs3/data/'
Options None
AllowOverride None
Order allow,deny
Allow from all
重新啟動 apache
# /usr/local/etc/rc.d/apache22 restart
-------------------------------------------------------------------
xoops安裝
網頁根目錄
#cd /usr/local/www/apache22/data/
將xoops的檔案傳到cd /tmp/
#tar zxvf xoops
#mv htdoc /usr/local/www/apache22/data/
#mv htdoc xoops
#chmod 777 templates_c cache uploads
#chmod 666 mainfile.php
在網頁下安裝***.**.***.*/xoops/install/
訂閱:
文章 (Atom)