[horde] Can't install with PEAR properly Horde 4.0.13 on Debian GNU/Linux Squeeze

Jan Schneider jan at horde.org
Mon Jan 23 10:10:46 UTC 2012


Zitat von Csanyi Pal <csanyipal at gmail.com>:

> Hi,
>
> I'm trying to install Horde on my Debian stale server but without
> success.
>
> I tried several times to install it, but not get the complete webpage,
> say the left menu is empty.
>
> I did the followings following INSTALL document:
> pear config-show | less
>
> I'm searching (/) for:
> PEAR directory
> Find it:
> PEAR directory  php_dir /usr/share/php
>
> sudo nano /etc/php5/apache2/php.ini
> I'm searching here (Ctrl+w) for:
> include_path
>
> Find it:
> ;include_path = ".:/usr/share/php"
>
> Remove the ";" character, then save file.
>
> Restart Apache2 webserver:
> sudo /etc/init.d/apache2 restart
>
> I have installed php-pear using system package manager: aptitude.
> sudo pear upgrade PEAR
>
> sudo pear channel-discover pear.horde.org
>
> sudo pear install horde/horde_role
> sudo pear run-scripts horde/horde_role
> Filesystem location for the base Horde application : /var/www/horde/
>
> sudo pear install -a -B horde/horde
>
> sudo pear config-show
> PEAR directory   php_dir  /usr/share/php
>
> sudo nano /etc/php5/apache2/php.ini
> Ctrl+w :include_path
> include_path = ".:/usr/share/php"
>
> sudo nano /etc/apache2/httpd.conf
> AddType application/x-httpd-php .php
> DirectoryIndex index.php
>
> cd /var/www/horde/config
> sudo cp conf.php.dist conf.php
>
> sudo nano /var/www/horde/config/conf.php
> $conf['auth']['admins'] = array('username');

This locked you out as an admin.

> NOTE! I would like to setup Horde as VirtualHost, but don't know
> how. The following doesn't work for some reason, so I omit this setting:
>
> sudo nano /etc/apache2/sites-available/default
>    Alias /horde /var/www/horde
>    <Directory /var/www/horde>
>        Options FollowSymLinks
>        AllowOverride Limit
>        deny from all
>        allow from 192.168.10.90
>    </Directory>
>    <Files ~ "\.(inc|bak)$">
>        deny from all
>    </Files>
>
> sudo /etc/init.d/apache2 restart
>
> NOTE AND
>
> Setup IMAP mailing: exim4+dovecot IMAP
> http://www.papercut.com/blog/matt/2004/08/24/new-mail-server-debian-exim4-dovecot-imap/
>
> http://wiki.debian.org/GmailAndExim4
>
> sudo nano /etc/exim4/passwd.client
> *.google.com:username at gmail.com:Jelszavam
>
> chown root:Debian-exim /etc/exim4/passwd.client
> chmod 640 /etc/exim4/passwd.client
>
> The followings can be done only as root:
> echo username: username at gmail.com' >> /etc/email-addresses
> echo 'username at localhost: username at gmail.com' >> /etc/email-addresses
> echo 'username at hostname: username at gmail.com' >> /etc/email-addresses
> echo 'username at hostname.localdomain: username at gmail.com' >>  
> /etc/email-addresses
>
> update-exim4.conf
> invoke-rc.d exim4 restart
> exim4 -qff
>
> tail /var/log/exim4/mainlog
> 2012-01-22 13:39:04 1RowhM-0000gX-9k Completed
> 2012-01-22 13:45:16 1RownM-00041o-UH
>  <= www-data at localhost U=www-data P=local S=728
> 2012-01-22 13:45:17 1RownM-00041o-UH
>  == www-data at localhost R=local_user
>  T=maildir_home defer (13): Permission denied:
>  cannot create /var/www/Maildir
> 2012-01-22 13:54:47 exim 4.72 daemon started:
>  pid=16494, -q30m, listening for SMTP on
>  [127.0.0.1]:25 [::1]:25
> 2012-01-22 13:54:47 Start queue run: pid=16498
> 2012-01-22 13:54:47 Start queue run: pid=16501 -qff
> 2012-01-22 13:54:47 1RownM-00041o-UH
>  Spool file is locked (another process is
>  handling this message)
> 2012-01-22 13:54:47 End queue run: pid=16501 -qff
> 2012-01-22 13:54:47 1RownM-00041o-UH
>  == www-data at localhost R=local_user
>  T=maildir_home defer (-52):
>  Retry time not yet reached
> 2012-01-22 13:54:47 End queue run: pid=16498
>
> mail username
> This works abowe.
>
> sudo apt-get install dovecot
>
> sudo aptitude install fetchmail
> sudo nano /etc/default/fetchmail
> START_DAEMON=yes
>
> mlocate .pem
>
> Does this serve the purpose?
> /etc/ssl/certs/GeoTrust_Primary_Certification_Authority.pem
>
> sudo cp /usr/share/doc/fetchmail/examples/fetchmailrc.example  
> /etc/fetchmailrc
>
> sudo chmod 600 /etc/fetchmailrc
> sudo nano /etc/fetchmailrc
> poll pop.gmail.com with proto POP3
>     user 'username at gmail.com' there with password 'password' is username here
>         options keep ssl sslfingerprint  
> '59:51:61:89:CD:DD:B2:35:94:BB:44:97:A0:39:D5:B4'
>             sslcertck sslcertpath /usr/share/ssl/certs
>
> sudo /etc/init.d/fetchmail restart
>
> http://wiki.dovecot.org/HowTo/EximAndDovecotSASL
>
> sudo nano /etc/dovecot/dovecot.conf
> mail_location = maildir:~/Maildir
>
> Only for the time of setup:
> sudo chown -R www-data.www-data /var/www/horde
>
>  http://192.168.10.1/horde/admin/config
>
> After setup:
> sudo chown -R root.root /var/www/horde
>
>
> At this point I can't get even http://192.168.10.1/horde/admin/config
> webpage when try to open it second or third time; for the first time I
> can to get it.
>
> However the left hand menu is empty.
>
> When I uninstall horde to get clean configuration next time, I get
> configurations as it was before. How can this happen? How can one clean
> the horde installation so the configurations get deleted also?
>
> --
> Regards from Pal
>
> --
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org


Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the horde mailing list