[cgiwrap-users] problem with sctips in subidrectories
Brought to you by:
nneul
From: Alexandr L. <a.l...@gm...> - 2005-05-20 15:56:29
|
Hi, I'm trying to get cgiwrapper to work with=20 Mandrake Linux release 10.0 (Official) for i586 PHP 5.0.4 (cli) (built: May 10 2005 14:13:25) Copyright (c) 1997-2004 The PHP Group Zend Engine v2.0.4-dev, Copyright (c) 1998-2004 Zend Technologies apache 2.0.54 The problem I'm having is, the scripts places in ~username/public_html directory will be executed absolutely fine. But if there is some subfolder, say ~username/public_html/subfolder and a script inside, it will complain about not being able to open the script files cgiwprad log follows Initializing Logging Redirecting STDERR to STDOUT Setting SIGXCPU to default behaviour Environment Variables: QUERY_STRING: '' SCRIPT_NAME: '/cgi-bin/cgiwrapd' SCRIPT_FILENAME: '/usr/local/apache2/cgi-bin/cgiwrapd' REDIRECT_URL: '<NULL>' PATH_INFO: '/~j_schuma/test/test.php' PATH_TRANSLATED: '/home/j_schuma/public_html/test/test.php' REMOTE_USER: '<NULL>' REMOTE_HOST: '<NULL>' REMOTE_ADDR: '127.0.0.1' Trying to extract user from PATH_INFO. Retrieved User Name: 'username' User Data Retrieved: UserID: 'username' UID: '4234' GID: '4234' Home Dir: '/home/username' Checking user minimum uid. Script Base Directory: '/home/username/public_html/.' =09Fetching script string Trying to extract script from PATH_INFO Extracted PATH_INFO '/test/test.php' =09Building script path =09Condensing slashes. =09Script Relative Path: 'test/test.php' =09Script Absolute Path: '/home/username/public_html/./test/test.php' =09Checking for special interpreted script (php). =09Interpreter Path: '/usr/local/bin/php' Fixing Environment Variables. Environment Variables: QUERY_STRING: '' SCRIPT_NAME: '/cgi-bin/cgiwrapd/username/test/test.php' SCRIPT_FILENAME: '/home/username/public_html/./test/test.php' REDIRECT_URL: '<NULL>' PATH_INFO: '<NULL>' PATH_TRANSLATED: '/home/j_schuma/public_html/test/test.php' REMOTE_USER: '<NULL>' REMOTE_HOST: '<NULL>' REMOTE_ADDR: '127.0.0.1' UIDs/GIDs Changed To: RUID: '4234' EUID: '4234' RGID: '4234' EGID: '4234' Changing current directory to '/home/username/public_html/./test' Output of script follows: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D Could not open input file: /test.php. If i change the permissions on the script so it does not pass the security check in cgi wrapper. The cgi wrapper will actually complain about it, so it 'sees' the file... Any ideas, pointers? --=20 wbr, Alex |