[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] CGIwrap with Perl on RaQ 550



Just for the record, I'm also experiencing problems with my spanking new RaQ550.

Background Info:
I'm migrating from a RaQ4 to the RaQ550 and I used the newest version of the cmuExport tool (2.43) to export from the RaQ4 to the 550.

All my (known) problems apply to the main web site of a virtual host and not to any specific user site (i.e. http://www.domain.com/~user/). I suspect this is what others meant by saying that user sites didn't work for CGIs.


State of RaQ550:
Clean OS, patched up to RaQ550-All-Update-0.0.2-15983, which doesn't appear on the SunSolve list of patches for the 550 yet, I might note.


Problem Summary:
Perl scripts are not being run correctly by CGIwrap for virtual hosts.

Description of Problem:
- If a Perl script is not set to ugo+rx for permissions, an error is registered in /var/log/httpd/error that the server doesn't have access to the file.

- If you change the permissions to ugo+rx, the Perl script *will not* be executed. Instead, the code is spooled to the browser.

Neither of these is how CGIwrap is supposed to work. The permissions, when using CGIwrap, should work if only the user is set to read and execute the script. Secondly, it should execute the script, not spool out the code to the browser screen.

As mentioned, I imported this site using the CMU tool, so I did check in the GUI that this site had CGIs enabled (which it did). I also double-checked the VHost Apache configuration file for this site just to be sure that wasn't the problem. There are no .htaccess files.


Other Oddities:
I can take the exact same file and directory setup, pop it into the RaQ550's "home" directory and it will work fine. It's definitely a virtual host with CGIwrap problem.

If I create the same site name from scratch on the RaQ550 using the RaQ550 GUI and not cmuImport, and then put a sample CGI that wasn't working before in place using the same previously non-working directory structure, it works fine.

In fact, after I've done the above step, I can re-import the original site using cmuImport and the CGIs now will execute properly. No difference in the virtual host configuration files for either instantiations of the site. No idea why this suddenly works. I can now repeatedly delete and re-import this site and the CGIs will execute without errors, even when I'm using htaccess files.

Put that in your pipe and smoke it!