- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: unix and cgi scripts
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
тАО11-05-2008 07:01 PM
тАО11-05-2008 07:01 PM
unix and cgi scripts
I have recently migrated a web-based application from one server to another server. At first look, there is no problem because, I can see the web-page and can navigate to other html pages. At one section, we uses a cgi script and the front page of cgi script is visible. Inside that script, there are several important scripts, which are not at all functioning.
How can I check or debug this cgi script for the consistency and how do I determine, which module is not functioning? Any idea.
My httpd.conf allows all for cgi execution (shown below); but the script somehow is not functioning.
ScriptAlias /cgi-bin/ "/apache/cgi-bin/"
Allowoverride None
Options None
Order allow,deny
Allow from all
AddHandler cgi-script .cgi
Shibin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2008 07:41 PM
тАО11-05-2008 07:41 PM
Re: unix and cgi scripts
> visible. [...]
Do you mean you are seeing the script itself,
not the expected output from running the
script?
> [...] from one server to another server.
> My httpd.conf [...]
What's different between the two servers?
httpd.conf? Other files it might include?
File ownership? Permissions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2008 07:54 PM
тАО11-05-2008 07:54 PM
Re: unix and cgi scripts
1. Goes to useradmin.cgi
2. goes to other functions.
Both modules load properly and second modules work perfectly, since that module has only minimal scripts/functions.
Useradmin.cgi module loads as expected, but inside that different scripts, functions, which calls to different cgi scripts as well as UNIX commands. These are not functioning. I have copied all the files from the earlier server and just pasted here on the same location.
I don't think so, it is a permission issue, because, most of the file has 755 permission. Both servers using the same apache, httpd.conf and other files.
Can I debug this useradmin.cgi script using any tools ?
Shibin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2008 07:59 PM
тАО11-05-2008 07:59 PM
Re: unix and cgi scripts
Is it perl or a shell script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2008 08:02 PM
тАО11-05-2008 08:02 PM
Re: unix and cgi scripts
Pls have a look on the attached script.
Shibin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-07-2008 01:15 AM
тАО11-07-2008 01:15 AM
Re: unix and cgi scripts
I notice that the script attached has a blank first line.
CGI scripts should have the interpreter as the first line (in this case #!/opt/perl/bin/perl)
--Binu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2008 03:08 PM
тАО11-10-2008 03:08 PM
Re: unix and cgi scripts
The perl interpreter is in proper position. There is no problem in that.
Shibin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2008 07:30 PM
тАО11-10-2008 07:30 PM
Re: unix and cgi scripts
One place to look would be the apache error logs (/opt/hpws/apache/logs/error_log on HP-UX).
Any script error and failures are logged in this file. This information should help debug your script.
--Binu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2008 07:00 AM
тАО11-11-2008 07:00 AM
Re: unix and cgi scripts
There is no error reporting in apache error log. Only notice.
I was checking this for each activity. Unfortunately, no errors reported. Some how the script is not functioning properly.
Thanks
Shibin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2008 07:17 PM
тАО11-11-2008 07:17 PM
Re: unix and cgi scripts
A silly question. Did you restart apache after adding the "ScriptAlias"?
Also, what is the exact message you see on your browser?
--Binu