Monday, December 8, 2008

A skeleton Horde Application

A skeleton Horde application consists of the following:

README Application README text file
index.php Application index script
conf.xml XML schema for the application configuration file
conf.php Main application configuration file
mime_drivers.php Any application-specific MIME Viewers
prefs.php Application preferences
CHANGES Development changelog
INSTALL Installation documentation
screen.css CSS definitions
application.png Application icon
Application.php Main application code library
api.php Methods to be exposed to other applications
base.php Common script dependencies
version.php Application version information
template/ Common page header template



Installing And Configure Horde Framework

Installing And Configure Horde Framework

Most of the information to install can be found from file INSTALL under directory docs. Basically

(1) Install the needed PEAR modules.
(2) Create Horde database and tables needed.
(3) Im using Centos 5.2 I need to install php-pear and php-xml

By default we will get Administrator login.

Configuration can be done from Setup module.

We need to change how the authentication work. I will used mysql as the authentication driver. The file script.initial_horde_user.sql can be found under directory /usr/share/horde/scripts/sql

The default user is admin with the password is admin. Please reset this.

Make sure setting for Database is configure before changing the Authentication setting to used Mysql.

Problem that I'm encounter. I'm want to used different directory from the default horde. My login failed.

The problem may from the cookies path setting under General Tab Setup. From Horde log it's said

Dec 08 01:15:45 HORDE [notice] [horde] Login success for admin [] to Horde [pid 25729 on line 138 of "/usr/share/base/login.php"]
Dec 08 01:15:45 HORDE [debug] [] Guest user does not have READ permission for horde [pid 25691 on line 814 of "/usr/share/base/lib/Horde/Registry.php"]

I'll stick with the default directory for a while.

Right now I want to get used to create application with Horde Framework.

More changes to the setting. This using Horde Setup module.

(1) Preference System -> Mysql Database -> Horde Defaults

(2) Data Tree System -> Mysql Database -> Horde Defaults

(3) Cache System -> SQL-Based Cache Storage and Im using memcached for use_memorycache setting.

For Centos 5.2 memcached can be install using rpm from rpmforge. Install memcached and php-pecl-memcache.

Read about memcached here and interesting blog post

(4) Lock System -> SQL-Based Lock

(5) Token System -> SQL-Based Token System

(6) Virtual File Storage -> SQL Database -> Horde Default

(7) Custom Session Handler -> Mysql-Based Session -> Setting as per Database setup.

(8) Memcached Server -> Enabled

Sunday, December 7, 2008

Google Friend Connect Test Web Page

Google Friend Connect Test Web Page

I'm testing for Google Friend Connect. You can try OSCC website Google Friend Connect using this link

Google Friend Connect still new and need more social gadgets to make it's attractive.

Can Google Friend Connect will help us to create Open Source Software online comunity in Malaysia? We will soon find out.

Another website I'm testing is

From Google Friend Connect webpage :-

Grow traffic by adding social features to your site

Google Friend Connect means more people engaging more deeply with your website -- and with each other.

Enrich your site

Choose engaging social features from a catalog of gadgets by Google and the OpenSocial developer community.

Attract more visitors

Your users can easily invite friends from social networks and contact lists to visit and join your site.

No programming whatsoever

Just copy and paste a few snippets of code into your site, and Friend Connect does the rest.

With Google Friend Connect, visitors to your site or blog can:

  1. Sign in with their Google, Yahoo, AIM or OpenID account.
  2. Interact with other visitors by making friends, sharing media, posting comments, playing games, and more.
  3. Invite friends from other social networks and contact lists to join your site or blog.

Bring viral social growth to your website

  1. Anyone can join your site with one click by using their existing Google, Yahoo and other accounts.
  2. Visitors can evangelize for your site by inviting their friends and publishing their activities to their social networks.
  3. Social gadgets will keep these visitors more deeply engaged with your site, and with each other.