Tokyo Promenade 2Found that promenade.css is not really working. maybe, it was because it's installed under /usr/lib/cgi-bin. reinstalled under /var/www1/blog. it works better. but, now i realize passwd.txt is exposed
Changed the directory of passwd.txt and reflected it on promenade.tmpl. Following the manual gave me errors in writing to the database. i changed the ownership of all the files in promenade to www-data, and it worked.
OK, it works. But, where are the data? It's in promenade.tct, i guess. It's a Tokyo Cabinet database. How can i access it? Hmm, need to learn more on the database handling. Because my interest right now is to use the database, what i need may be Tokyo Tyrant, which gives me access to Tokyo Cabinet databases.
• Wrote Teru at 14:47 (edited 5×, last on 20 Aug 2009) | read 29× | 0 Comments
Installing Tokyo Cabinet and Tokyo PromenadeStarted to install Tokyo Cabinet and Tokyo Promenade. Info is here (in Japanese). Planing to move this blog to Tokyo Promenade if I succeed.
Requirements for installation: Linux 2.4+, gcc, make, zlib, bzip2. Make sure they are installed. Fro zlib, do
> sudo apt-get install zlib1g
Download the source file:http://tokyocabinet.sourceforge.net/tokyocabinet-1.4.31.tar.gz. Untar
> sudo tar xzvf tokyocabinet-1.4.31.tar.gz > cd tokyocabinet-1.4.31/
Configure
> ./configure
gave an error
configure: error: zlib.h is required
. Did
sudo apt-get install zlib1g-dev
Reran configure. Now
configure: error: bzlib.h is required
. Did
> sudo apt-get install libbz2-dev
. Dd
> make > make check
Checking emits a lot of lines on the terminal screen, and takes some time. Feel even meticulous, but it's probably a good engineering practice to make sure everything works as it should. Need a coffee break
After probably thousans of lines, got
#================================================================ # Checking completed. #================================================================
Did
> sudo make install
Got
#================================================================ # Thanks for using Tokyo Cabinet. #================================================================
OK
Now download TokyoPromenade here. See here for installation (in English). Untar
> sudo tar xzvf tokyopromenade-0.9.2.tar.gz
Did
> ./confiture > make > make check > sudo make install
in seconds successfully. Create a base directory for CGI as
> sudo mkdir -p /usr/lib/cgi-bin/tokyopromenade
After setting up the Apache site file at /etc/apache2/sites-available/sitefile3, accessing here gave me this page
![[[image: tokyopromenade.png]]](/frog/files/Teru/tokyopromenade.png)
Simple and sufficient! I like it 
OK. What next? See here, for the instructions (in Japanese). Well, it doesn't explain how to register a user
When tried with guest without a pasword, login was successful. But, how ca I create a user? Alright, I found it in a blog article
here. I.e., admin/nimda for administrator. The top page for admin is
![[[image: tokyopromenade_1.png]]](/frog/files/Teru/tokyopromenade_1.png)
Hitting the "users" there gets
![[[image: tokyopromenade_2.png]]](/frog/files/Teru/tokyopromenade_2.png)
icon is the article's permalink.