Archive for the ‘Server Diary’ Category

Awstats on 1&1 Linux Root Server

Saturday, February 11th, 2006

Plesk 7.5 for Windows comes with Awstats, why not Linux version? Who knows, ask the developers. It is said on one of the forum page that Plesk 8.0 for Linux will come with Awstats supported. Again, who knows when it will be out.

So instead of waiting for Plesk to integrate Awstats, I just want it working. Several things to notice while installing Awstats on the FC2 Root Servers that 1&1 is shipping:

  1. Extract the source and place them at /usr/local/awstats as the installer will expect itself to be there.
  2. When asked to locate httpd.conf, feed it /etc/httpd/conf/httpd.include instead. If you give httpd.conf, changes made will be erased next time you made any change to your domain structures through Plesk.
  3. Edit httpd.include and add this block to the awstats’s Directory block:
    	<IfModule mod_perl.c>
    	<Files ~ (\\.pl$)>
    		SetHandler perl-script
    		PerlHandler ModPerl::Registry
    		Options ExecCGI
    		allow from all
    		PerlSendHeader On
    	</Files>
    	</IfModule>
    

    As this will make sure perl scipts runs under 1&1’s and Plesk’s configuration.

  4. Logs are located under /home/httpd/vhosts/[domain]/statistics/log/access_log, notice if you’re not running the update script (awstats_updateall.pl whichcalls awstats.pl) as root, you’ll have to chmod o+x on these directories.
  5. Awstats expect (by default) to write into /var/lib/awstats so make sure it’s there and writable for update script owner.
  6. If you want to import old data, specify the target log file access_log.processed, and update. Then change the target log file back to access_log to keep it current.
  7. Because the data get processed by Plesk’s default stats engine, we want to regularily check access_log to keep the data updated (so it won’t be moved into .processed before we access them). Use crontab -e to automate this process every hour.

It’s working on mine now.

Peerguardian 1.5 beta on Fedora Core 2

Saturday, February 11th, 2006

Taken directly from Phoenix Labs’ website:

PeerGuardian 2 is Phoenix Labs’ premier IP blocker for Windows. PeerGuardian 2 integrates support for multiple lists, list editing, automatic updates, and blocking all of IPv4 (TCP, UDP, ICMP, etc), making it the safest and easiest way to protect your privacy on P2P.

In this case, however, the platform dealing with is Linux. So here are the steps.

1) PeerGuardian Linux 1.5 beta Source
Grab it from the links on [this thread]
Extract it to a folder and run:
./configure

2) Automake-1.4
As it is required to compile properly, the easiest workaround is to make a symlink to point automake-1.4 to automake-[version] with the command:
ln -s /usr/share/automake-[version]/ /usr/share/automake-1.4

3) libipq.h:
This library is not included in my preconfigured system. Grab the rpm [here]
rpm -iv iptables-devel-1.2.9-1.0.i386.rpm works just fine.

4) curses.h:
This is also missing according to the error message while compiling, so I found it [here]. rpm -iv all the way.

5) Install & Update
Easiest way to get it working is to copy/link the binary into your path, and put the PG.conf under /etc. Here is a [thread] dedicated to this topic.

It should work, and do what you wanted to do with it.

整理

Friday, February 3rd, 2006

最近把 theme 換成 k2, 並且稍微修改了 sidebar.php, 東西位置換一換, 然後讓右邊在首頁正常顯示 Category. 中間還去偷翻了餅幹Kubrick-XT2 裡面的 css, 順便連分類的 code 和小圖也偷過來用了(噓).
del.icio.us cached 的輸出也 cleanup 了, 不然 k2 直接開啟支援時候, 不知道為什麼, 顯示的每個連結之間都會空一行, 然後就變的爆醜 Orz. 現在應該算好多了.

順便將 Category 重新整理了一次, 文章也稍微的重新歸類了一下, 所以現在應該比之前更合邏輯了.

