Where has all the groupware gone.....

Paul Pathiakis pathiaki2 at yahoo.com
Mon May 6 14:30:18 UTC 2013


Hi Jim,

Next issue,

All the scripts, cron job templates, version updates for SOGo, databases, etc. don't seem to be installed either.  Although some are RH/Linux specific, some are useful.

They are located in SOGo-2.0.5/Scripts.  I think that the place to put them is /usr/local/sogo/[S,s]cripts or some such.
Things that are missing that are, apparently, startup blockers:

/var/run/sogo/ directory needs to be created
/var/log/sogo/ directory need to be created and owned by sogo:sogo

(These will allow you to see that sogo is starting through the log file /var/log/sogo/sogo.log)

Next, since you have chosen that the port installs in /usr/local/GNUstep and SOGo is in the /usr/local/GNUstep/Local/Library/SOGo directory, that would probably be a good choice to be the home directory for the sogo user and a good location for the sogo.conf file (unless there's a location I'm not aware of.)

Here's the fun that I've been experiencing.... Apache interface to all 
this.  There's a couple of more things that should be put in the 'post 
install' message:

Apache needs to be configured with the proxy module(s) to use this software.  Go to your Apache port directory and type:  make config and enable the proxy module and the proxy_http submodule if it hasn't been  Also, you're going to need to define it in your httpd.conf file if this isn't a fresh install.

Next, uncomment the following line in the httpd.conf file:

Include etc/apache<VERS>/extra/httpd-vhosts.conf

 put this in the /usr/local/etc/apache<VERS>/extra/http-vhosts.conf (change domain, server name, IPs,  accordingly)


<VirtualHost *:80>
    ServerAdmin admin at example.com
    ServerAlias sogo.local
    DocumentRoot "/usr/local/GNUstep/Local/Library/SOGo/WebServerResources/"
    ServerName sogo.example.com
#    ErrorLog "/var/log/dummy-host.example.com-error_log"
#    CustomLog "/var/log/dummy-host.example.com-access_log" common
    ServerSignature Off

   Alias /SOGo.woa/WebServerResources/ /usr/local/GNUstep/SOGo/WebServerResources/
   Alias /SOGo/WebServerResources/ /usr/local/GNUstep/SOGo/WebServerResources/
   AliasMatch /SOGo/so/ControlPanel/Products/(.*)/Resources/(.*) /usr/local/GNUstep/Local/Library/SOGo/$1.SOGo/Resources/$2

   <Directory /usr/local/GNUstep/Local/Library/SOGo/>
      AllowOverride None
      Order deny,allow
      Allow from all
   </Directory>

   <LocationMatch "^/SOGo/so/ControlPanel/Products/.*UI/Resources/.*\.(jpg|png|gif|css|js)">
      SetHandler default-handler
   </LocationMatch>
         
   ProxyRequests Off
   SetEnv proxy-nokeepalive 1
   ProxyPreserveHost On
   ProxyPass /SOGo http://127.0.0.1:20000/SOGo retry=0
         
   <Proxy http://127.0.0.1:20000/SOGo>
      RequestHeader set "x-webobjects-server-port" "80"
      RequestHeader set "x-webobjects-server-name" "sogo.mydomain.local"
      RequestHeader set "x-webobjects-server-url" "http://sogo.mydomain.local"
      RequestHeader set "x-webobjects-server-protocol" "HTTP/1.0"
      RequestHeader set "x-webobjects-remote-host" %{REMOTE_HOST}e env=REMOTE_HOST
      AddDefaultCharset UTF-8
      Order allow,deny
      Allow from all
   </Proxy>

   ## We use mod_rewrite to pass remote address to the SOGo proxy.
   # The remote address will appear in SOGo's log files and in the X-Forward
   # header of emails.
   RewriteEngine On
   RewriteRule ^/SOGo/(.*)$ /SOGo/$1 [env=REMOTE_HOST:%{REMOTE_ADDR},PT]
         
   Redirect permanent /index.html http://sogo.mydomain.local/SOGo
         
</VirtualHost>
         
