BSD DevCenter

oreilly.comSafari Books Online.Conferences.

We've expanded our LAMP news coverage and improved our search! Search for all things LAMP across O'Reilly!

Search
Search Tips

advertisement

Listen Print Subscribe to BSD Subscribe to Newsletters

Installing OCSweb on FreeBSD
Pages: 1, 2, 3

A brief check of the OCSweb mailing list archive told me that the OCSweb data directory needs read and write permissions for the web server user (i.e., nobody/nogroup). A simple chmod fixed that. My login worked now, but when I clicked on the mail link I got:



--

Content-type: text/html 

Software error:

You don't have a user called mail on the server 

For help, please send mail to the webmaster 
(mwlucas@exceptionet.com), giving this error message 
and the time and date of the error. 

--

Well, if this is the best OCSWeb can do to stop me, I'm pretty much set. I used vipw to copy the entry for nobody to mail, setting the gid and uid to 25.

Finally, I could log in. OCSmail told me that I had no mail. That's odd, as elm told me that I really ought to be answering any of the thirty or so messages I've deemed important enough to keep. Also, the graphics all showed up as broken links.

Here, Netscape's "view source" function is my friend. I could see why my mailbox appeared to be empty:

<input type=hidden name=omb 
 value="/var/spool/mail/mwlucas">

FreeBSD stores mail under /var/mail/, not /var/spool/mail. The shotgun approach served well here:

grep -R spool /usr/local/ocs/*

turned up the OCSweb e-mail configuration file, emailcfg.pl, which I vaguely remembered from reading the documentation. I found a few other useful options to set here, such as the path to Fetchmail.

As I guessed, the image problem was Yet Another Permissions Issue (tm, pat. pend).

Moments later, I was calling up my mail on the Web.

Better still, OCSweb can store e-mail in classic "Mbox" format. Mail is stored under ~home/mail. A simple edit in .elm/elmrc, a mv Mail mail, and Elm and OCSweb now share the same directory; I have an interoperable e-mail setup no matter where I'm working.

Despite numerous petty headaches, OCSweb is not that difficult to install on FreeBSD. It seems it would be fairly simple to turn into a port. In a future column, we'll do just that.

Now, all that remains is to get the OCSweb designers to put a little red daemon near the penguin in the logo.

Michael W. Lucas


Read more Big Scary Daemons columns.

Discuss this article in the O'Reilly Network Operating Systems.

Return to the BSD DevCenter.

 




Sponsored Resources

  • Inside Lightroom
Advertisement

Sponsored by:

O'Reilly Media

©2009, O'Reilly Media, Inc.
(707) 827-7000 / (800) 998-9938
All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.
About O'Reilly
Academic Solutions
Authors
Contacts
Customer Service
Jobs
Newsletters
O'Reilly Labs
Press Room
Privacy Policy
RSS Feeds
Terms of Service
User Groups
Writing for O'Reilly
Content Archive
Business Technology
Computer Technology
Google
Microsoft
Mobile
Network
Operating System
Digital Photography
Programming
Software
Web
Web Design
More O'Reilly Sites
O'Reilly Radar
Ignite
Tools of Change for Publishing
Digital Media
Inside iPhone
O'Reilly FYI
makezine.com
craftzine.com
hackszine.com
perl.com
xml.com

Partner Sites
InsideRIA
java.net
O'Reilly Insights on Forbes.com