瀏覽模式: 普通 | 列表

網站流量分析 - apache + php i-stats

Quote: http://140.111.66.34/modules/news/article.php?storyid=30

發表人 t850008於 2006/5/23 1:00:34 (1027 人讀取)
自由軟體介紹

PHP i-Stats 是一套可以分析網站流量的 PHP 程式,它可以搭配 MySQL 資料庫來使用!
系統須求:Apache Web Server+PHP 4.x+MySQL 3.23 或更新的版本+GD 2.x

PHP i-Stats 官方網站:http://www.my-code.org/
PHP i-Stats 下載:http://www.my-code.org/download.php
目前網站上可以下載的最新版本是 1.2 版


安裝方式:
請參考 這一篇 文章!
PHP i-Stats 1.2 版繁體中文語系:
下載
翻的不好,敬請見諒!

1.) 下載 PHP i-stats

wget http://www.my-code.org/get.php?filename=PHP_i-Stats_1.2.tgz

[閱讀全文]

apache 的 ab 指令作壓力測試

Apache HTTP server benchmarking tool


20個連線,3次同時連線

ab -n 20 -c 3 http://tw.yahoo.com/

結果

This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 1997-2005 The Apache Software Foundation, http://www.apache.org/

Benchmarking tw.yahoo.com (be patient).....done


Server Software:
Server Hostname:        tw.yahoo.com
Server Port:            80

Document Path:          /

[閱讀全文]


[1] RPM安裝

[2] Check
    more /etc/httpd/conf.d/auth_pam.conf

LoadModule auth_pam_module modules/mod_auth_pam.so
LoadModule auth_sys_group_module modules/mod_auth_sys_group.so

    more /etc/pam.d/httpd

#%PAM-1.0
auth         required     pam_stack.so service=system-auth
account    required     pam_stack.so service=system-auth

[3] 權限

[閱讀全文]

為了對付網站慢速問題,我到這裡查到資料

Quote: http://phorum.study-area.org/viewtopic.php?p=216145#216145

   先試試看替 Apache 裝上 mod_deflate 即時壓縮產生的 html ..
   稍微減少一些 流量的使用...

   php 部份則是加上加速器.
   mysql 則記得開啟 Query_cache .

         PHP 加速器
            。mmcache
            。eAccelerator - Turck MMCache 的分支專案

後來到 gogle大神查 mod_deflate http://ying.homedns.org/wp/archives/2005/08/13/21/28/00/

[閱讀全文]

[1.] 設置多筆 A 記錄

www IN A 10.0.0.1
www IN A 10.0.0.2
www IN A 10.0.0.3

      service named reload


[2.] 查詢時會有三筆記錄,但每次順序會不一樣
         dig www.ssorc.tw


[3.] 利用 rsync同步 web資料
         http://ssorc.tw/index.php?load=read&id=246


[4.] 引用 http://cha.homeip.net/blog/archives/2006/04/post_13.html

Web Site 資料同步注意事項

[閱讀全文]

CA + Apache + IIS

Fedora Linux 2.4.22-1.2115.nptl
 
套件: openssl-0.9.7a-23
 
流程:
製作Root CA
產生憑證
簽發憑證
 
測試 Apache Web (httpd-2.0.47-10)

修改 /etc/httpd/conf.d/ssl.conf

SSLEngine On
SSLCertificateFile /path/server.cert.cert
SSLCertificateKeyFile /path/server.cert.key

Run: service httpd start
# 產生訊息
Starting httpd:Apache/2.0.47 mod_ssl/2.0.47 (Pass Phrase Dialog)
Some of your private key files are encrypted for security reasons.
In order to read them you have to provide us with the pass phrases.
 
Server 192.168.1.111:443 (RSA)
Enter pass phrase: (輸入密碼)

[閱讀全文]

標籤: apache

Apache + Webalizer

[1.] apt-get install webalizer zlib libpng gd
 
[2.] 編輯 config,如果有多個 virtual host的 http log 要區分設定檔及內容設定,必存取到同個資料庫

      複製新檔
      cp webalizer.conf webalizer.conf-ssorc.tw


      vi webalizer.conf-ssorc.tw

# Apache 登錄檔完整路徑與檔名
LogFile   /var/log/httpd/ssorc.tw-access_log

# 選擇 log file 的格式
LogType   clf

# 當資料處理完畢之後,輸出的目錄
OutputDir  /var/www/usage/ssorc.tw

# 當你的 logrotate 不是一個月一次時,必需設定
Incremental     yes    

[閱讀全文]

標籤: apache