[cgiwrap-users] cgiwrap and php
Brought to you by:
nneul
From: Isabelle M. <Isa...@ci...> - 2002-11-18 16:20:30
|
Bonjour, I have installed php v 4.2.3 on a solaris 2.8 machine. Then, I configure cgiwrap with the following options: ./configure --with-php-interpreter --with-php=/usr/local/bin/php --with-local-contact-email=web...@un... --with-inst all-dir=/data/cgi-bin --with-cgi-dir=scripts --with-httpd-user=wwwdem --without-check-owner --without-check-group-writ able While cgiwrap is running perfectly for some other scripts (shell or perl) , when I try to access a php page located in scripts directory of user imoullet via the URL: http://myserver/cgi-bin/cgiwrap/imoullet/test.php, I get an internal server error . The message in the web server error logfile is: [Mon Nov 18 17:11:57 2002] [error] [client 130.223.8.50] Premature end of script headers: cgiwrap My test.php file has 644 privilege. Here is the output I get from cgiwrapd: ******************************************************* 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: '/imoullet/test.php' PATH_TRANSLATED: '/usr/local/bscw/imoullet/test.php' REMOTE_USER: '<NULL>' REMOTE_HOST: '<NULL>' REMOTE_ADDR: '130.223.8.50' Trying to extract user from PATH_INFO. Retrieved User Name: 'imoullet' User Data Retrieved: UserID: 'imoullet' UID: '12247' GID: '10010' Home Dir: '/usr/local/home/imoullet' Script Base Directory: '/usr/local/home/imoullet/scripts' 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: '/usr/local/home/imoullet/scripts/test.php' Checking for special interpreted script (php). Interpreter Path: '/usr/local/bin/php' Fixing Environment Variables. Environment Variables: QUERY_STRING: '' SCRIPT_NAME: '/cgi-bin/cgiwrapd/imoullet/test.php' SCRIPT_FILENAME: '/usr/local/home/imoullet/scripts/test.php' REDIRECT_URL: '<NULL>' PATH_INFO: '' PATH_TRANSLATED: '/usr/local/bscw' REMOTE_USER: '<NULL>' REMOTE_HOST: '<NULL>' REMOTE_ADDR: '130.223.8.50' UIDs/GIDs Changed To: RUID: '12247' EUID: '12247' RGID: '10010' EGID: '10010' Changing current directory to '/usr/local/home/imoullet/scripts' Output of script follows: ===================================================== ******************************************************* My test.php file has 644 privilege. The message in the web server error logfile is: [Mon Nov 18 17:11:57 2002] [error] [client 130.223.8.50] Premature end of script headers: cgiwrap ~ Any idea ? Thnaks for your reply -- Isabelle Moullet Centre Informatique Universite de Lausanne email: isa...@ci... |