差異處
這裏顯示兩個版本的差異處。
Both sides previous revision 前次修改 下次修改 | 前次修改 | ||
freebsd [2016/11/29 17:24] jz |
freebsd [2017/10/04 23:23] (目前版本) jz [Upgrade to next release] |
||
---|---|---|---|
行 28: | 行 28: | ||
svn up /usr/src | svn up /usr/src | ||
cd /usr/src; make clean | cd /usr/src; make clean | ||
+ | </code> | ||
+ | |||
+ | ===== Upgrade to next release ===== | ||
+ | <code> | ||
+ | # install latest updates from current release | ||
+ | freebsd-update fetch | ||
+ | freebsd-update install | ||
+ | # switch to next release version | ||
+ | freebsd-update upgrade -r 10.3-RELEASE | ||
+ | freebsd-update install | ||
+ | # restart | ||
+ | reboot | ||
+ | # install again to finish installing updates | ||
+ | freebsd-update install | ||
+ | # upgrade packages | ||
+ | pkg upgrade | ||
+ | freebsd-update install | ||
+ | # roll back if needed | ||
+ | freebsd-update rollback | ||
</code> | </code> | ||
行 89: | 行 108: | ||
</code> | </code> | ||
- | === phpmyadmin === | + | ===== phpmyadmin ===== |
<code bash> | <code bash> | ||
sudo pkg install phpmyadmin | sudo pkg install phpmyadmin | ||
行 98: | 行 117: | ||
<Directory "/usr/local/www/phpMyAdmin/"> | <Directory "/usr/local/www/phpMyAdmin/"> | ||
- | Options none | + | Options None |
- | AllowOverride Limit | + | AllowOverride Limit |
+ | |||
+ | #Require local | ||
+ | #Require host.example.com | ||
+ | Require all granted | ||
- | Order Deny,Allow | ||
- | Deny from all | ||
- | Allow from 127.0.0.1 192.168.0.0/16 .example.com | ||
</Directory> | </Directory> | ||
</code> | </code> | ||
- | === vsftp === | + | Go to ''example.com/phpmyadmin/setup'' to create an new config file, then apply it |
+ | <code bash> | ||
+ | sudo cp /usr/local/www/phpMyAdmin/config/config.inc.php /usr/local/www/phpMyAdmin/config.inc.php | ||
+ | </code> | ||
+ | |||
+ | ===== vsftp ===== | ||
<code bash> | <code bash> | ||
sudo pkg install vsftpd-ext | sudo pkg install vsftpd-ext |