HOW TO: Install TWiki 4.0.4 on Ubuntu Server 6.06 LTS
TWiki.org Links
Instructions
Complete a Server Install of Ubuntu 6.06 LTS
Enable Universe Repository and update packages:
- Open the file for editing:
Code:
sudo nano /etc/apt/sources.list
- Remove the hashes from the following lines and save the file
- Update packages:
Code:
sudo apt-get update
sudo apt-get upgrade
Install required packages:
(Some of these packages may already be installed with the default Ubuntu installation but running the commands as shown will not hurt.)
Code:
sudo apt-get install apache2 perl
sudo apt-get install cron grep
sudo apt-get install rcs
Install required perl modules (modules not included with the perl install above):
Code:
sudo apt-get install libcgi-session-perl
sudo apt-get install libdigest-sha1-perl
sudo apt-get install libhtml-parser-perl
sudo apt-get install patch
Unpack TWiki .tgz file:
Code:
sudo mkdir -p /home/httpd/twiki/
cd /home/httpd/twiki/
sudo tar -xvzf <full path to TWiki-4.0.4.tgz>
sudo chown -R www-data /home/httpd/twiki
sudo chgrp -R www-data /home/httpd/twiki
Prepare the example .conf file included with TWiki
Code:
sudo cp /home/httpd/twiki/twiki_httpd_conf.txt /home/httpd/twiki/twiki_httpd.conf
Append this line to the end of /etc/apache2/httpd.conf
include "/home/httpd/twiki/twiki_httpd.conf"
Code:
sudo nano /etc/apache2/httpd.conf
Restart the Apache server:
Code:
sudo /etc/init.d/apache2 restart
Run the configuration script from a web-browser on another networked computer. The ip-address of the server can be determined using 'sudo ifconfig':
Code:
http://<ipaddress>/twiki/bin/configure
Start TWiki-ing:
Code:
http://<ipaddress>/twiki/bin/view
Re: HOWTO: Install TWiki 4.0.4 on Ubuntu Server 6.06 LTS
sudo apt-get install php4
Had to do the above to get it working :p
Re: HOWTO: Install TWiki 4.0.4 on Ubuntu Server 6.06 LTS
Quote:
Originally Posted by
Robbrad
sudo apt-get install php4
Had to do the above to get it working :p
That's interesting. As far as I know TWiki does not use PHP at all, however I did use a LAMP server install for the example above so PHP was installed on my system by default. I still maintain that you should not need it though.
BTW, I found an article in Linux Journal that describes a TWiki Install. I have not read it in full but I think it might be useful for those struggling to get TWiki up and going as I was:
Thank you twas for the lead (See Post).
Re: HOWTO: Install TWiki 4.0.4 on Ubuntu Server 6.06 LTS
Quote:
Originally Posted by
Robbrad
sudo apt-get install php4
Had to do the above to get it working :p
I had to run this command as well. Before I did, I got an error when I tried to restart apache (sudo /etc/init.d/apache2 restart). I was going to paste the error here, but I lost it from the clipboard. As I recall, it complained about an error in /etc/apache2/httpd.conf -- which only had the include. The included file mentioned PHP so I tried this suggestion -- the problem went away and I'm up and running.
Re: HOWTO: Install TWiki 4.0.4 on Ubuntu Server 6.06 LTS
You don't really need PHP installed to run TWiki. But as mentioned before, if you see error while starting Apache server, just disable PHP from TWiki's configuration as memtioned in the error message and you are good to go.
Thanks for the simple guide!
Re: HOWTO: Install TWiki 4.0.4 on Ubuntu Server 6.06 LTS
i followed this guide, as well as several other, and I've got apache running nicely and twiki installed. However when I go to http://ip/twiki and click on configure I just get a load of text - looks like a perl script. I've checked that the script is able to read and execute.
Any ideas on what i'm doing wrong?
Dan
Re: HOWTO: Install TWiki 4.0.4 on Ubuntu Server 6.06 LTS
Quote:
Originally Posted by
dan_kent
i followed this guide, as well as several other, and I've got apache running nicely and twiki installed. However when I go to
http://ip/twiki and click on configure I just get a load of text - looks like a perl script. I've checked that the script is able to read and execute.
Any ideas on what i'm doing wrong?
Dan
First:
If configured how I described above you won't be able to "click" on the configure script as the directory is not visible by exploring directories with an Internet browser.
Second:
The configure script should be at the following URL
http://<ipaddress>/twiki/bin/configure
Not
http://<ipaddress>/twiki/configure
I realize that may not be very helpful but maybe it will point you to a clue in the difference in our configurations.
Re: HOW TO: Install TWiki 4.0.4 on Ubuntu Server 6.06 LTS
I also needed to install sendmail. Found this out when I tried to register myself as a user.
Code:
sudo apt-get install sendmail
Re: HOW TO: Install TWiki 4.0.4 on Ubuntu Server 6.06 LTS
there is a .deb package maintained at http://members.iinet.net.au/~spos/ which is generally only a few days behind the current twiki.org release, if that.
Re: HOWTO: Install TWiki 4.0.4 on Ubuntu Server 6.06 LTS
Hi all,
I could use some help. I've followed all the directions listed above, installed PHP4 via apt, and restarted apache.
When I restart apache, I get this:
Quote:
ryan@rybuntu:~$ sudo /etc/init.d/apache2 restart
Password:
* Forcing reload of apache 2.0 web server...
[Wed Dec 06 23:12:30 2006] [warn] The Alias directive in /etc/apache2/conf.d/twiki.conf at line 2 will probably never match because it overlaps an earlier Alias.
[Wed Dec 06 23:12:30 2006] [warn] The Alias directive in /etc/apache2/conf.d/twiki.conf at line 3 will probably never match because it overlaps an earlier Alias.
apache2: Could not determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Wed Dec 06 23:12:30 2006] [warn] The Alias directive in /etc/apache2/conf.d/twiki.conf at line 2 will probably never match because it overlaps an earlier Alias.
[Wed Dec 06 23:12:30 2006] [warn] The Alias directive in /etc/apache2/conf.d/twiki.conf at line 3 will probably never match because it overlaps an earlier Alias.
apache2: Could not determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
...done.
My twiki.conf file looks like this:
Quote:
# Added for twiki
Alias /twiki/pub /var/www/twiki/pub
Alias /twiki/data /var/lib/twiki/data
Redirect /twiki/index.html
http://localhost//cgi-bin/twiki/view
#Redirect /twiki/
http://localhost//cgi-bin/twiki/view
# make sure this is even needed, and ref the doc section needing it
<Directory /usr/lib/cgi-bin/twiki/>
Options +ExecCGI
SetHandler cgi-script
AllowOverride all
Allow from all
</Directory>
# End twiki Configuration Block
And when I go to
http://myip/twiki/bin/configure
all I get is a blank page (no error).
Any suggestions? I appreciate the help.