I have a shared hosting account on Dreamhost and I noticed that the auto_prepend_file Apache directive was not working. I am a bit of a noob in this department, but from what I read it sounds like PHP has to be running as an Apache module (mod_php) for this directive to work.
There is a post (from 2005, https://discussion.dreamhost.com/thread-25608.html) that describes how to use mod_php on a per-directory basis with the following directive:
AddType application/x-httpd-php .php
However, I couldn’t seem to get it working, and http://wiki.dreamhost.com/PHP says DreamHost no longer supports mod_php on shared servers. So I’m guessing that means that the directive mentioned above no longer works. The PHP options for my domains are all CGI and FastCGI. The only mod_php option is disabled (says requires DreamHost PS).
So does this mean that I won’t be able to use auto_prepend_file at all on a shared hosting account?