[cgiwrap-users] RE: #!/usr/bin/php
Brought to you by:
nneul
From: Daniel N. <dr...@gm...> - 2002-08-09 15:06:17
|
Hi, > Looks from the output below like the php options didn't get build or > something... Make sure to do a make clean after you configure, and make > sure that PHP was detected properly when you ran configure. If it didn't > find php when you ran configure, it would have disabled the php > handling. What's configure output look like? *irghs* My fault I did a: " --with-php-path=/usr/bin/php4 " instead of " --with-php=/usr/bin/php4 ". Now it works nearly perfekt. I just have to work a bit on PATH_TRANSLATED. At the moment: PATH_TRANSLATED: '/var/chroot/_nossh/k060881/htdocs/phpmagic.de/k060881/test.php' Home Dir: '/var/chroot/_nossh/k060881' Script Base Directory: '/var/chroot/_nossh/k060881/htdocs' Script Absolute Path: '/var/chroot/_nossh/k060881/htdocs/test.php' But the real Script Absolute Path is /var/chroot/_nossh/k060881/phpmagic.de/test.php That is PATH_TRANSLATED where the last appereance of the username is removed. Is it possible to change that ?:) COMPLETE OUTPUT: *g* <OUTPUT> Initializing Logging Redirecting STDERR to STDOUT Setting SIGXCPU to default behaviour Environment Variables: QUERY_STRING: '' SCRIPT_NAME: '/cgi-bin/cgiwrap/cgiwrapd' SCRIPT_FILENAME: '/usr/lib/cgi-bin/cgiwrap/cgiwrapd' PATH_INFO: '/k060881/test.php' PATH_TRANSLATED: '/var/chroot/_nossh/k060881/htdocs/phpmagic.de/k060881/test.php' REMOTE_USER: '<NULL>' REMOTE_HOST: '<NULL>' REMOTE_ADDR: '80.142.156.229' Trying to extract user from PATH_INFO. Retrieved User Name: 'k060881' User Data Retrieved: UserID: 'k060881' UID: '1004' GID: '2000' Home Dir: '/var/chroot/_nossh/k060881' Script Base Directory: '/var/chroot/_nossh/k060881/htdocs' Fetching script string Trying to extract script from PATH_INFO Extracted PATH_INFO 'test.php' Building script path Condensing slashes. Script Relative Path: 'test.php' Script Absolute Path: '/var/chroot/_nossh/k060881/htdocs/test.php' Checking for special interpreted script (php). Interpreter Path: '/usr/bin/php4' Fixing Environment Variables. Environment Variables: QUERY_STRING: '' SCRIPT_NAME: '/cgi-bin/cgiwrap/cgiwrapd/k060881/test.php' SCRIPT_FILENAME: '/var/chroot/_nossh/k060881/htdocs/test.php' PATH_INFO: '' PATH_TRANSLATED: '/var/chroot/_nossh/k060881/htdocs' REMOTE_USER: '<NULL>' REMOTE_HOST: '<NULL>' REMOTE_ADDR: '80.142.156.229' Logging Request (File) UIDs/GIDs Changed To: RUID: '1004' EUID: '1004' RGID: '2000' EGID: '2000' Changing current directory to '/var/chroot/_nossh/k060881/htdocs' Output of script follows: ===================================================== X-Powered-By: PHP/4.1.2 Content-type: text/html just a test </OUTPUT> Bye Daniel |