-
Install apache2 and php5
sudo apt-get install apache2 php5
-
open a browser and type localhost to check if apache is really installed and working.
-
Download twiki from
http://twiki.org/cgi-bin/view/Codev/DownloadTWiki
-
Change directory to
cd /var/www/
-
unzip the downloaded file Twiki-6.0.1.tgz in to /var/www/ which will create /var/www/twiki
sudo tar zxvf ~/Downloads/TWiki-6.0.1.tgz
-
Change the ownership of the twiki directory (/var/www/twiki)and its files to www-data:www-data
sudo chown -R www-data:www-data /var/www/twiki/
-
Add your user name (Computer login name) to www-data group
sudo usermod -a -G www-data ¨Your-User-Name¨
-
logout and log back in to check if your name is a member of the www-data group
dcsit-server@dcsit:~$ id
uid=1000(dcsit-server) gid=1000(dcsit-server) groups=1000(dcsitserver), 4(adm),24(cdrom),27(sudo),30(dip),33(www-data),46(plugdev),115(lpadmin),116(sambashare)
-
create twiki.conf file by Copy and paste the source text from http://twiki.org/cgi-bin/view/TWiki/ApacheConfigGenerator