FreeBSD
โปรแกรมดู Logs files จาก Squid
1. Lightsquid 1.7.1_1
bansang#cd /usr/ports/www/lightsquid
bansang#make install clean
bansang#cd /usr/local/www/lightsquid
ตั้งค่าให้ .cgi และ perl ทำงาน
bansang# chmod +x *.cgi
bansang# chmod +x *.pl
bansang#pico /usr/local/etc/lightsquid/lightsquid.cfg
แก้ไขรายการ ดังนี้
#path to tpl folder
$tplpath ="/usr/local/www/lightsquid/tpl";
#path to lang folder
$langpath ="/usr/local/www/lightsquid/lang";
#path to report folder
$reportpath ="/usr/local/www/lightsquid/report";
#path to access.log
$logpath ="/usr/local/squid/logs"; ## ที่อยู่ log Files
บางท่านที่เป็น Admin คงเคยใช้งาน MRTG หรือ Cacti เพื่อตรวจสอบ Traffic การใช้งานของ Router หรือ อุปกรณ์ Network ต่างๆ ซึ่งใช้ RDD Tool ในการสร้างกราฟในการแสดงผลมาบ้าง ในบทความนี้จะของนำเสนอ Munin ซึ่งเป็นเครื่องมือที่ช่วยในการติดตามสถานะของเครื่อง Server และนำเสนอในรูปแบบของกราฟ เพื่อใช้ในการติดตามว่าเครื่อง Server ของเรานั้นทำงานยังสามารถรองรับการทำงานไหวหรือไม่ มีสิ่งบอกเหตุว่าจะเกิดปัญหาหรือเปล่า เช่น CPU Load มากกว่าปกติ และควรจะ Upgrade ได้หรือยัง
ติดตั้ง FreeBSD แบบ minimal ให้เรียบร้อย อย่าลืมติดตั้ง port กับ sys kernel ด้วย แล้วมาติดตั้ง FAMP
1. MySQL51-SERVER
cd /usr/ports/databases/mysql51-server
make install
echo 'mysql_enable="YES"' >> /etc/rc.conf
cp /usr/local/share/mysql/my-medium.cnf /etc/my.cnf
2. Apache22
cd /usr/ports/www/apache22/
make install clean
echo 'apache22_enable="YES"' >> /etc/rc.conf
echo ' apache22_flags="-DSSL"' >> /etc/rc.conf
echo 'accf_http_ready="YES"' >> /etc/rc.conf && kldload accf_http
pico /usr/local/etc/apache22/httpd.conf ค้นหา
# Secure (SSL/TLS) connections
Include etc/apache22/extra/httpd-ssl.conf << เอา # ออก
เป็นเวปเมล์อีกตัวที่แสดงผลภาษาไทยได้เลย มี Web Installer เหมือน Rouncube สามารถ Migrate จาก web mail อื่นได้ด้วย
# cd /usr/ports/mail/atmail
#make install
POST-INSTALL CONFIGURATION FOR ATMAIL
=====================================
1) Before the post-install of atmail ,please make sure
your SMTP server work well first.
Better turn off magic_quotes_gpc setting in the
php.ini.
2) Add the following to your Apache configuration, and
restart the server:
### Add the AcceptPathInfo directive only for Apache 2.0.30 or later.
Alias /atmail /usr/local/www/atmail/
AcceptPathInfo On
<Directory /usr/local/www/atmail>
AllowOverride None
Order Allow,Deny
Allow from all
</Directory>
3) Visit your atmail site with a browser (i.e.,
http://your.server.com/atmail/), and you should
be taken to the install.php script, which will lead
you through creating a config.php file and then
setting up atmail.
แสดงผลภาษาไทย ได้เลย มีเมนูภาษาไทยให้เลือก เข้าท่า หลังจากใช้ SquirrelMail มานาน

: Support :