Object Rexx, Apache2, CGI help

  • William

    William - 2005-09-22

    I am trying to use Rexx with Apache. I have done added to httpd.conf:
    AddHandler cgi-script .cgi .rexx .pl

    <Directory /usr/local/apache2/Rexx>
    Options +ExecCGI

    <Directory "/usr/local/apache2/Rexx">
    Order allow,deny
    Allow from all

    ScriptAlias /Rexx/ "/usr/local/apache2/Rexx/"

    I still get:
    Premature end of script headers: inventory.rexx

    I have read about mod_rexx but not sure how to implement it.

    Any help here??

    Thanks for your time.

    • David Ashley

      David Ashley - 2005-09-22

      Mod_Rexx and ooRexx do not appear to like each other very much under Linux. I have known about this problem since the release of ooRexx 3.0 but I have yet to figure out the problem. The best I have come up with is that when Mod_Rexx actually calls the RexxStart API to execute the script it gets a seg fault. I have not been able to determine if the ooRexx shared libraries are actually loaded into memory or not.

      My best guess at this point is that Apache is not able to load the ooRexx shared libraries from the default location of /usr/local/lib/ooRexx, but that is only a guess.

      You might try moving the ooRexx libraries to /usr/lib, running ldconfig, restart Apache, and then try again. This might work, but it is just guess.

      If you are able to figure out what the problem is please let ne know.

    • William

      William - 2005-09-23

      I fix my problem.
      Since I installed Object Rexx in /usr/local/bin and that
      diretory is not in the default PATH, I had to add it to the
      /etc/rc.d/init.d/httpd start script, like so:
      export PATH=/usr/local/bin:/usr/local/sbin:${PATH}

      Hope this helps others.


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks