phpcompta-contrib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpcompta-contrib] phpcompta sur lighttpd


From: Dany De Bontridder
Subject: [Phpcompta-contrib] phpcompta sur lighttpd
Date: Fri, 16 Nov 2007 14:41:44 +0100

Pour info, On Nov 16, 2007 1:33 PM, Andreas Grau wrote:
   Bonjour, je voulais ajouter un petit how-to sur comment installer
   phpCompta sur lighttpd, avec la spécificité de ne pas changer les
   parametres php pour tous le serveur (il faut savoir que lighttpd ne
   supporte pas les fichiers .htaccess non plus). Je n'ai pas arrivé à
   trouver où m'inscrire pour avoir accès au wiki, donc voilà ma petite
contribution par e-mail. 2 choses à faire:
   1. Define a phpCompta host in lighttpd.conf, usually in /etc/lighttpd/
   In my expample, the host name is "compta". Add this to lighttpd.conf
   <snip>
   $HTTP["host"] =~ "^compta$" {
          simple-vhost.document-root = "/phpcompta/html"
          fastcgi.server = ( ".php" => ((
"bin-path" => "/usr/bin/php-cgi -c /var/www/compta/php.ini",
                  "socket" => "/tmp/php.socket"
                  "broken-scriptfilename" => "enable"
                  )))
   }
   </snip>
The magic is to give a specific php.ini for this virtual host.
   2. Add the php.ini The address for the file must match the -c parameter
   of the bin-path above.
   <snip>
   magic_quotes_gpc = Off
   magic_quotes_runtime = Off
magic_quotes_sybase = Off max_execution_time = 60
   [Session]
session.save_handler = files ; handler used to store/retrieve data
   session.save_path         = /tmp    ; argument passed to save_handler
                                      ; in the case of files, this is the
                                      ; path where data files are stored
   session.use_cookies       = 1       ; whether to use cookies
   session.name              = PHPSESSID
session.auto_start = 1 ; initialize session on request startup
   session.cookie_lifetime   = 0       ; lifetime in seconds of cookie
   session.cookie_path       = /tmp    ; the path the cookie is valid for
   allow_call_time_pass_reference = on
   register_argc_argv = on
   session.bug_compat_42 = 1
   session.bug_compat_warn = 0
   session.use_trans_sid = 1
include_path=".:/var/www/compta/phpcompta/include:/var/www/compta/phpcompta/ addon" </snip>
   In this setup, the directory /var/www is the usual simple-vhost base
   adress to which gets added the hostname, compta in my exemple. There,
   I have untar'ed the distribution file and have the lighttpd.conf point
to the html directory. Merci pour ce logiciel !
   Cordialement,
   Andreas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]