[OPEN-ILS-DEV] Re: Build errors on Debian -- Invalid command 'ILSGatewayConfig'

Bill Erickson billserickson at gmail.com
Fri Mar 31 08:36:43 EST 2006


Don

I've updated the wiki with the latest Apache config options.  Notable
changes are the ils_gateway_module is now the osrf_json_gateway_module and
xmlbuilder_module is replaced by the xmlent_module, which has more config
options.

-bill


On 3/31/06, Don McMorris <don.mcmorris at gmail.com> wrote:
>
> I'm getting the following error trying to start apache:
> ==========================
> evergreen:/openils/conf# apache2ctl configtest
> [Fri Mar 31 01:15:21 2006] [warn] PassEnv variable PERL5LIB was undefined
> Syntax error on line 52 of /etc/apache2/httpd.conf:
> Invalid command 'ILSGatewayConfig', perhaps mis-spelled or defined by
> a module not included in the server configuration
> evergreen:/openils/conf#
> ==========================
>
> My config is as follows:
>
> ==========================
> evergreen:/openils/conf# cat /etc/apache2/httpd.conf
> # This is here for backwards compatability reasons and to support
> #  installing 3rd party modules directly via apxs2, rather than
> #  through the /etc/apache2/mods-{available,enabled} mechanism.
> #
> #LoadModule mod_placeholder /usr/lib/apache2/modules/mod_placeholder.so
> LoadModule osrf_json_gateway_module
> /usr/lib/apache2/modules/osrf_json_gateway.so
> LoadModule xmlbuilder_module  /usr/lib/apache2/modules/mod_xmlbuilder.so
> LoadModule ils_rest_gateway_module
> /usr/lib/apache2/modules/mod_ils_rest_gateway.so
> LoadModule xmlent_module      /usr/lib/apache2/modules/mod_xmlent.so
> #
> ----------------------------------------------------------------------------------
> # XUL files for the staff client live here
> #
> ----------------------------------------------------------------------------------
> <Directory /openils/var/web/xul>
>    Options Indexes FollowSymLinks
>         AllowOverride None
>    Order allow,deny
>    Allow from all
> </Directory>
>
> <location /opac/images/>
>         <IfModule mod_expires.c>
>                 ExpiresActive On
>                 ExpiresByType image/jpg "access plus 1 month"
>                 ExpiresByType image/jpeg "access plus 1 month"
>                 ExpiresByType image/gif "access plus 1 month"
>                 ExpiresByType image/png "access plus 1 month"
>         </IfModule>
> </location>
>
> #
> ----------------------------------------------------------------------------------
> # This extracts the locale and "slimpac" settings
> #
> ----------------------------------------------------------------------------------
> AliasMatch ^/opac/.*/skin/(.*)/(.*)/(.*)
> /openils/var/web/opac/skin/$1/$2/$3
> AliasMatch ^/opac/slimpac/.*/skin/(.*)/xml/(.*)
> /openils/var/web/opac/skin/$1/xml/$2
>
> NameVirtualHost *:80
>
> <VirtualHost *:80>
>
>    ServerName evergreen.mcmorrisfamily.net:80
>    DocumentRoot /openils/var/web/
>
>    # Load our custom Perl startup code
>    PerlRequire /openils/conf/startup.pl
>    PassEnv PERL5LIB
>
>    DirectoryIndex index.xml
>
>    #
> ----------------------------------------------------------------------------------
>    # Configure the various Apache modules
>    #
> ----------------------------------------------------------------------------------
>    ILSGatewayConfig  /openils/conf/opensrf_core.xml
>    ILSRestGatewayConfig /openils/conf/opensrf_core.xml
>    XMLBuilderDefaultLocale en-US
>    XMLBuilderBaseDir /openils/var/web/opac/locale
>    XMLBuilderDefaultDTD lang.dtd
>    XMLBuilderLocaleParam locale
>
>    # Deflate whatever we can
>    AddOutputFilterByType DEFLATE application/x-javascript text/html
> text/plain text/xml text/css
>
>    #
> ----------------------------------------------------------------------------------
>    # Define the OPAC settings
>    #
> ----------------------------------------------------------------------------------
>    RedirectMatch ^/$ /opac/en-US/skin/default/xml/index.xml
>    <LocationMatch /opac/>
>            AddType application/xhtml+xml .xml
>            ExpiresByType text/xml "access plus 1 hour"
>            Options +Includes
>            XBitHack Full
>            AddOutputFilter INCLUDES .xml
>
>            RewriteEngine on
>            BrowserMatchNoCase MSIE IE
>            BrowserMatchNoCase mozilla mozilla
>            BrowserMatchNoCase safari safari
>
>            # extract the slimpac and locale information
>            SetEnvIf Request_URI "^/opac/slimpac/" slimpac=true
>            SetEnvIf Request_URI "/en-US/" locale=en-US
>            SetEnvIf Request_URI "/fr/" locale=fr
>            SetEnvIf Request_URI ".*" OILS_OPAC_BASE=/opac/
>    </LocationMatch>
>
>    #
> ----------------------------------------------------------------------------------
>    # Define launch points for the SuperCat bib interfaces
>    #
> ----------------------------------------------------------------------------------
>    <Location /opac/extras/oisbn>
>       SetHandler perl-script
>       PerlHandler OpenILS::WWW::SuperCat::oisbn
>       Options +ExecCGI
>       PerlSendHeader On
>       allow from all
>    </Location>
>    <Location /opac/extras/supercat>
>       SetHandler perl-script
>       PerlHandler OpenILS::WWW::SuperCat::supercat
>       Options +ExecCGI
>       PerlSendHeader On
>       allow from all
>    </Location>
>    <Location /opac/extras/unapi>
>       SetHandler perl-script
>       PerlHandler OpenILS::WWW::SuperCat::unapi
>       Options +ExecCGI
>       PerlSendHeader On
>       allow from all
>    </Location>
>
>
>
>
>    #
> ----------------------------------------------------------------------------------
>    # System config CGI scripts go here
>    #
> ----------------------------------------------------------------------------------
>    Alias /cgi-bin/ "/openils/var/cgi-bin/"
>    <Directory "/openils/var/cgi-bin">
>        AllowOverride None
>        Options None
>        Order deny,allow
>        Deny from all
>        # Set the "Allow from" to the appropriate address or subnet
>        Allow from 10.0.0.0/24
>        Options FollowSymLinks ExecCGI
>    </Directory>
>
>
>    #
> ----------------------------------------------------------------------------------
>    # Run server-side XUL through xmlbuilder to load the correct XML
> entities
>    #
> ----------------------------------------------------------------------------------
>    <LocationMatch /xul/.*\.xul$>
>          SetHandler xmlbuilder_module
>          allow from all
>    </LocationMatch>
>
>    #
> ----------------------------------------------------------------------------------
>    # JSON gateway
>    #
> ----------------------------------------------------------------------------------
>    <Location /gateway>
>          SetHandler ils_gateway_module
>          allow from all
>    </Location>
>
>    #
> ----------------------------------------------------------------------------------
>    # XML Gateway
>    #
> ----------------------------------------------------------------------------------
>    <Location /restgateway>
>          SetHandler ils_rest_gateway_module
>          allow from all
>    </Location>
>
>    #
> ----------------------------------------------------------------------------------
>    # Force SSL on the OPAC's "My Account" page
>    #
> ----------------------------------------------------------------------------------
>    <LocationMatch .*/myopac.xml>
>      SSLRequireSSL
>    </LocationMatch>
>
>    #
> ----------------------------------------------------------------------------------
>    # The reporting engine lives here
>    #
> ----------------------------------------------------------------------------------
>    RedirectMatch ^/reporter/?$ /reporter/dashboard
>    <Location /reporter/>
>          SetHandler perl-script
>          PerlHandler OpenILS::WWW::Reporter
>          Options +ExecCGI
>          PerlSendHeader On
>          allow from all
>    </Location>
>
> </VirtualHost>
>
> ==============================
>
> Am I missing a module?
>



--
Bill Erickson
PINES Systems Developer
Georgia Public Library Service
billserickson at gmail.com
http://open-ils.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://libmail.georgialibraries.org/pipermail/open-ils-dev/attachments/20060331/139acbb5/attachment.html


More information about the Open-ils-dev mailing list