- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: CGI problem with CSWS
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2009 07:48 AM
тАО09-18-2009 07:48 AM
CGI problem with CSWS
In our httpd.conf we have the default cgibin directory specified:
ScriptAlias /cgi-bin/ "/apache$root/cgi-bin/"
I have made sure that the directory is marked as [rwe, rwe, rwe, rwe] in terms of file protection. Ditto for the actual files inside that I'm trying to execute. The files will run from a command line, and output the expected text.
The directory spec in the conf file is as follows:
AllowOverride None
Options None
Order allow,deny
Allow from all
Loglevel is set at "debug"
suExec is *not* enabled if this matters.
I've installed Apache on unix and windows machiens before without a hitch, so I'm completely lost as to what's going on, and I'm not very familiar with OpenVMS.
Any help would be most appreciated!
Thanks
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2009 08:23 AM
тАО09-18-2009 08:23 AM
Re: CGI problem with CSWS
This looks like a very bad idea, but
otherwise it all looks about like mine.
Around here (old version, 1.x):
alp $ dire /owne /prot APACHE$COMMON:[000000]CGI-BIN
Directory APACHE$COMMON:[000000]
CGI-BIN.DIR;1 [AP_HTTPD,APACHE$WWW] (RWE,RWE,,)
alp $ dire /owne /prot APACHE$COMMON:[CGI-BIN];
Directory APACHE$COMMON:[CGI-BIN]
AUTHOR.DLL;8 [AP_HTTPD,APACHE$WWW] (RWED,RWED,RE,RE)
AUTHOR.EXE;8 [AP_HTTPD,APACHE$WWW] (RWED,RWED,RE,RE)
[...]
I don't know about this one, but some
programs refuse to deal with executables to
which anyone on the planet can write.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2009 08:35 AM
тАО09-18-2009 08:35 AM
Re: CGI problem with CSWS
Thanks, I know the global rwe permissions aren't good, but I've been just trying things to get it to work at all. At this point I'm giving up in defeat unless someone else points something out. Even the simplest DCL script fails to run, i.e. a file like this:
test.cgi:
$write sys$output ""
$write sys$output "Hello World"
$write sys$output ""
$ exit
Works from a command line, but then accessed via URL, nothing is sent back, and nothing appears to be executed, it's as if the request just disappears into a black hole (unix's /dev/null).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2009 08:50 AM
тАО09-18-2009 08:50 AM
Re: CGI problem with CSWS
Given the gremlins I see after the websites I manage, any directories that are owned by or that are otherwise writable by the web server is a Bad Idea. A Very Bad Idea.
My preference is to use an ACE to grant the web server read access (or read and execute for the CGI pieces) to the web-related directories. I use the same technique on the Unix boxes.
As for your question, have a read through Neil Rieck's notes on OpenVMS Apache and Tomcat and such:
http://www3.sympatico.ca/n.rieck/docs/openvms_notes_apache.html
Then (also) check the Apache server logs.
If you're not specifically tied to Apache, then (like Unix offers nginx, lighttpd and such) OpenVMS has the WASD web server available:
http://wasd.vsm.com.au/
I have some DCL CGI posted to my site, but Neil's stuff and the Apache logs should get you going.
Stephen Hoffman
HoffmanLabs LLC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2009 09:37 AM
тАО09-18-2009 09:37 AM
Re: CGI problem with CSWS
Is there no way to tell if the file is being executed?
Thanks
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2009 10:18 AM
тАО09-18-2009 10:18 AM
Re: CGI problem with CSWS
> is being written to any of the apache logs
> for any cgi URL request. [...]
Are you flushing the logs? I'm still running
the older 1.x server, and it had a defect
where the obvious flush operation
@ SYS$STARTUP:APACHE$STARTUP.COM FLUSH
tended to lose log data, but
@ SYS$STARTUP:APACHE$STARTUP.COM graceful
is pretty effective.
> Works from a command line, but then
> accessed via URL, nothing is sent back,
Well, yeah, but it's not really sending back
a proper response, is it? I seem to have an
APACHE$COMMON:[CGI-BIN]TEST-CGI-VMS.COM
which, I assume, came with the Web server,
and which works as expected. If you don't
have one, let me know.
> [...] I'm not very familiar with OpenVMS.
For an explanation of what all that f$fao()
stuff is doing, try:
HELP Lexicals F$FAO *
In particular:
[...]
Special formatting:
!/ None Inserts a carriage return and a line
feed.
[...]
I believe that the CR may be important in
HTTP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2009 10:20 AM
тАО09-18-2009 10:20 AM
Re: CGI problem with CSWS
> Is there no way to tell if the file is
> being executed?
It's DCL, so it could do things like create
a file, or send e-mail, or any number of
detectable things.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2009 11:07 AM
тАО09-18-2009 11:07 AM
Re: CGI problem with CSWS
In the 2.x apache series the flush option is non-existant, and the graceful option, according to the start.com file, is used to gracefully restart the server. It didn't make any difference.
I have no doubt this will be something mind-numbingly obvious once I find it, but until then I'm up the creek without a paddle.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2009 11:33 AM
тАО09-18-2009 11:33 AM
Re: CGI problem with CSWS
When "No entry is made in the access_log, error_log, or cgi_log files", is that no entries are made for anything, or is that no entries for (just) the CGI requests?
Are the directory ownership and protection settings correct, from the CGI directory all the way up? The upper levels will need at least execute-only access, or read-execute, for the Apache user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2009 12:10 PM
тАО09-18-2009 12:10 PM
Re: CGI problem with CSWS
No entries in the various log files are made for any cgi related request. A regular HTML request for a file from the htdoc dir will show as expected.
I've attached the httpd.conf file.