Recently I installed Apache on my Red Hat Linux box here at home to tinker around with and modify php scripts on. (That and to get the experience setting up a web server) Well, I can get apache to run and can get cgi scripts to run, but am having problems getting the darn php scripts to run cleanly. For the longest time I couldn't even get an error message until today after I modified the httpd.conf file with the following lines but am still getting a premature end of script error.
I added the following lines to the httpd.conf file:
AddType application/x-httpd-php .php3 .php
AddType application/x-httpd-php3-source .phps
Action application/x-httpd-php /cgi-bin/php
DirectoryIndex index.php index.php3
AddIcon /icons/script.gif ...... .php3 .php .phps
Then when I tried adding the lines php3_engine on and php3_display_errors on, I got a line error in my syntax, so I deleted them. I'm going to try adding them back but only putting 4 instead of 3 and see what happens. I'm also going to try one other thing before I drive myself up the wall!
Any help would be greatly appreciated.
Thanks!!,
Joseph Gill
Explorerdude@hotmail.com