Monday, December 20, 2010

Linux RHEL/CentOS 5.5 RoundCube webmail setup for latest stable tar install.

Please see the update note HERE

RoundCube Webmail is a modern webmail server with many capabilities. The stock RHEL/CentOS roundcubemail rpm is WAY out of date. Getting the new (as of this writing) roundcubemail 0.4.2 installed will require a couple other newer core packages (PHP 5.2.1 or higher) that are not standard for RHEL/CentOS 5.5. There is a rather excellent group of people at the IUS Community Project that will help provide the ability to breeze through the install of the latest version with mysql.

  1. download the stable version:
    wget "http://downloads.sourceforge.net/project/roundcubemail/roundcubemail/0.4.2/roundcubemail-0.4.2.tar.gz"
  2. install the IUS and EPEL repository:
    wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5.5/i386/ius-release-1.0-6.ius.el5.noarch.rpm
    wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5.5/i386/epel-release-1-1.ius.el5.noarch.rpm
    rpm -Uhv ius-release-1.0-6.ius.el5.noarch.rpm epel-release-1-1.ius.el5.noarch.rpm
  3. understand the possible issues with 3rd party repositories and how to use priorities or protectBase
  4. install the IUS yum plugin (if you missed it from the IUS instructions):
    yum install yum-plugin-replace
  5. install the old roundcubemail from epel to get most of the package dependencies out of the way:
    yum install roundcubemail
  6. remove the old roundcubemail:
    rpm -e roundcubemail
  7. replace the old stock php:
    yum replace php --replace-with php53
  8. make sure you have the basics of what you need:
    yum install php53-imap php53-mcrypt php53-ldap php53-xml php53-mysql php53-pspell
  9. (re)start the web server:
    service httpd restart
  10. (re)start the mysql database server:
    service mysqld restart
  11. setup the mysql database:
    echo "CREATE DATABASE roundcubemail; GRANT ALL PRIVILEGES ON roundcubemail.* TO USERNAME@localhost IDENTIFIED BY 'PASSWORD'; FLUSH PRIVILEGES;"|mysql
  12. configure roundcubemail per directions

4 comments:

  1. So after step one we download the current stable version of roundcube. Step five we install old version of roundcube. Step six we remove the old version of roundcube. Now what? Your directions are incomplete. Shall we use the download from step one?

    ReplyDelete
  2. The reason for the initial install of the old version is simply to get all of the package dependencies via yum... saves a lot of issues going down the road. As the step says, "to get most of the package dependencies out of the way".
    The other part you are correct. I have left out the tar extraction step and makes this incomplete.

    ReplyDelete
  3. date.timezone: NOT OK(empty value detected)

    ReplyDelete
  4. RoundcubeSkins.Com COLORFUL skins for Roundcube Webmail Client !!! Roundcube our skins are compatible for 0.8.x, 0.9.0 and Soon we will be coming up with all our roundcubeskins compatible with 1.0 beta release of roundcube webmail. So keep visiting our site for updates!!

    ReplyDelete