06 Feb 2009 12:30
TAGS: dev wdlite wikidot
During last days, I've been working on wdLite Installer (a light single-wiki version of Wikidot).
The main purpose of this, was to make installation of this pretty piece of software as easy as possible.
Having this said, I'll prove it is really simple on the example of Ubuntu Linux.
Overview
- Step one: Install required packages
- Step two: Configure database
- Step three: Choose a proper place for wdLite and download it
- Step four: Launch web-based installer
- Step five: Your wiki is ready
Step one: Install required packages
Issue the following command:
sudo apt-get install apache2 php5 imagemagick subversion postgresql postgresql-contrib php5-tidy php5-pgsql php5-gd zip
Step two: Configure database
Use your user name instead of piotr. Use some (not yours) password instead of strong-password.
sudo su postgres
psql --command "CREATE USER piotr PASSWORD 'strong-password'"
createdb --owner piotr piotr
Step three: Choose a proper place for wdLite and download it
Version a
The best place for Wikidot would be probably somewhere under /var/www
(replace piotr with your user name)
sudo mkdir /var/www/wiki
sudo chown piotr /var/www/wiki
cd /var/www/wiki
svn checkout http://svn.wikidot.org/repos/wdlite/trunk .
chmod a+rwX . -R
Having wdLite copied there, it'll be accessible at: http://localhost/wiki/
Version b
You can also locate wdLite to your public_html directory.
cd ~/public_html
sudo svn checkout http://svn.wikidot.org/repos/wdlite/trunk .
sudo chmod a+rwX . -R
In order for this to work, you would need to issue the following commands:
sudo ln -s ../mods-available/userdir* /etc/apache2/mods-enabled
sudo /etc/init.d/apache2 restart
wdLite will be accessible at: http://localhost/~piotr/ (replace piotr with your user name).
Step four: Launch web-based installer
Go to http://localhost/wiki (version a) or http://localhost/~piotr (version b), click the "Click and install a wiki here!" link.
Fill ALL the fields. If you followed this howto, the values would be as follows:
- PostgreSQL settings
- user: piotr
- password: strong-password
- database: piotr
- GMail settings
- you have to create a GMail account for sending verification emails from it
- supply the GMail login and password in the fields
- Wiki settings
- it's totally up to you what to include there
- the values will be accordingly the wiki title and subtitle (shown at the very top of wiki)
- Wiki administrator — it's you!
- e-mail: e-mail address you will use to log in
- password: password you will user to log in
- Members
- if you have friend you would like to invite to the new wiki, just enter their e-mail addresses separated with spaces. You can leave this single field empty
- Confirm and save
- click save and wait while the wiki is installing the database and sending invitation e-mails. This should take no more than 5 minutes (usually less than 1 minute)
Step five: Your wiki is ready
Log in using the e-mail address and password that you supplied in the previous step.
Enjoy your wiki!
Good job everyone.
Michał Frąckowiak @ Wikidot Inc.
Visit my blog at michalf.me
I'll be giving this a test drive this weekend. Given the limitations, I'm trying to see what the real advantages are. I can see where this would be good for those that want to run a basic Wikidot system on a host that supports PostgreSQL (http://www.siteground.com/postgres-hosting.htm looks like a relatively inexpensive way to go), but then why not just use wikidot.com as a free host and get all the benefits?
One benefit I could see is the ability to run other types of services (i.e a different discussion forum if you want) under the same URL.
Maybe there is a void that this will fill, but I can't clearly see what it is yet.
If you want a really simple Ubuntu install, check out my installable ISO! ;)
-Ed
Community Admin
that this solves are:
there are things that need to be improved still:
Piotr Gabryjeluk
visit my blog
I get a "dump.sql:227: ERROR: type "tsvector" does not exist" error. WTF is happening?
You probably don't use PostgreSQL 8.3
Piotr Gabryjeluk
visit my blog
Is there a way to install on PostgreSQL 8.1?
Kenneth Tsang (@jxeeno)
Can you fix step 1 from:
to
Kenneth Tsang (@jxeeno)
hi,
i really want to say i love this initiative. I would really like to run wikidot on a shared hosting environment, to create adfree websites. If there is specific things I can do to help, let me know. php html and css and mysql knowledge, but no experience with the wikidot software.
Some feedback I already wanted to send. After following the instructions above, on my ubuntu box apache didn't parse the php. I followed the instructions under troubleshooting apache from this page and then it worked.
When I try to save some source code in a page on the wiki I get the following error: The ajax request failed. Please check your internet connection or report a bug if the error repeats during your work. code:500
Working forum would be tops!
I noticed that the download size of wdlite is 172mb. I was wondering if all of this is necessary stuff? Otherwise it would be nice to be able to get a smaller sized package with exactly what people need.
thanks again for the great work. Wikidot on shared host environments would really give the software a popularity boost I think.
greets
naja
ps: These are the full headers of the code 500 error. Probably it is an apache config problem too, but I haven't yet figured out the fix:
http://localhost/wiki/wdlite/trunk/?/ajax-module-connector.php
POST /wiki/wdlite/trunk/?/ajax-module-connector.php HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.5) Gecko/2008121622 Ubuntu/8.04 (hardy) Firefox/3.0.5
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 1000
Connection: keep-alive
X-Requested-With: XMLHttpRequest
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: http://localhost/wiki/wdlite/trunk/?/sandbox
Content-Length: 269
Cookie: wikidot_token7=f9b902fc3289af4dd08de5d1de54f68f; WIKIDOT_SESSION_ID_IE=1237999171_26
Pragma: no-cache
Cache-Control: no-cache
page_id=&title=Sandbox&source=qsdf&comments=&action=WikiPageAction&event=savePage&mode=page&wiki_page=sandbox&lock_id=96&lock_secret=0ea1ec6a2170fbee06c0b5c7ba642ca0&revision_id=undefined&moduleName=Empty&callbackIndex=14&wikidot_token7=f9b902fc3289af4dd08de5d1de54f68f
HTTP/1.x 500 Internal Server Error
Date: Wed, 25 Mar 2009 17:05:53 GMT
Server: Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.5 with Suhosin-Patch
X-Powered-By: PHP/5.2.4-2ubuntu5.5
Cache-Control: no-cache, must-revalidate
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Content-Length: 0
Connection: close
Content-Type: text/plain; charset="UTF-8"
Any recent news about WD Lite ?
WdLite was kind of hack to make it work in shared environment. But now I'm thinking what to do to make Wikidot easier to run for average user (with no root probably). This would also probably be only a limited version of software, but really easy to install and more stable than wdlite.
Piotr Gabryjeluk
visit my blog
Post preview:
Close preview