horde on suse10.1 with squirrelmail

1. Desktop selection|Other|Text Mode.
2. Change the Installation source:

[url]ftp://mirror.pacific.net.au/linux/opensuse/distribution/SL-10.1/inst-source/[/url]

3. Intallation Setting.
Apache2: apache2, apache2-devel, apache2-mod_ php5, apache2-prefork.
Mysql: mysql, php5-mysql.
Php: php5, php5-ctype, php5-devel, php5-dom, php5-ftp, php5-gd, php5-gettext, php5-iconv, php5-imap, php5-mbstring, php5-mcrypt, php5-mhash, php5-mysql, php5-openssl, php5-pear, php5-zlib.
automake, autoconf.
xorg-x11-libs.
NX.
wget.
glibc-devel

4. Firewall disabled.

5. Run the Online update now. Intall the recommended + mysql. Update kernel.(no update available)

6. Install PEAR packages, required by horde.

pear5 install -o Log Mail Mail_Mime DB Date File Services_Weather

pear5 channel-update pear.php.net

### The followings about PEAR may change in time as PEAR is continuously updating.
Update Pear:
pear5 upgrade-all
(ignore the warnings)
pear upgrade XML_RPC
pear config-set preferred_state alpha
pear install -a PEAR_Frontend_Web PEAR_Frontend_Gtk
pear install -a Auth_SASL Net_SMTP

7. Install horde packages.
mkdir /root/download/horde-download
cd /root/download/horde-download
wget -c [url]ftp://ftp.horde.org/pub/horde/horde-3.1.1.tar.gz[/url]
wget -c [url]ftp://ftp.horde.org/pub/imp/imp-h3-4.1.1.tar.gz[/url]
wget -c [url]ftp://ftp.horde.org/pub/ingo/ingo-h3-1.1.1.tar.gz[/url]
wget -c [url]ftp://ftp.horde.org/pub/turba/turba-h3-2.1.1.tar.gz[/url]
wget -c [url]ftp://ftp.horde.org/pub/gollem/gollem-h3-1.0.2.tar.gz[/url]
wget -c [url]ftp://ftp.horde.org/pub/accounts/accounts-2.1.2.tar.gz[/url]
wget -c [url]ftp://ftp.horde.org/pub/forwards/forwards-h3-3.0.tar.gz[/url]
wget -c [url]ftp://ftp.horde.org/pub/passwd/passwd-h3-3.0.tar.gz[/url]
wget -c [url]ftp://ftp.horde.org/pub/vacation/vacation-h3-3.0.tar.gz[/url]
wget -c [url]ftp://ftp.horde.org/pub/kronolith/kronolith-h3-2.1.1.tar.gz[/url]
wget -c [url]ftp://ftp.horde.org/pub/mnemo/mnemo-h3-2.1.tar.gz[/url]
wget -c [url]ftp://ftp.horde.org/pub/nag/nag-h3-2.1.tar.gz[/url]

cd /srv/www/htdocs
tar zxvf /root/download/horde-download/horde-3.1.1.tar.gz
mv horde-3.1.1 horde

cd horde
tar zxvf /root/download/horde-download/imp-h3-4.1.1.tar.gz
tar zxvf /root/download/horde-download/ingo-h3-1.1.1.tar.gz
tar zxvf /root/download/horde-download/turba-h3-2.1.1.tar.gz
tar zxvf /root/download/horde-download/gollem-h3-1.0.2.tar.gz
tar zxvf /root/download/horde-download/accounts-2.1.2.tar.gz
tar zxvf /root/download/horde-download/forwards-h3-3.0.tar.gz
tar zxvf /root/download/horde-download/passwd-h3-3.0.tar.gz
tar zxvf /root/download/horde-download/vacation-h3-3.0.tar.gz
tar zxvf /root/download/horde-download/kronolith-h3-2.1.1.tar.gz
tar zxvf /root/download/horde-download/mnemo-h3-2.1.tar.gz
tar zxvf /root/download/horde-download/nag-h3-2.1.tar.gz

mv imp-h3-4.1.1 imp
mv ingo-h3-1.1.1 ingo
mv turba-h3-2.1.1 turba
mv gollem-h3-1.0.2 gollem
mv accounts-2.1.2 accounts
mv forwards-h3-3.0 forwards
mv passwd-h3-3.0 passwd
mv vacation-h3-3.0 vacation
mv kronolith-h3-2.1.1 kronolith
mv mnemo-h3-2.1 mnemo
mv nag-h3-2.1 nag

Use all the default configuration files. There should be 2 warnings as there are no .dist files in "vacation" and "forware".
cd /srv/www/htdocs/horde
for a in . imp ingo turba gollem accounts forwards passwd vacation kronolith mnemo nag; do cd /srv/www/htdocs/horde/$a/config; for f in *.dist; do cp $f `basename $f .dist`; done; done


8.
chown -R wwwrun:www horde
chmod -R o-rwx horde




9. Using YaST, enable PHP5 and mime_magic module. Start HTTP server.

10.  Use YaST to enable MySQL in System Services (Runlevel).
     Start MySQL by: /etc/rc.d/mysql start (if not already start).
    cd /srv/www/htdocs/horde/scripts/sql
    vi create.mysql.sql
Modify line 28, chanage:
        PASSWORD('horde')
to:
        PASSWORD('1*****')
    mysql -u root -p < create.mysql.sql
    mysqladmin -u root password 't********'
    mysqladmin -u root -h tbird.hasux.com password 't********'
11.
Make sure in /etc/apache2/httpd.conf, there is:
DirectoryIndex index.html index.html.var index.php

12. In /etc/php5/apache2/php.ini, change:
memory_limit            800M
post_max_size           800M
upload_max_filesize     800M
/etc/rc.d/apache2 restart

13. [url]http://202.82.144.90/horde/test.php[/url]
Install all the missing modules. And also the missing modules for other projects.
pear install -a XML_Serializer
pear install -f Cache

14. [url]http://192.168.27.25/horde/[/url]
Go to Administration->Setup. Initialize all the Horde config file.
In Authentication:
Which users should be treated as administrators (root, super-user) by Horde? [email protected] (or add more)
What backend should we use for authenticating users to Horde? IMAP authentication
Configuration type | Separate values
The hostname or IP address of the server | mail.hasux.com

Database
* What database backend should we use?      MySQL
Request persistent connections?         yes
* Database server/host                 localhost
* Username to connect to the database as     horde
Password to connect with             1*****
* Database name to use                 horde


Enable all packages to use MySQL.
Request persistent connections? y


15.
vi /srv/www/htdocs/horde/imp/config/prefs.php
change:
    'value' => 'sent-mail',
to:
    'value' => 'Sent',

change:
    'value' => 'drafts',
 to:
    'value' => 'Drafts',

16.    
vi /srv/www/htdocs/horde/imp/config/servers.php
$servers['imap'] = array(
    'name' => 'Hasux Mail Server',
    'server' => 'mail.hasux.com',
    'hordeauth' => 'full',
    'protocol' => 'imap/notls',
    'port' => 143,
    'maildomain' => 'hasux.com',
    'smtphost' => 'mail.hasux.com',
    'smtpport' => 25,
    'realm' => '',
    'preferred' => '',
);

Repair the /srv/www/htdocs/horde/vacation/config/conf.php file on line 6.

17.
Configure the Apache so that user a access the horde using only the URL [url]http://host.domain.com[/url] instead of [url]http://host.domain.com/horde/.[/url]

Enable rewrite module of apache2 by using YaST.
Add a virtual host, webmail.antivs.com, in Apache using YaST.

vi /etc/apache2/vhosts.d/yast2_vhosts.conf
Inside the VirtualHost of webmail.antivs.com
Add:
RewriteEngine on
RewriteRule   ^/$  /horde/  [R]

/etc/rc.d/apache2 restart


18. Configure to use SSL.
Using YaST, enable ssl module of Apache2.
In /etc/apache2/default-server.conf, add:
Include /etc/apache2/extra/httpd-ssl.conf

In /etc/apache2/listen.conf comment out "Listen 443".

本文出自 “doff” 博客,谢绝转载!

你可能感兴趣的:(职场,服务器,休闲)