

I also turned off cgi-force-redirect in php.ini, which seems to be deisgned for use with Apache.īut despite making these changes, index.php still loads as a text file. I proved that the directory permissions were now ok by running a perl cgi script in that location.Ģ. I changed this to include the directory in which my script was located. thttpd was set up by default not to run cgi scripts except in cgi-bin. All that happened was that Mozilla displayed the contents of that file.įurther investigation revealed the solution to two problems:ġ. So I installed php4-cgi, and then opened up index.php from the script. Looking through dselect, there seem to be two implementations of PHP packaged: an Apache module, and php4-cgi which doesn't require Apache. At present, the site is hosted on thttpd.


I would like to run a PHP script I found to generate some pages for my website.
