Note: I installed it on Redhat 9 with Apache 2, it could also work well in the same way on other Redhat versions.
(Users reported that it's working well on Fedora 1/2 see
Marius Andreiana's comment
for info about OpenSSL libraries. RH8 works also, it's not working on 7.x cause of LIBC versions)
Please send comments to my email.
PLEASE don't send me question, ask on the mailing list here
Here are the instructions:
--snip-- local all all trust host all all 127.0.0.1 255.255.255.255 trust host all all 0.0.0.0 255.255.255.255 reject --snap--To get a secure setup, replace trust with password, md5 or something else (depends on your PostgreSQL version) Don't forget to restart PostgreSQL after applying the changes ! (eg /etc/init.d/postgresql restart)
$ su -
Password:
# su - postgres
$ createdb ogo
$ createuser -A -D ogo
$ exit
# su - opengroupware
$ cd /opt/opengroupware.org/Database/PostgreSQL
$ psql ogo -U ogo
Welcome to psql 7.3.3, the PostgreSQL interactive terminal.
Type: \copyright for distribution terms
\h for help with SQL commands
\? for help on internal slash commands
\g or terminate with semicolon to execute query
\q to quit
ogo=> \i pg-build-schema.psql
[output cut]
ogo=> \q
$ source $HOME/OpenGroupware.org.sh
$ Defaults write NSGlobalDomain LSAdaptor PostgreSQL72
$ Defaults write NSGlobalDomain LSModelName OpenGroupware.org_PostgreSQL
$ Defaults write NSGlobalDomain LSConnectionDictionary '{databaseName = ogo; hostName = localhost; password = ""; port = 5432; userName = ogo}'
$ Defaults write NSGlobalDomain NGBundlePath /opt/opengroupware.org/Library/OpenGroupware.org
$ Defaults write NSGlobalDomain LSAttachmentPath /opt/opengroupware.org/documents
$ exit
# mkdir /opt/opengroupware.org/documents
# chown opengroupware.skyrix /opt/opengroupware.org/documents
# ln -s ~opengroupware/WebServerResources/* ~opengroupware/WOApps/OpenGroupware.woa/WebServerResources/
|
/opt/opengroupware.org/Libraries/ix86/linux-gnu/gnu-fd-nil /opt/skyrix/system/Libraries/ix86/linux-gnu/gnu-fd-nil
echo "source /opt/opengroupware.org/OpenGroupware.org.sh" >> ~/.bash_profile echo "export LD_ASSUME_KERNEL=2.4.1" >> ~/.bash_profile
/etc/init.d/opengroupware startNOTE:The following script isn't needed if using SysV init script but it's another way of running OpenGroupware that is suggested by Helge Hess here.
#!/bin/bash source $HOME/OpenGroupware.org.sh export LD_ASSUME_KERNEL=2.4.1 while [ "1" = "1" ]; do $HOME/WOApps/OpenGroupware.woa/ix86/linux-gnu/gnu-fd-nil/OpenGroupware \ -WOPort 20000 -WOHttpAllowHost localhost.localdomain ; done & exit 0
There are more than one way to setup Apache, I'll mention two of them. (Helge Hess explanation of the differences)
Note: maybe mod_rewrite could be a better way - but this is a working way.
add at the end of /etc/httpd/conf/httpd.conf (or wherever you wish - should be in VirtualHost if used) the following lines
###################### # OpenGroupware proxy ###################### ProxyPass /OpenGroupware http://localhost:20000/OpenGroupware ProxyPassReverse /OpenGroupware http://localhost:20000/OpenGroupware ProxyPass /OpenGroupware.woa http://localhost:20000/OpenGroupware.woa ProxyPassReverse /OpenGroupware.woa http://localhost:20000/OpenGroupware.woa ProxyPass /OpenGroupware.org http://localhost:20000/OpenGroupware.org ProxyPassReverse /OpenGroupware.org http://localhost:20000/OpenGroupware.org
####################################### # mod_ngobjweb Apache 2 Configuration ####################################### LoadModule ngobjweb_module /opt/opengroupware.org/WebServer/ngobjweb_2.0.40.so #OpenGroupware WebUINote : You should change ngobjweb_2.0.40.so on the 5th line to your appropriate Apache version.SetHandler ngobjweb-adaptor SetAppPort 20000 Alias /OpenGroupware.woa/WebServerResources/ /opt/opengroupware.org/WebServerResources/ #ZideStoreSetHandler ngobjweb-adaptor SetAppPort 23000 Alias /zidestore/so/images /opt/opengroupware.org/WOApps/ZideStore.woa/WebServerResources
chkconfig --add opengroupware
The common error that people get is that nothing is working... if you can't get more info from logs (check /var/log/ogo.log) try the followings:
Jul 20 11:58:21 OpenGroupware [28321]: WOHttpAdaptor: ACCESS DENIED: <InetSocketAddress: Your_Host_Name:61024>
try changing (in start.sh or at /etc/init.d/opengroupware) -WOHttpAllowHost localhost.localdomain from localhost.localdomain to your host name.