サーラリマンは働き過ぎ、社畜化に注意しよう!!

ubuntu でnamazu

linux

apt-get install build-essential

apt-get install libtool

apt-get install libtext-kakasi-perl libnkf-perl

apt-get install wv xlhtml xpdf

cd /usr/local/src

wget http://www.namazu.org/stable/namazu-2.0.21.tar.gz

tar zxvf namazu-2.0.21.tar.gz

cd namazu-2.0.21

cd File-MMagic

perl Makefile.PL

make

make install

cd ..

./configure

make

make install

cp /usr/local/libexec/namazu.cgi /usr/lib/cgi-bin

vi /etc/apache2/sites-available/000-default.conf

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory “/usr/lib/cgi-bin”>
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

a2enmod cgi

service apache2 restart

mkdir /var/www/namazu

mkdir /var/www/namazu/index

vi /usr/local/etc/namazu/namazurc

Index /var/www/namazu/index
Replace /var/www http://www.ckenko25.com
Lang ja

/usr/local/bin/mknmz –exclude=/var/www/wordpress -O /var/www/namazu/index /var/www

確認

http://www.ckenko25.com/cgi-bin/namazu.cgi にアクセス

 

コメント