Troubleshooting
Problem
This document explains the usage of ScriptLog in an Apache HTTP server.
Resolving The Problem
The ScriptLog directive can be used to log data returned by a CGI program in StdOut in case of an error. There are a few considerations you need to be aware of:
o The format is 'ScriptLog logs/scriptlog' where "logs" is a directory under the server root, and "scriptlog" is the log file name.
o If the server root is the default /www/svrname, the file in the example above would then be in /www/svrname/logs.
o This path is relative to the server root because it does not start with a "/'.
o You can also specify a file path like /home/usr1.
The default user profile for running CGI jobs is QTMHHTP1. Therefore, QTMHHTP1 needs *RWX authority and *ALL object authorities on .../logs if the CGI jobs are running under the default user profile.
If the server configuration is using Basic Authentication and a directive 'UserID %%CLIENT%%' in the directory container for the CGI programs, the CGI jobs are running under various system user profiles. In that case and, if all jobs should log into scriptlog, *PUBLIC needs *RWX authority and *ALL object authorities on the /logs directory. Defining only one particular user profile with authority could be used if only one USRPRF should be logging.
The log file "scriptlog" is automatically created when the first CGI Program error occurs. It only logs when there is an error.
o The format is 'ScriptLog logs/scriptlog' where "logs" is a directory under the server root, and "scriptlog" is the log file name.
o If the server root is the default /www/svrname, the file in the example above would then be in /www/svrname/logs.
o This path is relative to the server root because it does not start with a "/'.
o You can also specify a file path like /home/usr1.
The default user profile for running CGI jobs is QTMHHTP1. Therefore, QTMHHTP1 needs *RWX authority and *ALL object authorities on .../logs if the CGI jobs are running under the default user profile.
If the server configuration is using Basic Authentication and a directive 'UserID %%CLIENT%%' in the directory container for the CGI programs, the CGI jobs are running under various system user profiles. In that case and, if all jobs should log into scriptlog, *PUBLIC needs *RWX authority and *ALL object authorities on the /logs directory. Defining only one particular user profile with authority could be used if only one USRPRF should be logging.
The log file "scriptlog" is automatically created when the first CGI Program error occurs. It only logs when there is an error.
[{"Type":"MASTER","Line of Business":{"code":"LOB68","label":"Power HW"},"Business Unit":{"code":"BU070","label":"IBM Infrastructure"},"Product":{"code":"SWG60","label":"IBM i"},"ARM Category":[{"code":"a8m0z0000000CGqAAM","label":"IBM i HTTP Server"}],"ARM Case Number":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"All Versions"}]
Historical Number
520052751
Was this topic helpful?
Document Information
More support for:
IBM i
Component:
IBM i HTTP Server
Software version:
All Versions
Operating system(s):
IBM i
Document number:
634717
Modified date:
12 March 2025
UID
nas8N1013036
Manage My Notification Subscriptions