Accéder au contenu.
Menu Sympa

devel - Re: [Devel] Comment installer l'agenda sur une machine en local ?

Objet : devel-adl

Archives de la liste

Re: [Devel] Comment installer l'agenda sur une machine en local ?


Chronologique Discussions 
  • From: David MENTRE <dmentre AT linux-france.org>
  • To: "Developpement de l'Agenda du Libre" <devel AT agendadulibre.org>
  • Subject: Re: [Devel] Comment installer l'agenda sur une machine en local ?
  • Date: Thu, 30 Jun 2005 21:20:07 +0200
  • List-archive: <http://lolut.utbm.info/pipermail/devel>
  • List-id: Developpement de l'Agenda du Libre <devel.agendadulibre.org>
  • Organization: none

Thomas Petazzoni <thomas.petazzoni AT enix.org> writes:

> (Et si je mettais tout ça dans un fichier "INSTALL" ?)

Yep. Voici un brouillon pour la debian :


How to install agendadulibre on a local machine (on a Debian Sarge)
===================================================================


1) install needed support software

# apt-get install mysql-server apache php4 php4-mysql apache-doc

(mysql-doc is in non-free (sigh))


2) configure MySQL

# /usr/bin/mysqladmin -u root password 'enter-your-good-new-password-here'

$ mysql --user=root mysql --password

mysql> GRANT ALL PRIVILEGES ON *.* TO 'agendadulibre'@'localhost'
IDENTIFIED BY 'some_pass' WITH GRANT OPTION;

mysql> CREATE DATABASE agendadulibre;

mysql> quit

2b) Configure Apache for PHP

In /etc/apache/httpd.conf, uncomment lines:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

# /etc/init.d/apache restart

3) get agendadulibre source code

# apt-get install subversion

$ svn co http://agendadulibre.org/svn/trunk/

4) install it in a directory accessible to Apache

$ mkdir ~/public_html

$ cp -a trunk/ ~/public_html/agenda

5) configure agendadulibre

$ cd ~/public_html/agenda/

$ mysql -h localhost -u agendadulibre -p agendadulibre < schema.sql

$ cp bd-private.inc.php.template bd-private.inc.php

(edit it with needed host, base name, password, etc. I used:
/** Where the database is hosted */
$host = "localhost";

/** Username needed to connect to the database */
$user = "agendadulibre";

/** Password needed to connect to the database */
$pass = "some_pass";

/** Database name */
$bdd = "agendadulibre";

/** Root URL of the libre agenda, without leading slash */
$root = "http://localhost/~david/agenda";;
)

6) Use it!

Connect your web browser to:
http://localhost/~david/agenda/


--
pub 1024D/A3AD7A2A 2004-10-03 David MENTRE <dmentre AT linux-france.org>
5996 CC46 4612 9CA4 3562 D7AC 6C67 9E96 A3AD 7A2A






Archives gérées par MHonArc 2.6.16.

Haut de le page