最後附帶一提: [耶穌](隔了三個多月)顯靈了.. XD [顯靈連結]

del.icio.us + WP Plugin

Saturday, November 12th, 2005

What is del.icio.us? According to Wikipedia:

del.icio.us is a social bookmarking, social software web service for storing and sharing web bookmarks. The site came online in late 2003 and was developed by Joshua Schachter, co-maintainer of Memepool.

And according to del.icio.us’s About:

del.icio.us is a social bookmarks manager. It allows you to easily add sites you like to your personal collection of links, to categorize those sites with keywords, and to share your collection not only between your own browsers and machines, but also with others.

用簡單易懂的 繁體中文解釋就是社交書籤? 噗, 還是叫 social bookmarks 比較好聽. 簡單說就是一種管理網路書籤/我的最愛的一種網路服務. 怎麼說叫做管理? del.icio.us 用簡單的介面來讓你新增/移除你的網路書籤. 而且並讓你在增加新的書籤時候輸入相關的 tag. 每個書籤都有可以有多個 tag, 事後搜尋時候方便查詢.

del.icio.us 使用到現在可以感覺到的特色有以下幾點:

  1. 免費註冊, 過程非常簡單: 這頁填一填然後去收 email 啟動帳號就解決了.
  2. 介面簡單好用: 由於他們提供了非常方便的 bookmarklet, 晃到想要 bookmark 起來的網頁時候, 只要點一下 post to del.icio.us 的那個 bookmarklet 按鈕就好了. 這頁提供了 Firefox, IE, Safari, Opera 的安裝方法. AJAX 的活用也讓使用過程更加簡單.
  3. Social Bookmarks: 這個應該是重點吧. 為什麼事 social? 其中有些原因是因為你可以直接把你的 bookmark 位址丟給別人, 這樣別人就可以看到你所有的 bookmark. 再者就是透過每一個 bookmark 起來的網頁, 你可以去看其他也同樣 bookmark 那頁的使用者們的 bookmark. 就好像說你知道某人也跟你一樣喜歡聽某張 CD, 這時候如果可以同時看他的 CD collection, 稿不好你會發現新的好物. 台語叫做 Ho-khang e tao sio boh. 大概有打錯就是了 Orz
  4. 搜尋簡便: 如果你 bookmark 了一大堆根本看不完的 bookmark, 那 tag 的功能將會是十分的簡便. tag 跟 Gmail 的 label 概念十分相似. 每個 bookmark 可以有多個 tag, 由你自己決定.

這 些並不是 del.icio.us 的所有特色, 他們還有一堆沒用到的東西, About page 裡面是有寫到不少. Inport/Export 和 Subscribe 與其他一些尚未成熟的功能似乎沒寫到. 註冊完再他們的 Settings 裡面都有得摸.

del.icio.us 玩了一陣子後於是我就想說, 如果可以給他來個 Wordpress Integration 就好了, 於是找了找, 發現這個 del.icio.us cached. 安裝過程也是非常的簡單. 裝好後只要在想要顯示 favorites 的地方呼叫 delicious(”your_username”) 就好了. That EZ. 不過由於內建的只會顯示 15 個 bookmark, 而且有使用 cache 功能, 所以我就把數目改大, 並把 cache 部份 comment 掉了. 反正網站每個月有 1TB 的 quota, 就盡量給他操吧.. XD

雖然忘了說, 不過右下角那串很明顯的就是啦.. XD

Got it from here: [Link]

Joomla! CMS

Wednesday, November 9th, 2005

上個禮拜在找要用什麼軟體來幫老北診所+台語的網站, 本來想說用 1&1 送的 Plesk SiteBuilder, 可是設定(好像)好麻煩, 根本不想也沒時間去翻 doc, 所以 forget about it. 於是逛去 CMSMatrix, 發現了一個陌生的臉孔: Joomla!

(more…)

All Rights Reserved Copyright © 2008 Design by StyleShout and Clazh