I have several AIX 5.3 web servers. Some are running Apache 2.0.59 and others are running IBM HTTP Server 6.0.2, which equates to Apache 2.0.47. My perl 5.8.8 cgi scripts return just the script name with no path information from the perl $0 variable on the IBM HTTP 6.02/Apache 2.0.47 servers. But I'm getting the full path to the script when I running on the Apache 2.0.59 server.
If I run the script outside of the web server on any of the servers, I get just the script name with no path information.
For example, if my cgi url is and my document root is /www, $0 returns my_script.cgi on the IBM HTTP 6.0.2/Apache2.0.47 server and / on the Apache 2.0.59 server.
If I run my_script.cgi from the command line, $0 always returns my_script.cgi.
I will be switching all of my servers over to Apache 2.0.59 in the near future.
Could this be an apache configuration issue or is something else going on here? BTW, I also posted this on the apache forum.
If I run the script outside of the web server on any of the servers, I get just the script name with no path information.
For example, if my cgi url is and my document root is /www, $0 returns my_script.cgi on the IBM HTTP 6.0.2/Apache2.0.47 server and / on the Apache 2.0.59 server.
If I run my_script.cgi from the command line, $0 always returns my_script.cgi.
I will be switching all of my servers over to Apache 2.0.59 in the near future.
Could this be an apache configuration issue or is something else going on here? BTW, I also posted this on the apache forum.