> http://linuxgazette.com/issue57/nielsen2.html
> has a great example of how to use Zope. Apache. and Python together.
> mod_snake and such are available pretty easily. The author of the article
> has his own web site at http://www.tcu-inc.com and is gainfully self-employed
> as a programmer in this very same area.
What I'm looking for is for a solution that works "out of the box". For
instance: I tried to install phpgroupware. Installing went fine, but the
rpm left a message that I needed to create a database and do some other
stuff. The problems is: I don't know how to make a database! (and I
think many other people also don't).
So why not put some logic in the %post and %postun to solve this? Making
a database through %pre & %post might be difficult, but simple stuff
like:
%pre
if [ `grep PhotoShelf.conf /etc/httpd/conf/httpd.conf | wc -l` = 0 ];
then
echo "Include conf/PhotoShelf.conf" >>
/etc/httpd/conf/httpd.conf
fi
%post
%{_initdir}/httpd reload
%postun
if [ `grep PhotoShelf.conf /etc/httpd/conf/httpd.conf | wc -l` = 1 ];
then
perl -p -i -e "s|Include conf/PhotoShelf.conf||"
/etc/httpd/conf/httpd.conf
%{_initdir}/httpd reload
fi
Is enough to (in my opninion) safely edit the httpd.conf. The
"conf/PhotoShelf.conf" contains the configuration information the
particular application needs.... (I'll try to put the photoshelf rpm in
contrib soon --> I still want to integrate making the database into the
rpm installation, and I need to make some more perl packages which this
package requires. More info on photoshelf see:
http://photoshelf.sourceforge.net/ ).
Perhaps a seperate apache configuration file (which is included into
httpd.conf can be made to provide a working sollution out of the box for
Zope.
Maybe this way we can build up a whole set of nice web-applications that
work out of the box. Maybe a path like /var/www/<application_name> can
be the place where these applications are stored (or something else
compliant to FHS).
What do y'all think? Am I smoking banana's (which is legal where I live
;-) )?
Stefan