[cgiwrap-users] RE: #!/usr/bin/php
Brought to you by:
nneul
From: Daniel N. <dr...@gm...> - 2002-08-09 14:32:03
|
> You should not have to put the #! line or make the php file executable > with the new options enabled. Btw. Do you have a amazon wishlist ?:) The Output: (with a #!/usr/bin/php the script works) 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' 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: ===================================================== ***************** * CGIWrap Error * ***************** CGIWrap encountered an error while attempting to execute this script: Error Message: Exec format error Error Number: 8 This message usually indicates there is a problem with the script itself. Often this indicates either that the #! line of the script is incorrect, or the script was uploaded in binary mode instead of ascii mode. Check to make sure that the script does not have control-M's at the end of every line. That will prevent it from executing. An easy fix that takes care of this most of the time is to put '#!/.../perl --' instead of '#!/.../perl' on the first line of the script. This is typically a problem if the script was edited or uploaded from a DOS/Windows/Macintosh station to a unix based server. If you are not the owner of this script, please forward this error and the URL that caused it to the script owner. That is often the component in the URL right after /cgiwrap/. **************************************** * Local Information and Documentation: * **************************************** Web Site: http://www.phpmagic.de Contact Name: WebVector Contact EMail: su...@ph... Contact Web Site: http://support.phpmagic.de **************** * Server Data: * **************** Server Administrator/Contact: web...@ph...> Server Name: phpmagic.de Server Port: 80 Server Protocol: HTTP/1.1 ***************** * Request Data: * ***************** User Agent/Browser: Mozilla/4.0 (compatible; MSIE 5.0; Windows XP) Opera 6.04 [de] Request Method: GET Remote Address: 80.142.156.229 Remote Port: 1802 |