Recent Changes - Search:


Code:


Social:


My journals will take the place of a blog. If you go to the Journal page there is an RSS feed to subscribe with.

« July 2017 
SunMonTueWedThuFriSat
      1
2345678
9101112131415
16171819202122
23242526272829
3031     

Sites I take responsibility for

West Volusia, Florida

Documents

Technical

General

Me

Living

Places I frequent

Hobbies

Humor

Items for sale:


Clipboard

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: Welcome to ke3vin.org! - My Public Technical Notes - Software And Operating Systems - Software - Server - Web - Laconica - Laconica On Gentoo

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
Share

2016-03-22: This site is being moved to my main site at https://kevininscoe.com/wiki as part of a consolidation to one domain.


My Laconica site:

https://kevininscoe.com/fok/

Notes:

http://laconi.ca/darcs/README
http://laconi.ca/trac/wiki/Installation
http://www.saigonnezumi.com/2008/08/09/setting-up-lamp-server-and-laconica-050-in-ubuntu-hardy-heron/
http://gentoo-wiki.com/Host_your_own_OpenID_server#PHP-OpenID_Library_and_Videntity.org


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-0.9.5.3

 # 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.php.net
 # pear install channel://pear.php.net/Validate-0.8.1
 # 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

XMPPHP:

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

php-openid:

 # curl -O http://openidenabled.com/files/php-openid/packages/php-openid-2.1.2.tar.bz2
 # tar jxvf php-openid-2.1.2.tar.bz2
 # cp -r php-openid-2.1.2/Auth/*.php /usr/local/php/

OAuth.php:

 # curl -O http://code.google.com/p/oauth/source/browse/code/php/OAuth.php

markdown.php:

 # curl -O http://michelf.com/docs/projets/php-markdown-1.0.1m.zip
 # unzip php-markdown-1.0.1m.zip 
 # 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).

http://laconi.ca/trac/wiki/Laconica_0.6.1

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.


Database:

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 http://decafbad.com/blog/2008/07/03/getting-laconica-up-and-running

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/decafbad.com/docs/laconica/classes 
 class_location = /www/decafbad.com/docs/laconica/classes 
 require_prefix = /www/decafbad.com/docs/laconica/classes/ 

Permissions:

 # 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.

Customizations:

http://blog.guillermoamaral.com/2008/08/22/no-need-for-a-twitter-clone/


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 - http://kevininscoe.com

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