Apache.cls should go in the http server path, not the system path. Apache, for security reasons, restricts access to /usr/bin. This keeps rogue processes from being started via a script. So put it in Apache's bin subdir.
David Ashley On 01/22/2010 01:45 PM, Robert Maschek wrote: > Hello everbody, > While playing around with mod_oorexx on the Apache webserver I have got > another problem: > > System: Fedora 12; Apache 2.2.14; ooREXX 4.0; mod_ooRexx 2.2.0 > > Script (plain simple): > /*******************************/ > /* Using other Apache objects */ > > /* Apache return codes used */ > OK = 0 /* Module has handled this stage. */ > > /* get the Apache request record ptr */ > r = arg(1) > > /* set content-type and send the HTTP header */ > CALL WWWSendHTTPHeader r, "text/html" /* note: this call is NOT > optional */ > > /* start sending the html page */ > SAY '<HTML>' > SAY '<HEAD>' > SAY '<TITLE>My seventh HTML Page From Rexx</TITLE>' > SAY '<LINK REL="stylesheet" TYPE="text/css" HREF="Samples.css">' > SAY '</HEAD>' > SAY '<BODY>' > SAY '<H1><<U>My seventh HTML Page From Rexx</U></H1><BR>' > SAY 'Let us try to get some information from the server from the > different Apache classes.<BR>' > SAY '</BODY>' > SAY '<BR><BR>' > SAY '<FONT SIZE="1">Running on: 'wwwserver_software'</FONT>' > SAY '</HTML>' > > /*Server_rec class*/ > request = .request_rec~new(r) > srvr = .server_rec~new(request~server) > > srvr_host = srvr~hostname > SAY srvr_host > > return OK > > ::REQUIRES "Apache.cls" > > > The webpage isn't displayed and the Apache process dies. > > When running it from the commandline: > [r...@www sample07]# rexx Sample07.rex > 48 *-* ::METHOD init EXTERNAL "LIBRARY mod_oorexx WWWNewReqRec" > 33 *-* ::REQUIRES "Apache.cls" > REX0098E: Error 98 running /usr/bin/Apache.cls line 48: Execution error > REX0479E: Error 98.903: Unable to load library "mod_oorexx" > [r...@www sample07]# > > Apache.cls is in the /usr/bin directory and is marked executable. > > As soon as I remove the ::Requires (and the other 4 lines belonging to > it) the script works. > > Any ideas from your side? > > Thanks in advance for your help. > > Robert > > > > > > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for Conference > attendees to learn about information security's most important issues through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Oorexx-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/oorexx-devel > > ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ Oorexx-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/oorexx-devel
