[cvs] [Wiki] changed: CentOS5InstallationNotes

Jan Schneider jan at horde.org
Sun Nov 4 13:32:07 UTC 2007


jan  Sun, 04 Nov 2007 05:32:07 -0800

Modified page: http://wiki.horde.org/CentOS5InstallationNotes
New Revision:  1.13
Change log:  Layout tweaks

@@ -1,49 +1,47 @@
 [[toc]]
-+ ** Installing Horde Groupware Webmail Edition on CentOS 5 **

-Horde Groupware Webmail Edition is a free, enterprise ready, browser based
communication suite. Users can read, send and organize email messages and
manage and share calendars, contacts, tasks and notes with the standards
compliant components from the Horde Project. Horde Groupware Webmail Edition
**bundles the separately available applications IMP, Ingo, Kronolith, Turba,
Nag and Mnemo.**
++ Installing Horde Groupware Webmail Edition on !CentOS 5

-||http://www.horde.org/webmail/||
+[http://www.horde.org/webmail/ Horde Groupware Webmail Edition] is a free,
enterprise ready, browser based communication suite. Users can read, send
and organize email messages and manage and share calendars, contacts, tasks
and notes with the standards compliant components from the Horde Project.
Horde Groupware Webmail Edition bundles the separately available
applications IMP, Ingo, Kronolith, Turba, Nag and Mnemo.


 ++ Versions

-* CentOS 5.0 i386 (OS)
+* !CentOS 5.0 i386 (OS)
 * Horde Groupware Webmail Edition 1.0.3 (October 2 2007)
 * Apache 2.2.3 (http server)
-* MySQL 5.0.22 (db server)
+* !MySQL 5.0.22 (db server)
 * Postfix 2.3.3 (mail server)
 * Dovecot 1.0 (IMAP)


-++ Set up your host name and address (ONLY IF YOU DIDN'T DO IT AT
INSTALLATION)
+++ Set up your host name and address

-* USe system-config-network-tui to set up IP, Netmask and Gateway:
+//This is only necessary if you didn't do it at installation.//
+
+Use system-config-network-tui to set up IP, Netmask and Gateway:

 <code>
 system-config-network-tui
 </code>

-
-* Edit /etc/sysconfig/network and set your hostname:
+Edit /etc/sysconfig/network and set your hostname:

 <code>
 NETWORKING=yes
 NETWORKING_IPV6=yes
 HOSTNAME=yourhostname.yourdomain.com
 </code>

-
-* Edit /etc/resolv.conf and add your DNS servers:
+Edit /etc/resolv.conf and add your DNS servers:

 <code>
 nameserver 208.67.222.222
 nameserver 208.67.220.220
 </code>

-
-* Edit /etc/hosts to something like this, according to your system
settings:
+Edit /etc/hosts to something like this, according to your system settings:

 <code>
 # Do not remove the following line, or various programs
 # that require network functionality will fail.
@@ -51,17 +49,15 @@
 192.168.0.100     yourhostname.yourdomain.com  yourhostname
 ::1               localhost6.localdomain6      localhost6
 </code>

-
-* Restart network:
+Restart network:

 <code>
 service network restart
 </code>

-
-* If your using GUI interface (like gnome), you may need to restart it:
+If your using GUI interface (like gnome), you may need to restart it:

 <code>
 init 6
 </code>
@@ -71,30 +67,33 @@

 <code>
 yum install -y gettext httpd mysql mysql-server dovecot postfix
system-switch-mail perl

-yum install -y php php-mysql php-xml php-imap php-mbstring php-mcrypt
php-pecl-Fileinfo php-pecl-memcache php-pear-DB php-pear-File php-pear-Log
php-pear-Mail-Mime php-pear-Auth-SASL php-pear-Date php-pear-HTTP-Request
php-pear-Mail php-pear-Net-Sieve php-pear-Net-Socket php-pear-Net-SMTP
+yum install -y php php-mysql php-xml php-imap php-mbstring php-mcrypt
php-pecl-Fileinfo php-pecl-memcache \
+               php-pear-DB php-pear-File php-pear-Log php-pear-Mail-Mime
php-pear-Auth-SASL php-pear-Date \
+               php-pear-HTTP-Request php-pear-Mail php-pear-Net-Sieve
php-pear-Net-Socket php-pear-Net-SMTP
 </code>


 ++ Configuring Postfix and Dovecot

-* Turn off sendmail
+Turn off sendmail:
+
 <code>
 service sendmail stop
 chkconfig sendmail off

 system-switch-mail
 (select postfix)
 </code>

-* Configure postfix and dovecot
+Configure Postfix and Dovecot:

 <code>
 postconf -e 'home_mailbox = Maildir/'
 </code>

-* Edit /etc/dovecot.conf and add the following to the end of the file:
+Edit /etc/dovecot.conf and add the following to the end of the file:

 <code>
 # to allow the creation of mail subfolders
 mail_location = maildir:~/Maildir
@@ -107,11 +106,10 @@
 # Enable IMAP protocol
 protocols = imap
 </code>

-* To configure the rest of postfix, such as domain name and secure
connections, take a look at this nice tutorial:
+To configure the rest of postfix, such as domain name and secure
connections, take a look at this nice tutorial:
http://fedorasolved.org/server-solutions/postfix-mail-server

-||http://fedorasolved.org/server-solutions/postfix-mail-server||

 ++ Start services

 <code>
@@ -127,32 +125,30 @@
 service mysqld restart
 chkconfig mysqld on
 </code>

-* Configure mysqld root password:
+Configure mysqld root password:

 <code>
 /usr/bin/mysqladmin -u root password 'new-password'
 </code>


-++ Download Horde G. W. Edition and extract it
+++ Download Horde Groupware Webmail Edition and extract it

-* Get the latest stable version of Horde Groupware Webmail Edition:
+Get the latest stable version of Horde Groupware Webmail Edition from
http://www.horde.org/download/app/?app=webmail.

-||http://www.horde.org/download/app/?app=webmail||
-
-* Extract files and rename folder
+Extract files and rename folder:

 <code>
 tar zxf horde-webmail-*.tar.gz -C /var/www/html/
 mv /var/www/html/horde-*/ /var/www/html/horde/
 </code>


-++ Creating database and tables in MySQL
+++ Creating database and tables in !MySQL

-* Run the setup.php script:
++++ Run the setup.php script:

 <code>
 cd /var/www/html/horde/scripts/
 ./setup.php
@@ -165,9 +161,9 @@
 Press 2; yes; root; root-mysql-password.

 Press 3; specify an existing IMAP user to have horde administration
permissions (i.e. your current linux user).

-* Create user horde in MySQL and grant horde DB permissions
++++ Create user horde in !MySQL and grant horde DB permissions

 PS: Apparently, this should be done by ./setup.php script. So it's better
to check out if the user and permission already exists. If not:

 Edit a text file and change the password for the same as in Step 1 above:
@@ -205,9 +201,9 @@


 ++ Configure Apache and PHP

-* Add a "horde.conf" file to /etc/httpd/cond.d:
+Add a "horde.conf" file to /etc/httpd/cond.d:

 <code>
 #
 # Horde
@@ -265,78 +261,77 @@
 	Allow from 127.0.0.1
 </LocationMatch>
 </code>

-* Change horde.conf permission:
+Change horde.conf permission:

 <code>
 chmod 0644 -v /etc/httpd/conf.d/horde.conf
 </code>

-
-* Increase memory_limit option in /etc/php.ini to 32MB:
+Increase memory_limit option in /etc/php.ini to 32MB:

 <code>
 memory_limit = 32M
 </code>

-
-* Restart httpd:
+Restart httpd:

 <code>
 service httpd restart
 </code>


 ++ Check if everything is alright

-* Open the following address in your browser:
+Open the following address in your browser:

 <code>
 http://localhost.localdomain/horde/test.php
 </code>


 ++ Security configuration

-* Secure config files:
+Secure config files:

 <code>
 chown apache:root -R /var/www/html/horde/config
 chown apache:root -R /var/www/html/horde/*/config
 chmod -R go-rwx /var/www/html/horde/config
 chmod -R go-rwx /var/www/html/horde/*/config
 </code>

-* Secure scripts:
+Secure scripts:

 <code>
 chown -R root:root /var/www/html/horde/scripts
 chown -R root:root /var/www/html/horde/*/scripts
 chmod -R go-rwx /var/www/html/horde/scripts
 chmod -R go-rwx /var/www/html/horde/*/scripts
 </code>

-* Secure test.php:
+Secure test.php:

 <code>
 chmod a-rwx /var/www/html/horde/test.php
 chmod a-rwx /var/www/html/horde/*/test.php
 </code>
+

 ++ Finishing configuration

-* Open the following url in your browser and log into horde with the
administrator user (defined above in Option 2 when creating databases)
+Open the following url in your browser and log into horde with the
administrator user (defined above in Option 2 when creating databases):

 <code>
 http://localhost.localdomain/horde
 </code>

 (PS: use full URL address, with host and domain name)

-Fell free to change other options, as you like. The good thing about H G W
E is it comes pretty much configured and ready for use!
+Fell free to change other options, as you like. The good thing about Horde
Groupware Webmail Edition is it comes pretty much configured and ready for
use!

-* Remember to restart httpd after you make changes:
+Remember to restart httpd after you make changes:

 <code>
 service httpd restart
 </code>


More information about the cvs mailing list