Buy Reviews
Powered by MaxBlogPress  

Posts Tagged ‘apache’

Managing an Apache Server review

星期二, 二月 2nd, 2010

In 2007 I wrote a Chinese article “監控網站紀錄檔”about how to monitor the site’s log files. I did not use webalizer because it’s not displayed correctly. I changed to install awstats and it’s cool. Last year my server crashed every day. I wrote a Chinese article “ubuntu當機問題”about how to solve the problems. Today I read the article http://www.web-articles.info/e/a/title/Managing-an-Apache-Server/ to study about the new way of monitoring the apache server.

By default, the Apache server stores these log files at /usr/local/apache/log/. But in Ubuntu the Apache server stores the log files at /var/log/apache2/. When viewing directory listings in /var/log or any of its subdirectories, we may encounter log files with names such as accesss.log.1, access.log.2.gz, and so on. It’s because the logrotate command of course  and it built in our system. Wow! It’s enjoyable and we did not need to install the software.

The author presented the mod_status and mod_info module but for security I do not suggest the modules. He also shared monitoring tools include the following: · big brother system and network monitor · mon, the Service Monitoring Daemon. I think it’s useful to me.

The second article I want to talk about is http://www.webworldarticles.com/e/a/title/Using-analytics-metrics-to-make-SEO-decisions/. This related my Chinese article “ SEO 7 個步驟”.  From “工作達人跳出率82.21%” we know to lower Bounce rate to 50%. The author suggested us to write how-to articles. And I suggest you can put the target=”_blank” in <a> tags.

And in this section “Using analytics data to make SEO decisions”.  It’s hard to understand how to create the chart so I give up to read.

XAMPP apache

星期一, 十一月 9th, 2009

XAMPPㄚ琪是自從去年五月多進入新的公司後,因為公司的權限卡得很緊,長官又有時間的要求,所以那時就找上XAMPP 1.6.6a來裝的,我唯一看上它的一點就是可以只用解壓縮的方式,就可以在Windows系列的本機localhost上跑,這對不懂Apache、MySQL、PHP的初學使用者可以說是真easy!

那時的版本就有很多工具可以使用了,如下:

Apache 2.2.8
MySQL 5.0.51a
PHP 5.2.5 + PHP 4.4.8 + PEAR
PHP-Switch win32 1.0 (please use the "php-switch.bat")
XAMPP Control Version 2.5 from www.nat32.com   
XAMPP Security 1.0   
SQLite 2.8.15
OpenSSL 0.9.8g
phpMyAdmin 2.11.4
ADOdb 4.96
Mercury Mail Transport System v4.52
FileZilla FTP Server 0.9.25
Webalizer 2.01-10
Zend Optimizer 3.3.0a
eAccelerator 0.9.5.2 for PHP 5.2.5  (comment out in the php.ini)

*系統需求也不會很高:
  + 64 MB RAM (RECOMMENDED)
  + 200 MB free fixed disk
  + Windows 98, ME
  + Windows NT, 2000, XP (RECOMMENDED)

到現在新版的1.7.2已經在八月出來了,相對應的工具有

  • Apache 2.2.12 (IPv6 enabled) + OpenSSL 0.9.8k
  • MySQL 5.1.37 + PBXT engine
  • PHP 5.3.0
  • phpMyAdmin 3.2.0.1
  • Webalizer 2.21-02 + GeoIP lite
  • FileZilla FTP Server 0.9.32
  • msmtp 1.4.17
  • 看來已經有很大的差異了,應該趕快更新一下才好!
  • 對於現在常用Vista的人來說,也有一些注意的事項,有興趣的人可以上他的繁體網頁瀏覽
  • 要下載檔案可以進入
  • EXE (RAR-Sfx)
    44 MB
    RAR 自動解壓縮檔
    MD5 checksum: 14c2e3e35f9792b9aec674548472348b

    ZIP
    84 MB
    ZIP 壓縮檔
    MD5 checksum: 087af5c2e6a936dd90587e0bacc3aef3

    下載這兩種不同的XAMPP Windows 1.7.2安裝方式!

ubuntu當機問題

星期二, 一月 13th, 2009

最近ㄚ琪琪的家、工作達人、還有最近幫教會建的2009北區單成活動報名系統,發現沒多久就當機,造成ㄚ琪很大的困擾,所以開始不斷的監控主機到底什麼問題?
昨天使用top監控時,突然發現一堆apache2的資源被使用,然後swap free的空間突然變為0,之後就是無法監控,想當然就是當機了,不過這樣已經給我幾個方向了:
1.網站的流量太大,這是該高興還是要哭啊?不過既然這樣,就要從加大頻寬、控制流量、限制apache的使用以及mysql資料庫的使用著手

2.硬體資源不足,唉!四個小朋友太少了,所以硬體一直很差,記憶體不夠,從五個方向來評估及著手:

一、是擴充記憶體,我現在是用PC133 的SDRAM,大家應該都知道我這是古董級的了吧!所以我正著手採購512MB的RAM,如果有好心的善心人士,可以送給我或便宜賣給我,我會更感謝的。

二、是減低使用的資源,努力學習怎樣讓Ubuntu的載入服務降低,已減少使用的記憶體,我會再開另一篇文章說明目前正在測試減低使用的資源

三、關掉gnome視窗,原本想好玩看看,偶爾也只在高雄家中看看,不過這應該是記憶體浪費的很大元兇吧,不過現在的Ubuntu版本不好設定為文字模式的啟動畫面,很有可能過年回家時才能作。

四、既然swap變為0,那就從擴充swap硬碟空間來作。

五、買新規格的記憶體,DDR2 或 DDR3的現在真的很便宜,不過就是要整個主機大改造了,這個要coco的。

目前想到的就這些,如有新的進展,再加入紀錄。

監控網站紀錄檔

星期五, 三月 23rd, 2007

Google廣告工具 一書裡示範使用webalizer
我在Ubuntu機器裡裝webalizer後,發現全是亂碼, 真是不優

只好改用之前在用的AWStats, Peter’s blogAwstats under Ubuntu寫的不錯!

我補充一下安裝的步驟:
1.sudo apt-get awstats
系統會建議您也安裝:libgeo-ipfree-perl,libnet-xwhois-perl,我就順便也給他裝了

另外,設定檔中的LogFormat=1,需要跟apache的設定檔搭配,也就是其access_log的格式要長得像下面這樣:
111.22.33.44 – - [10/Jan/2001:02:14:14 +0200] 『GET / HTTP/1.1″ 200 1234 『http://www.fromserver.com/from.htm』 『Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)』
在apache中的命令像這樣:
CustomLog /var/log/apache2/access.log combined

嗯,這樣行了,雖說是big5編碼的,但是使用起來不會有亂碼!