Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Server Platforms
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Server Platforms
Discussion regarding any server based ubuntu release.

 
Thread Tools Display Modes
Old October 22nd, 2007   #1
experience
5 Cups of Ubuntu
 
Join Date: Sep 2006
Beans: 16
Tsearch2 problem when Installing a MediaWiki Server with Postgresql on Ubuntu

I followed the instructions and I have already a accessible MediaWiki for the Last steps -- specify the mediaWiki name, sysadmin user, including the the postgresql database settings. I leave most of them the default values. Then I click Install MediaWiki.

then I got the errer message:

Generating configuration file...
# Database type: PostgreSQL
# Loading class: DatabasePostgres
# Attempting to connect to database "wikidb" as "wikiuser"...
# Checking the version of Postgres...version 8.2 is OK.
# Checking for tsearch2 in the schema "public"...FAILED. Make sure tsearch2 is installed. See this article for instructions.

But actually I already have the postgresql-contrib-8.2 installed.

Do I need some more steps to setup the environment to work?

I am using the AMD 64 bit version of Ubuntu.

Last edited by experience; October 22nd, 2007 at 05:29 AM..
experience is offline   Reply With Quote
Old January 30th, 2008   #2
davidomundo
First Cup of Ubuntu
 
Join Date: Jan 2007
Beans: 10
Re: Install a MediaWiki Server with Postgresql on Ubuntu

I see that you asked this question 3 months ago, but in case you still haven't figured it out (and for others looking for the answer):

You have to make your database tsearch2-ified and not just install the contrib packages.

So from your state, you do:
Code:
cd /usr/share/postgresql/8.2/contrib/
sudo -u postgres psql wikidb < tsearch2.sql
sudo -u postgres createlang plpgsql wikivs
and then give permission to the newly generated tsearch2 tables to wikiuser.
davidomundo is offline   Reply With Quote
Old February 11th, 2008   #3
erkswede
First Cup of Ubuntu
 
Join Date: Jan 2008
Beans: 7
Re: Install a MediaWiki Server with Postgresql on Ubuntu

Quote:
sudo -u postgres createlang plpgsql wikivs
should be wikidb at the end right?
erkswede is offline   Reply With Quote
Old March 20th, 2008   #4
saibatizoku
First Cup of Ubuntu
 
saibatizoku's Avatar
 
Join Date: Feb 2008
Beans: 2
Re: Install a MediaWiki Server with Postgresql on Ubuntu

According to this site:

http://www.mediawiki.org/wiki/Manual...aWiki#Postgres

it should be

Code:
sudo -u postgres createlang plpgsql wikidb


I believe the general idea is to add a new procedural language to the database.

Check out this link:

http://www.postgresql.org/docs/8.2/s...reatelang.html
saibatizoku is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:31 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry