Recent Changes - Search:



My journals will take the place of a blog. They have moved to

Sites I take responsibility for






Places I frequent



Items for sale:


edit SideBar

Installing Laconica on Gentoo

Include our styles below Infobox - invoke as >>infobox<< ... >><<

Codebox: - invoke as >>codebox<< ... >><<

warnbox: - invoke as >>codebox<< ... >><<

editingbox: - invoke as >>codebox<< ... >><<

noticebox: - invoke as >>codebox<< ... >><<

Page bread crumbs:

Pages by tags: (:listtags:)
Subscribe to this wiki: RSS Feed RSS or subscribe to this page for changes: RSS Feed RSS
496 articles have been published so far. Recent changes
(:addThis btn="custom":)

My Laconica site:


Gentoo specific:

Add to USE flags: +innodb +curl +spl +hash +xmlwriter

Re-emerge dev-lang/php if needed and you should also perform a

 # emerge -auvDN world 

if you changed the USE flag.

  1. emerge dev-php5/pecl-syck (or re-emerge if needed)

My system was built from Gentoo 2007.0 and has been kept up to date.

If not already emerge apache2 php mysql curl media-libs/gd net-misc/memcached

PHP will need some supporting sofware as well:

 # emerge dev-php/PEAR-Validate dev-php/PEAR-DB_DataObject  dev-php/PEAR-Mail dev-php/PEAR-Net_SMTP dev-perl/XML-Writer

These were masked:

 dev-php5/pecl-memcache dev-php5/pecl-mailparse and dev-php5/eaccelerator

I unmasked dev-php5/pecl-mailparse-2.1.3, dev-php5/pecl-memcache-3.0.1 and dev-php5/eaccelerator-

 # emerge app-portage/flagedit

 # flagedit dev-php5/pecl-mailparse -- +~x86
 # flagedit dev-php5/pecl-memcache -- +~x86 
 # flagedit dev-php5/eaccelerator -- +~x86 

 # emerge dev-php5/pecl-mailparse dev-php5/pecl-memcache

PHP mods:


Note sure if this is done already by Gentoo:

 # pear channel-update
 # pear install channel://
 # pear install DB_DataObject
 # pear install Mail
 # pear install Net_SMTP

Create a non Gentoo directory for storing PHP software that is not in Portage.

Install PHP libraries in /usr/local/php


 # mkdir -p /usr/local/php
 # cd /usr/local/php
 # curl -O
 # tar zxvf xmpphp-0.1beta-r54.tar.gz
 # cp xmpphp/*.php .


 # curl -O
 # tar jxvf php-openid-2.1.2.tar.bz2
 # cp -r php-openid-2.1.2/Auth/*.php /usr/local/php/


 # curl -O


 # curl -O
 # unzip 
 # cp "PHP Markdown 1.0.1m/markdown.php" .

Edit /etc/php/cli-php5/php.ini

include_path = ".:/usr/share/php5:/usr/share/php:/usr/local/php"

Although I believe you could put this in the config.php as well.

$extra_path = array("/usr/share/php5", "/usr/local/share/php", "/usr/local/php");

Now install Laconica itself:

Download the source to your virtual host directory.

(I don't have an ebuild for it as of yet).

In web host directory:

Copy config.php.samle to config.php and make changes to taste.

Copy in .htaccess file

 # cp htaccess.sample .htaccess

Change RewriteBase to match your subdirectory.


Iíll assume you already have MySQL installed. To set up a database for Laconica, I did the following:

 # mysql -u root -p -e 'create database laconica';
 # mysql -u root -p -e "grant all privileges on laconica.* to laconica@localhost identified by 'PASSWORD'";
 # mysql -u root -p laconica < db/laconica.sql

INI file:

Now to create the ini file:

Note: Despite what the author states and the README about dataobject.ini not being needed I was getting errors (displayed by changing debug to 5 in config.php) until I created it.

See notes in

In the root of the web host where Laconica is installed:

 Create the file classes/<database name>.ini like below:

 database = mysql://dbuser:PASSWORD@localhost/dbname
 schema_location = /www/ 
 class_location = /www/ 
 require_prefix = /www/ 


 # chown -R apache:apache <web host directory root>/avatar
 # chmod -R ug+rw <web host directory root>/avatar/

At this point I should be all set but when I register a user all I get is

 'DB_DataObject Error: Unable to load schema for database and table (turn debugging up to 5 for full error message)'. So obviously more research is needed.


Kevin's Public Wiki maintained and created by Kevin P. Inscoe is licensed under a
Creative Commons Attribution 3.0 United States License.

Back to my web site -

Edit - History - Print - Recent Changes - Search
Page last modified on October 13, 2008, at 09:32 PM EST