in this days im updating the blog on ikiwiki blog and studing ccna

so im posting cisco stuff and at the same time moving the blog in my website

Ikiwiki + Gitolite

I had buy a RPS server from rps offers but there isn't support for the server and the installable operating system is dated (lenny old stable). they have take ten days for activate my server so i have lost ten days for use my server (because is activated from 16-05-2011 but i had the possibility of use it since the 26-05-2011).
the RPS have a lots of problems and after the upgrade to squeeze i can't restart it for now because the iscisid version is too old and because you have to use ovh kernel for make it work and lot's of ovh parameter to set that i don't know.

so i have upgraded to squeeze in the hope that in the future i get support on it.

Ikiwiki + Gitolite

after the squeeze dist-upgrade i had start to install ikiwiki + gitolite and apache2, i want to install ikiwiki because in the debian community many people is using it, and look like a nice and fully customizable wiki.
For first i had installed apache2 and i had also installed some dependencies to enable CGI in apache2 setup as: libcgi-formbuilder-perl and libcgi-session-perl.

i want my site in the directory var/www/ikiwki/

Then i have edited my /etc/apache2/apache2.conf and add a line like this:

AddHandler cgi-script .cgi

i have find the "Options" line for the directory where i've put the ikiwiki.cgi, and add "ExecCGI" to the list of options. in my example, ikiwiki.cgi was in /var/www/ikiwiki, i edited /etc/apache2/sites-enabled/000-default and i had add it to the "Options" line in the "Directory /var/www/ikiwiki". But if you've put it in a ~/public_html, edit /etc/apache2/mods-available/userdir.conf.

i had also enabled the 404 plugin.
To make apache use it, the apache config file will need a further modification to make it use ikiwiki's CGI as the apache 404 handler. Something like this, with the path adjusted to where you've put the CGI:

ErrorDocument 404 /cgi-bin/ikiwiki.cgi

than i have installed gitolite following the root metod:

On your workstation:
(remember that the ssh key don't ask for a password when you use it)

copy your ~/.ssh/ file to /tmp/ on the server

On your server, as root:

git clone git://
cd gitolite
# defaults to being the same as:
# src/gl-system-install /usr/local/bin /usr/local/share/gitolite/conf /usr/local/share/gitolite/hooks

# to upgrade gitolite, repeat the above commands. Make sure you use the
# same arguments for the last command each time.

# create your "hosting user" if not already created with the user folder
useradd -m git

su - git

# (now as git)
gl-setup /tmp/

and modify this file .gitolite.rc

$REPO_UMASK = 0022; #(777 - 022 = 755; -rwxr-xr-x)

On your workstation:

git clone git@server:gitolite-admin

you can also edit the .ssh/config file like this:

host gitolite
user git
hostname yourhostname
port 22
identityfile ~/.ssh/id_rsa

naturally you have to add the wiki repositories on gitolite
R = @all
RW+ = admin

now you have to make the directory /var/www/ikiwiki/
readable and writeable by git user:

mkdir /var/www/ikiwiki
chgrp git /var/www/ikiwiki/
chmod 775 /var/www/ikiwiki/

ok now try to see if gitolite is working, if it is you can start installing ikiwiki:

after have done apt-get install ikiwiki and installed the suggested package that you are insterested for use with the wiki i had modified the file in /etc/ikiwiki/auto.setup like this one:

# Ikiwiki setup automator.
# This setup file causes ikiwiki to create a wiki, check it into revision
# control, generate a setup file for the new wiki, and set everything up.
# Just run: ikiwiki -setup /etc/ikiwiki/auto.setup
# By default, it asks a few questions, and confines itself to the user's home
# directory. You can edit it to change what it asks questions about, or to
# modify the values to use site-specific settings.

require IkiWiki::Setup::Automator;

our $wikiname=IkiWiki::Setup::Automator::ask(
gettext("What will the wiki be named?"), gettext("wiki"));
our $wikiname_short=IkiWiki::Setup::Automator::sanitize_wikiname($wikiname);
our $rcs=IkiWiki::Setup::Automator::ask(
gettext("What revision control system to use?"), "git");
our $admin=IkiWiki::Setup::Automator::ask(
gettext("Which user (wiki account or openid) will be admin?"), $ENV{USER});
use Net::Domain q{hostfqdn};
our $domain=hostfqdn() || IkiWiki::Setup::Automator::ask(
gettext("What is the domain name of the web server?"), "");

wikiname => $wikiname,
adminuser => [$admin],
rcs => $rcs,
srcdir => "$ENV{HOME}/$wikiname_short",
destdir => "/var/www/ikiwiki/",
repository => "$ENV{HOME}/repositories/$wikiname_short.".($rcs eq "monotone" ? "mtn" : $rcs),
dumpsetup => "$ENV{HOME}/$wikiname_short.setup",
url => "http://$domain",
cgiurl => "http://$domain/ikiwiki.cgi",
cgi_wrapper => "/var/www/ikiwiki/ikiwiki.cgi",
adminemail => "$ENV{USER}\@$domain",
add_plugins => [qw{goodstuff websetup}],
disable_plugins => [qw{}],
libdir => "$ENV{HOME}/.ikiwiki",
rss => 1,
atom => 1,
syslog => 1,

than i had done this

su - git

ikiwiki --setup /etc/ikiwiki/auto.setup

and that's all!!!

now you have ikiwiki + gitolite + apache

i was almost for forgotten this is my wiki finished

for any problem please comment here↓
I'm the New Administrator with Gnutoo of the italian group of libreplanet, and we are tring to give update and news on the libreplanet project and free software, and is officiall approved by FSF

Libreplanet-it wiki

you can find us also on irc #lp-it @ freenode