<VirtualHost *:8800>
   # this virtualhost is only for carddav on Mac and not tested very well
   RewriteEngine Off
   ProxyRequests Off
   SetEnv proxy-nokeepalive 1
   ProxyPreserveHost On
   ProxyPassInterpolateEnv On
   ProxyPass /principals http://127.0.0.1:20000/SOGo/dav/ interpolate
   ProxyPass /SOGo http://127.0.0.1:20000/SOGo interpolate
   ProxyPass / http://127.0.0.1:20000/SOGo/dav/ interpolate

   <Location />
      Order allow,deny
      Allow from all
   </Location>

   <Proxy http://127.0.0.1:20000>
      RequestHeader set "x-webobjects-server-port" "8800"
      RequestHeader set "x-webobjects-server-name" "sogo.mydomain.local:8800"
      RequestHeader set "x-webobjects-server-url" "https://sogo.mydomain.local:8800"
      RequestHeader set "x-webobjects-server-protocol" "HTTP/1.0"
      RequestHeader set "x-webobjects-remote-host" "127.0.0.1"
      AddDefaultCharset UTF-8
   </Proxy>
#   ErrorLog /var/log/apache2/error.log
#   Customlog /var/log/apache2/access.log combined

</VirtualHost>

Comment out any unused VirtualHost declarations in the file.

Also, where is the sogo.conf file supposed to be located?  That is, what directory?  /var/lib doesn't exist on a BSD machine.

Thank you!

P.

PS - Just trying to help.  I'm having a bear of a time with this port right now.  I need something that is a solid groupware server.



________________________________
 From: Jim Riggs <ports at christianserving.org>
To: Paul Pathiakis <pathiaki2 at yahoo.com> 
Cc: Marco Steinbach <coco at executive-computing.de>; Joe Malcolm <jmalcolm at uraeus.com>; "ports at freebsd.org" <ports at freebsd.org> 
Sent: Friday, May 3, 2013 10:14 AM
Subject: Re: Where has all the groupware gone.....
 

On May 3, 2013, at 8:56 AM, Paul Pathiakis <pathiaki2 at yahoo.com> wrote:

> Well, I, finally, got around to installing the port from the links below.
> 
> Sadly, I'm trying to find all sorts of things for configuration and various other modifications.....
> 
> There's no man pages installed.
> I can find no documentation on the site or in the install that seems to be of any use.
> Frankly, I can't configure it to run in the jail that I'm testing it in.  (The jail is find and sogo starts but I have no idea how to access the thing....)


The port will get the software installed for you. Beyond that, it is up to you to read the documentation to configure and implement it. See <http://www.sogo.nu/downloads/documentation.html>, specifically chapter 5 in the Installation and Configuration Guide.

I suppose the port could install a /usr/local/etc/sogo.conf.sample file, but configuration of SOGo is so specific and unique to each and every environment that I believe it would likely cause more confusion than it would avoid.


> From: Paul Pathiakis <pathiaki2 at yahoo.com>
> To: Marco Steinbach <coco at executive-computing.de>; Joe Malcolm <jmalcolm at uraeus.com> 
> Cc: "ports at freebsd.org" <ports at freebsd.org>; Jim Riggs <ports at christianserving.org> 
> Sent: Tuesday, April 23, 2013 1:06 PM
> Subject: Re: Where has all the groupware gone.....
> 
> Guys,
> 
> I've been reading a lot about sogo and I do like what I see.
> 
> Is this port ready yet?  I just updated my ports tree and I don't see it.
> 
> P.
> 
> <snip>
> 
> I ran into the same error, and Jim (creator of the ports, cc'ed) had to 
> fix a rather small oversight.  Things seem to work now.
> 
> Check both out from here:
> 
> https://svn.redports.org/jhriggs/devel/sope/
> https://svn.redports.org/jhriggs/www/sogo/
> 
> 
> Upon installation, the user and group for SOGo will be created 
> automatically from the contents of ${PORTSDIR}/UIDs and 
> ${PORTSDIR}/GIDs, once the port has been accepted into the ports tree.
> 
> For now, you need to manually add the respective user and group to the 
> above files, as the ports system won't be able to handle them, otherwise.
> 
> See http://www.freebsd.org/cgi/query-pr.cgi?pr=175947.
> 
> Be warned, though, that you may need to adapt the numerical user and 
> group id, because those in the PR may have already been assigned to 
> other ports.
> 
> MfG CoCo
> 
> 
> 
> 
> 


More information about the freebsd-ports mailing list