Commit d5a5a929 authored by Antoine Beaupré's avatar Antoine Beaupré

move sessions to a shared /var/alternc/sessions

parent d689bb6d
......@@ -277,6 +277,7 @@ debian/po/fr.po -text
debian/po/templates.pot -text
debian/rules -text
debian/templates -text
etc/alternc/alternc.ini -text
etc/alternc/apache-ssl.conf -text
etc/alternc/apache.conf -text
etc/alternc/apache2-ssl.conf -text
......
alternc (0.9.10) stable; urgency=low
* I have moved back the PHP sessions in the /var/alternc directory to
facilitate sharing sessions between NFS-mounted nodes. This overrides
the default /var/lib/php5 and adds a cronjob that replicates the
manual session garbage collection the PHP package is doing.
-- Antoine Beaupré <anarcat@koumbit.org> Fri, 31 Oct 2008 13:40:18 -0400
alternc (0.9.9) stable; urgency=low
Starting with 0.9.9, we do not overwrite Postfix's main.cf directly
......
......@@ -14,3 +14,7 @@
# Every day at 2am, compute web, mail and db space usage per account.
# You may put this computing every week only or on your filer on busy services.
0 2 * * * www-data /usr/lib/alternc/spoolsize.php
# alternc-specific PHP sessions cleanup routine
# copied from php5's
09,39 * * * * root [ -d /var/alternc/sessions ] && find /var/alternc/sessions/ -type f -cmin +$(if [ -e /usr/lib/php4/maxlifetime ] ; then /usr/lib/php4/maxlifetime ; else /usr/lib/php5/maxlifetime ; fi) -print0 | xargs -r -0 rm
......@@ -210,6 +210,7 @@ var/alternc/mail/y
var/alternc/mail/z
var/alternc/mla
var/alternc/redir
var/alternc/sessions
var/alternc/tmp
var/backups/alternc
var/log/alternc
......
......@@ -52,6 +52,7 @@ case "$1" in
rm -rf /var/alternc/apacheconf /var/alternc/cgi-bin /var/alternc/bureau /var/alternc/exec.usr /var/alternc/mla /var/alternc/redir /var/alternc/tmp /var/log/alternc
rm -f /etc/apache*/conf.d/override_php.conf /etc/apache*/conf.d/alternc-ssl.conf /etc/apache*/conf.d/alternc.conf
rm -f /etc/php*/conf.d/alternc.ini
;;
remove|upgrade|failed-upgrade|abort-install|abort-upgrade)
;;
......
alternc (0.9.10) unstable; urgency=low
* bugfixes:
* #1163: fix sqlbackup script call routine to retain backwards compatibility
* #1163: fix sqlbackup script call routine to retain backwards
compatibility
* major changes:
* PHP sessions are now stored in /var/alternc/sessions
-- Antoine Beaupré <anarcat@koumbit.org> Mon, 20 Oct 2008 16:12:28 -0400
......
......@@ -55,6 +55,7 @@ install: build
chmod 755 debian/alternc/etc/alternc
chmod 644 debian/alternc/etc/alternc/phpmyadmin.inc.php
chown -R root:www-data debian/alternc/var/alternc/bureau
chmod 1733 debian/alternc/var/alternc/sessions
chmod -R 644 debian/alternc/var/alternc/bureau
chmod -R a+X debian/alternc/var/alternc/bureau
chown -R www-data:www-data debian/alternc/var/alternc/dns debian/alternc/var/alternc/html debian/alternc/var/run/alternc debian/alternc/var/log/alternc debian/alternc/var/alternc/tmp
......
; alternc-slave specific configuration for shared sessions
session.save_path = /var/alternc/sessions
......@@ -198,6 +198,7 @@ tar -zcf "$INSTALLED_CONFIG_TAR" -C / $CONFIG_FILES
#
php="`ls /usr/lib/apache*/*/*php*.so | sed -e 's/^.*libphp\(.\)\.so$/php\1/' | tail -1`"
ln -fs /etc/alternc/alternc.ini /etc/$php/conf.d/alternc.ini || true
if [ -x /usr/sbin/apache ]
then
# Enable vhost_alias apache module at the right place (ie: BEFORE mod_alias)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment