Installing php-4.0.6 as a CGI Interpreter, But getting 500 errors

From: Date: Fri, 20 Jul 2001 20:38:19 +0000
Subject: Installing php-4.0.6 as a CGI Interpreter, But getting 500 errors
Groups: php.install 
Request: Send a blank email to php-install+get-3643@lists.php.net to get a copy of this message
I'm on a box that already has php installed as an Apache mod, but it's lacking the compile options that I desire. So, I can't recompile the module, i have to make my own local version of php with the options i want. Well, to just start out, I thought that I would just do a normal install, with default options just to get things going: ./configure --prefix=/home/p11/lib/php make make install Okay, so then everything installs properly to /home/p11/lib/php and I go make a script like so: p11@zuul:~/p11.com/cgi-bin/$ cat php.cgi #!/home/p11/lib/php/bin/php <?php phpinfo(); ?> But upon running the script from a browser, I get a 500 Premature End of Script error: [Fri Jul 20 13:02:22 2001] [error] [client 151.197.236.221] Premature end of script headers: /home/p11/p11.com/cgi-bin/php.cgi Hrm, okay... maybe there's something wrong with my php binary: p11@zuul:~/$ /home/p11/lib/php/bin/php X-Powered-By: PHP/4.0.6 Content-type: text/html Hrm, nope... let's try this: p11@zuul:~/lib/php/bin/$ ./php /home/p11/p11.com/cgi-bin/php.cgi X-Powered-By: PHP/4.0.6 Content-type: text/html <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> ... Okay, that seems to work alright... Then why can't I run the script directly: p11@zuul:~/p11.com/cgi-bin/$ ls php.cgi -rwxr-xr-x 1 p11 pg8711 52 Jul 20 12:59 php.cgi* p11@zuul:~/p11.com/cgi-bin/$ ./php.cgi bash: ./php.cgi: No such file or directory Anyone out there that could know what I'm overlooking? Any and all help would be appreciated. Ryan C. Creasey Web Programmer p11creative

« previous php.install (#3643) next »