Hướng dẫn cài đặt OX 1. Cài đặt các dịch vụ cần thiết trước khi cài OX: yum install postgresql postgresql-server postgresql-libs yum install httpd httpd-manual yum install xerces-j2 yum install jdom yum install postgresql-jdbc yum install mod_jk-ap20 yum install perl-Convert-ASN1 yum install perl-ldap yum install perl-IO-Socket-SSL yum install perl-Net-SSLeay yum install perl-Authen-SASL yum install perl-XML-NamespaceSupport yum install perl-XML-SAX yum source java-1.4.2-sun( Download Java Community Process J2SE API 1.5.0 Beta 1) sửa thành yum install java-1.4.2 yum source javamail yum source jaf yum source jta =============================================================== ============== Package Arch Version Repository Size =============================================================== ============== Installing: geronimo-specs-compat i386 1.0-0.M2.2jpp.12.el5.centos base 5.5 k Installing for dependencies: axis i386 1.2.1-2jpp.6 base 3.1 M bcel i386 5.1-8jpp.1 base 995 k geronimo-specs i386 1.0-0.M2.2jpp.12.el5.centos base 231 k jakarta-commons-discovery i386 1:0.3-4jpp.1 base 133 k jakarta-commons-httpclient i386 1:3.0-7jpp.1 base 513 k jakarta-commons-logging i386 1.0.4-6jpp.1 base 105 k log4j i386 1.2.13-3jpp.2 base 634 k mx4j i386 1:3.0.1-6jpp.4 base 2.5 M regexp i386 1.4-2jpp.2 base 91 k wsdl4j i386 1.5.2-4jpp.1 base 385 k Transaction Summary =============================================================== ============== Install 11 Package(s) Update 0 Package(s) Remove 0 Package(s)
Total download size: 8.6 M
LDAP stuff Wget http://www.sietse.net/exoops/modules/OpenXchange/rh9/openldap-clients-2.0.278.i386.rpm Wget http://www.sietse.net/exoops/modules/OpenXchange/rh9/openldap-servers-2.0.278.i386.rpm rpm -Uvh openldap-servers-2.0.27-8.i386.rpm openldap-clients-2.0.27-8.i386.rpm service ldap start
Java stuff Tạo thư mục /usr/src/redhat/SOURCES. Download mã nguồn vào thư mục này: http://java.sun.com/products/javamail/downloads/index.html and download javamail1_3_3-ea-upd.zip. http://java.sun.com/products/javabeans/glasgow/jaf.html and download jaf-1_0_2upd2.zip. http://java.sun.com/products/jta/ and download the class files and javadocs. Wget http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_DeveloperSite/en_US/-/USD/VerifyItem-Start/javamail-1_4_1.zip? BundledLineItemUUID=.p9IBe.mOFkAAAEdAdVDSzyS&OrderID=Ox5IBe.mu2gAA AEd8dRDSzyS&ProductID=3v_ACUFBMTsAAAEYxBQ5AXuF&FileName=/javamail -1_4_1.zip Wget http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_DeveloperSite/en_US/-/USD/VerifyItem-Start/jaf-1_0_2-upd2.zip? BundledLineItemUUID=osNIBe.mR_kAAAEdkutDSzyU&OrderID=jd9IBe.mbnEAAA EdhutDSzyU&ProductID=J_vACUFBIFEAAAEYeEo5AXiq&FileName=/jaf-1_0_2upd2.zip Tạo các gói cho Sun software: cd /usr/src/redhat/SPECS vi java-1.4.2-sun.spec -- change buildver to 08 rpmbuild -ba java-1.4.2-sun.spec rpm -Uvh /usr/src/redhat/RPMS/i586/java-1.4.2-sun-1.4.2.08-1jpp.i586.rpm rpm -Uvh /usr/src/redhat/RPMS/i586/java-1.4.2-sun-devel-1.4.2.08-1jpp.i586.rpm vi /usr/src/redhat/SPECS/javamail.spec -- remove the line Obsoletes: javamail-monolithic -- change 1_3_2 to 1_3_3-ea -- change 1.3.2 to 1.3.3ea rpmbuild -ba javamail.spec vi /usr/src/redhat/SPECS/jaf.spec -- change 1_0_2-upd to 1_0_2-upd2 rpmbuild -ba jaf.spec rpmbuild -ba jta.spec cd /usr/src/redhat/RPMS/noarch rpm -Uvh jaf-1.0.2-4jpp.noarch.rpm javamail-1.3.3ea-1jpp.noarch.rpm javamailmonolithic-1.3.3ea-1jpp.noarch.rpm jta-1.0.1-0.b.3jpp.noarch.rpm Ant Yum install ant
akarta Tomcat 5 yum install tomcat5 tomcat5-admin-webapps service tomcat5 start This installation will trigger a lot of other packages; just install them. And check it works in your favorite web Browser: the URL is http://myhost:8080 or http://myhost:8080/manager. Wget http://svn.amster.com/misc/fc3-i386/open-xchange-0.8.0-6.tar.gz This installation will trigger a lot of other packages; just install them. And check it works in your favorite web Browser: the URL is http://myhost:8080 or http://myhost:8080/manager.
Configure Postgres First, start postgres: service postgresql start Edit the file /var/lib/pgsql/data/postgresql.conf and make sure there is a line with: tcpip_socket = true Edit the file /var/lib/pgsql/data/pg_hba.conf and make sure the following is in there: local all all trust host all all 127.0.0.1 255.255.255.255 trust Now restart postgres: service postgresql restart Installation: Go to http://mirror.open-xchange.org/ox/EN/community/download.htm and download open-xchange-0.8.0-5.tar.bz2 Make sure you set $OX_INSTALL to a sensible value, e.g. /usr/local/ox. cd /usr/src/ tar xjvf /path/to/open-xchange-0.8.0-5.tar.bz2 cd /usr/src/open-xchange-0.8.0-5 export OX_INSTALL=/usr/local/ox # On RedHat-9 ./configure \ --prefix=$OX_INSTALL \ --with-mailjar=/usr/share/java/javamail.jar \ --with-activationjar=/usr/share/java/activation.jar \ --with-jdomjar=/usr/share/java/jdom.jar \ --with-xercesjar=/usr/share/java/xerces-j2.jar \ --with-jsdkjar=/usr/share/java/servletapi5.jar \ --with-jdbcjar=/usr/share/pgsql/pg73jdbc3.jar \ --enable-webdav \
--with-htdocsdir=/var/www/html \ --with-cgibindir=/var/www/cgi-bin \ --with-dbname=openxchange \ --with-dbuser=openxchange \ --with-dbpass=xxx \ --with-dbhost=localhost \ --with-runuid=ox \ --with-rungid=ox # I added the following lines to the configure command for my own domainname: --with-domain=sietse.net \ --with-organization="Home of Vogons" \ --with-basedn="dc=sietse,dc=net" \ --with-rootdn="cn=admin,dc=sietse,dc=net" \ make make install You can safely ignore the error message on 'missing' when running configure. Post-installation Login.pl Try to enter the login screen, the URL is http://myhost/cgi-bin/login.pl If you have an "Internal server error", check your apache logfiles and perl config. Servlets Copy intranet.class and webmail.class in the tomcat webapps tree : cd /var/lib/tomcat5/webapps mkdir servlet mkdir servlet/WEB-INF mkdir servlet/WEB-INF/classes mkdir servlet/WEB-INF/lib cd servlet/WEB-INF/ cp $OX_INSTALL/share/servlets/*.class classes/ cp $OX_INSTALL/lib/* lib/ mv lib/uadmin . chown -R tomcat4:tomcat4 /var/lib/tomcat5 Now we need the file web.xml in /var/lib/tomcat5/webapps/servlet/WEB-INF. Here's mine: web.xml Then, restart Tomcat.
cd /var/lib/tomcat5/webapps/servlet/WEB-INF wget http://sietse.net/exoops/modules/OpenXchange/web.xml service tomcat5 restart Now, go to the URL http://myhost:8080/servlet/intranet. You should see a message "No running Server found" : it means that all is OK. Otherwise, try to have a look at the Manager: http://myhost:8080/manager/html To be able to pass the login prompt, you have to edit the file /etc/tomcat5/tomcatusers.xml and add a line like this: <user username="themanager" password="thepassword" roles="manager"/>