{{ToC}} === Installation == Puisque mon serveur /[[MitacLaptop/Sarge]] est mort ce 21 novembre 2006 (paix à ces cendres), il a bien fallu lui trouver un remplaçant. Pour l'installation, je me suis basé sur http://homepage.mac.com/pauljlucas/personal/macmini/ plutôt que sur http://sowerbutts.com/linux-mac-mini/. J'ai donc réinstallé /MacOS X sur une partition de 8 Go (pour le réparateur en cas de panne), puis j'ai installé [[Debian]] Etch 3.1r4 (qui date du 16/11/2006). L'installation s'est déroulée sans problème. Vive le [[Debian]] installer :) Il y a toujours un problème d'horloge interne qui prend du retard, donc j'ai ajouté la ligne suivante dans /etc/crontab: */10 * * * * root ntpdate ntp.skynet.be Ensuite, il faut configurer tous les services... ==== Web == /[[Apache2]] et /[[MySQL]] aptitude install mysql-server apache2 libapache2-mod-php4 php4-mysql phpmyadmin gallery Ensuite, j'ai été récupérer mon backup avec ((/[[rsync]] rsync)) après avoir fait tourner le serveur sur la machine de backup (en root): rsync --verbose --progress --stats --recursive carl@192.168.44.105:/home/backup/web/* /var/www/ > /root/rsync_web20061129.log rsync --verbose --progress --stats --recursive carl@192.168.44.105:/home/backup/db/* /var/lib/mysql/ > /root/rsync_db20061129.log Changer les propriétaires des répertoires: chown -R www-data.www-data /var/www/ chown -R mysql.mysql /var/lib/mysql/ ===== /[[WackoWiki]] == Il a fallu activer mod_rewrite: ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/rewrite.load /etc/init.d/apache2 reload Pour le /[[WikiWikiWeb]], j'ai dû rajouter dans le virtualhost de /etc/apache2/sites-available/default: Options Indexes Includes FollowSymLinks MultiViews AllowOverride All RewriteEngine on RewriteRule ^(wakka.php?.*)$ - [S=1] RewriteRule ^(.*)$ /wiki/wakka.php?wakka=$1 [QSA,PT,L] Order allow,deny Allow from all Problème: de temps en temps une erreur session_start(): Failed to initialize storage module (page wakka.php, ligne 246) Solution: dans /etc/php4/apache2/php.ini, décommenter (enlever le point-virgule) de la ligne: ;session.save_path = /var/lib/php4 et redémarrer apache. ===== gallery == Pour gallery, j'ai dû configurer la galerie après l'avoir installée, puis pour la protéger des curieux, j'ai fait comme ((/[[MitacLaptop/Sarge]]#h149-18 précédemment)). ===== pyblosxom == aptitude install pyblosxom Il y a eu ceci lors de l'installation: /usr/lib/python2.3/site-packages/Pyblosxom/tools.py:684: FutureWarning: hex/oct constants > sys.maxint will return positive values in Python 2.4 and up win32file.LockFileEx(hfile, flags, 0, 0xffff0000, __overlapped) /usr/lib/python2.3/site-packages/Pyblosxom/tools.py:688: FutureWarning: hex/oct constants > sys.maxint will return positive values in Python 2.4 and up win32file.UnlockFileEx(hfile, 0, 0xffff0000, __overlapped) /usr/lib/python2.3/site-packages/Pyblosxom/tools.py:684: FutureWarning: hex/oct constants > sys.maxint will return positive values in Python 2.4 and up win32file.LockFileEx(hfile, flags, 0, 0xffff0000, __overlapped) /usr/lib/python2.3/site-packages/Pyblosxom/tools.py:688: FutureWarning: hex/oct constants > sys.maxint will return positive values in Python 2.4 and up win32file.UnlockFileEx(hfile, 0, 0xffff0000, __overlapped) Problème avec [[rsync]]: il ne conserve pas les timestamps. J'ai donc monté le disque dur de ((../[[MitacLaptop/Sarge]] narsil)) et fait cp -r /path/to/pyblosxom /new/path/pyblosxom/ J'ai repris le config.py de narsil, et ça roule. ===== www.oberleiter.net == Problème: ça ne donne qu'une page blanche. Solution: plus de RAM pour [[PHP]]: Il faut changer la ligne suivante dans /etc/php4/apache2/php.ini: memory_limit = 8M ; Maximum amount of memory a script may consume (8MB) Remplacer //8M// par //64M// /etc/init.d/apache2 reload ((http://drupal.org/node/52983 source)) === Upgrade: passage à ((/[[Debian]])) 4.0 == 11/04/07 Etch est sorti il y a 3 jours, pas d'alertes, donc j'upgrade en suivant la documentation officielle: http://www.debian.org/releases/etch/powerpc/release-notes/ch-upgrading.en.html changer /etc/apt/source.list: deb http://ftp.nl.debian.org/debian/ su script -t 2>~/upgrade-etch.time -a ~/upgrade-etch.script aptitude update aptitude upgrade /etc/init.d/apache2 restart aptitude install initrd-tools aptitude install linux-image-2.6-powerpc aptitude purge hotplug aptitude dist-upgrade exit Puis reboot, tadam! reboot system boot 2.6.18-4-powerpc Wed Apr 11 21:10 - 23:32 (02:21) Ça roule :) ==== Problèmes == Erreurs pour slapd et dovecot (parce que j'ai gardé mes vieux fichiers de configuration? sûrement pour dovecot): SpamAssassin Mail Filter Daemon: disabled, see /etc/default/spamassassin Errors were encountered while processing: dovecot-common dovecot-imapd dovecot-pop3d slapd dovecot: dpkg: dependency problems prevent configuration of dovecot-imapd: dovecot-imapd depends on dovecot-common (>= 1.0.beta3-1); however: Package dovecot-common is not configured yet. dpkg: error processing dovecot-imapd (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of dovecot-pop3d: dovecot-pop3d depends on dovecot-common (>= 1.0.beta3-1); however: Package dovecot-common is not configured yet. dpkg: error processing dovecot-pop3d (--configure): dependency problems - leaving unconfigured slapd: Creating new user openldap... adduser: Warning: that home directory does not belong to the user you are currently creating. done. Backing up /etc/ldap/slapd.conf in /var/backups/slapd-2.2.23-8... done. Updating config access directives... done. Moving old database directories to /var/backups: - directory dc=zongo,dc=be... done. Loading from /var/backups/slapd-2.2.23-8: - directory dc=zongo,dc=be... fixing, failed. Loading the database from the LDIF dump failed with the following error while running slapadd: /etc/ldap/slapd.conf: line 97: rootdn is always granted unlimited privileges. slapadd: line 14: database (dc=zongo,dc=be) not configured to hold "dc=localdomain" slapadd: line 14: database (dc=zongo,dc=be) not configured to hold "dc=localdomain" dpkg: error processing slapd (--configure): subprocess post-installation script returned error exit status 1 ===== /[[WackoWiki]] == Lorsque je surfe sur le wiki, il y a de temps en temps une page blanche qui s'affiche, je dois faire un refresh de la page. Problème de session? Apparemment non: problème de table qui a crashé: Dans /var/log/syslog: Apr 11 22:27:06 localhost mysqld[2358]: 070411 22:27:06 [ERROR] /usr/sbin/mysqld: Table './wiki/wakkaR4_referrers' is marked as crashed and should be repaired Solution: /etc/init.d/mysql stop cd /var/lib/mysql myisamchk -cs wiki/*.MYI myisamchk: MyISAM file wiki/wakkaR4_referrers.MYI myisamchk: warning: Table is marked as crashed myisamchk: error: Key in wrong position at page 7168 MyISAM-table 'wiki/wakkaR4_referrers.MYI' is corrupted Fix it using switch "-r" or "-o" myisamchk -r wiki/wakkaR4_referrers.MYI /etc/init.d/mysql start Et c'est bon (((http://snippets.dzone.com/posts/show/1218 source))). ===== Gallery == The requested URL /gallery/ was not found on this server. Il faut rajouter dans le fichier de config /[[Apache2]]: Alias /gallery/ "/usr/share/gallery/" Ensuite, il faut reconfigurer (avec le wizard), et upgrader. Rien de particulier, suivre les instructions. ===== ((/[[LDAP]])) == J'ai fait: aptitude purge slapd aptitude install slapd sur phpldapadmin: Your config.php is missing Server Definitions. Please see the sample file config/config.php.example. C'est parce que le fichier de config n'est plus bon. J'ai donc fait: cd /etc/phpldapadmin mv config.php config.php.old cp /usr/share/phpldapadmin/config/config.php ./config.php Ensuite, il faut recréer l'addressbook. J'ai donc récupérer le dump en .ldif qui avait été fait lors de la mise à jour, mais il y a fallut enlever des lignes en trop avec sed (comme un cochon): sed -e '/^structuralObjectClass/d' /home/carl/addressbook070410.ldif > /home/carl/addbook.ldif sed -e '/^entryUUID/d' /home/carl/addbook.ldif > /home/carl/addbook2.ldif sed -e '/^creatorsName/d' /home/carl/addbook2.ldif > /home/carl/addbook3.ldif sed -e '/^createTimestamp/d' /home/carl/addbook3.ldif > /home/carl/addbook4.ldif sed -e '/^entryCSN/d' /home/carl/addbook4.ldif > /home/carl/addbook5.ldif sed -e '/^modif/d' /home/carl/addbook5.ldif > /home/carl/addbook6.ldif Puis rentrer ça dans [[LDAP]]: ldapadd -x -D 'cn=admin,dc=zongo, dc=be' -f /home/carl/addbook6.ldif -W Et c'est bon. ===== Dovecot == Le vieux fichier de config n'est plus bon, j'ai donc pris le nouveau, puis je l'ai adapté après avoir fait: aptitude upgrade La ligne pour arriver à la mailbox: mail_location = maildir:/var/mail/%u/inbox === Passage à php5 == 15/02/08 Cela s'est bien passé, il faut installer php5 php5-common php5-gd php5-ldap php5-mysql et libapache2-mod-php5 Il faut retirer php4 php4-common php4-gd php4-ldap php4-mysql et libapache2-mod-php4 Ensuite, dans /var/www/wiki/wakka.php, il faut commenter la ligne 254: $cache->Log("Before Run wacko=".$wacko); cf. bug: ((http://bugs.wackowiki.de/view.php?id=78 wacko dies on php 5.2)). Cela permettra notamment d'installer: * /[[DruPal]] 6 * les futures versions de /[[RoundCube]] === To do == * --sitebar-- upgrade en cliquant sur le bouton upgrade quand j'ai browsé * --typeone-- * --oberleiter-- * --mail-- * --grenier-- * --https-- * --squirrelmail-- mis /[[RoundCube]] à la place * --ldap: à réparer-- * --[[rsync]]-- * /[[DruPal]]: news aggregator mis à jour toutes les heures tout seul * /[[RoundCube]]: accès à l'annuaire [[LDAP]] * server ical: /[[DavICal]] === Problèmes == ==== crash 04/04/2008 == Crash après 4:17:01 am. * j'ai pu faire une session ssh, mais tout déconnait (I/O error ou segfault pour dmesg) > éteint à la main * reboot, dans shell de fortune: fsck -y /dev/hda6 (c'est /var) * reboot, mysql ne démarre pas parce qu'il y a encore un problème avec /var, re-fsck * il y a des erreurs: ide-pmac lost interrupt, dma status: 8480 hda: lost interrupt hda: dma_intr: status=0x58 { DriveReady SeekComplete DataRequest } ide: failed opcode was: unknown hda: dma_intr: status=0x51 { DriveReady SeekComplete DataRequest } hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=34390056, high=2, low=835624, sector=34390014 ide: failed opcode was: unknown end_request: I/O error, dev hda, sector 34390014 Buffer I/O error on device hda6, logical block 6815856 jusque sector=34390021 logical block 6815863 * reboot > ok Dans syslog: Apr 4 14:06:01 localhost kernel: ide-pmac lost interrupt, dma status: 8400 Apr 4 14:06:01 localhost kernel: hda: lost interrupt Apr 4 14:06:01 localhost kernel: hda: dma_intr: status=0x58 { DriveReady SeekComplete DataRequest } Apr 4 14:06:01 localhost kernel: ide: failed opcode was: unknown Apr 4 14:06:01 localhost kernel: hda: status timeout: status=0xd0 { Busy } Apr 4 14:06:01 localhost kernel: ide: failed opcode was: unknown Apr 4 14:06:01 localhost kernel: hda: DMA disabled Apr 4 14:06:01 localhost kernel: hdb: DMA disabled Apr 4 14:06:01 localhost kernel: hda: drive not ready for command Apr 4 14:06:09 localhost kernel: ide0: reset: success cf. ((http://ubuntuforums.org/showthread.php?t=204827 kernel reports lost interrupt, hd turns read-only)) et ((http://groups.google.co.uk/group/linux.debian.ports.powerpc/browse_frm/thread/f12646d58f5f7b23/cfae90a4cc189071%23cfae90a4cc189071%5D DMA disabled after lost interrupt (on ibook))) La suite sur /[[MacMini]]/Linux