Horde 3.0.9 and IMP H3-4.0.4 released!
Here is an howto for upgrading:
------------------------------------------------------
# cd /var/www/html/
# fetch
http://ftp.horde.org/pub/horde/horde-latest.tar.gz
# tar xzpf horde-latest.tar.gz
# rm -f horde-latest.tar.gz
# cd horde-3.0.9/config/
# mv conf.php.dist conf.php
# cp conf.php conf.php.bak
# cp conf.php conf.php.orig
# mv hooks.php.dist hooks.php
# mv mime_drivers.php.dist mime_drivers.php
# mv motd.php.dist motd.php
# mv nls.php.dist nls.php
# mv prefs.php.dist prefs.php
# mv registry.php.dist registry.php
# chmod 777 *
# cd ../scripts/sql/
Open /var/www/html/horde/scripts/sql/create.mysql.sql and search for the password of your horde MySQL database!
Copy paste that password in the following file:
# ee create.mysql.sql
Then open your browser, and go to
http://0.0.0.0/horde-3.0.9/test.php
(Where 0.0.0.0 is you should set your server IP!)
On that page everything (except PostgreSQL and MIME Magic Support (fileinfo)) should be on green (YES/SUPPORTED).
You may get an warning that your memory_limit is not disabled, I suggest you set this to 64MB in your php.ini.
If not all is green, then make sure it will be before you go to the next steps.
# cd ../../
# fetch
http://ftp.horde.org/pub/imp/imp-latest.tar.gz
# tar xzpf imp-latest.tar.gz
# rm -f imp-latest.tar.gz
# mv imp-h3-4.0.4 imp
# cd imp/config/
# mv filter.txt.dist filter.txt
# mv header.txt.dist header.txt
# mv menu.php.dist menu.php
# mv mime_drivers.php.dist mime_drivers.php
# mv motd.php.dist motd.php
# mv prefs.php.dist prefs.php
# mv servers.php.dist servers.php
# mv trailer.txt.dist trailer.txt
# cp conf.xml conf.php
# cp conf.php conf.php.bak
# cp conf.php conf.php.orig
# chmod 777 *
# ee servers.php
Search for:
$servers['imap'] = array(
'name' => 'IMAP Server',
'server' => 'imap.example.com',
'hordeauth' => false,
'protocol' => 'imap/notls',
'port' => 143,
'folders' => 'mail/',
'namespace' => '',
'maildomain' => 'example.com',
'smtphost' => 'smtp.example.com',
'smtpport' => 25,
'realm' => '',
'preferred' => '',
'dotfiles' => false,
'hierarchies' => array()
);
And replace with:
$servers['imap'] = array(
'name' => 'IMAP Server',
'server' => 'localhost',
'hordeauth' => 'full',
'protocol' => 'imap',
'port' => 143,
'folders' => '',
'namespace' => '',
'maildomain' => '',
'smtphost' => '',
'smtpport' => 25,
'realm' => '',
'preferred' => '',
'dotfiles' => false,
'hierarchies' => array()
);
Then visit
http://0.0.0.0/horde-3.0.9/, choose “Management” and after that choose for “Settings”, then choose “E-mail (imp)” and choose “Generate e-mail configuration”. Then choose “Settings” again and select “Horde (horde)”. Then go to “Database” and make sure it will be the same as the following:
Database: MySQL (Do NOT select MySQL 4.1, even if you use this on your server!)
Database server: localhost
Username: horde
Password: The password you set in /var/www/html/horde-3.0.9/scripts/sql/create.mysql.sql.
Connect to database: UNIX Sockets
Location of UNIX socket: /tmp/mysql.sock (most of the time this is okay, if it’s not: check your server where mysql.sock is located.
Database name: horde
charset: iso-8859-1
Then click on “Generate Horde configuration” at the bottem of the page.
Then go to “Preference System” and at “What preferences driver should we use?” select “SQL Database”.
Name of the preference table: horde_prefs
Then click on “Generate Horde configuration” at the bottem of the page.
Go to “Mailer” and set:
What method should we use for sending mail?: Use SMTP server
The server to connect to [localhost]: localhost
The port to connect to [25]: 25
The local hostname / domain [localhost]: localhost
SMTP authentication: No authentication
You can leave "The username to use for SMTP auth" and "The password to use for SMTP auth" empty!
Then click on “Generate Horde configuration” at the bottem of the page.
Then go to “Problem Reporting” and change the e-mailadresse (
[email protected]?).
Then click on “Generate Horde configuration” at the bottem of the page.
Then go to “Authentication” and make sure it’s the same as following:
Which users should be treated as administrators (root, super-user) by Horde?: admin
Should we always store and validate the IP address of the client (as seen by the web server) in the session? Doing so will help increase security by ensuring that an attacker from another host can not try to hijack the session: YES (selected)
What backend should we use for authenticating users to Horde?: Let a Horde application handle authentication.
The application which is providing authentication: imp
Then click on “Generate Horde configuration” at the bottem of the page.
Go back to your SSH session and type:
# cd ../../
# chown root:apache config/*
# chmod 0440 config/*
# cd imp
# chown root:apache config/*
# chmod 0440 config/*
# chmod 000 /var/www/html/horde-3.0.9/scripts/sql/create.mysql.sql
# cd ../../
Go to
http://0.0.0.0/horde-3.0.9/ and test if all is working fine! If it is:
# rm -rf horde
# mv horde-3.0.9 horde
That’s all!
------------------------------------------------------
Enjoy...
