PHP, LightTPD & Apache questions - SOLVED!

software development

#1

Ok, I searched the forums extensively before posting this, so I apologize if it is answered elsewhere… I developed my site using custom PHP extensions (i.e. filename.foo is processed as though it were filename.php) using LightTPD. Now, I’m new to dreamhost and not really all that familiar with their setup. Here are the questions: Is lighttpd an option in shared hosting? if so, how can I utilize my own lighttpd.conf in shared hosting? if not, how can I reproduce this using apache? Would I need to use .htaccess? I’m at a loss.

“…better agony than dullness, better an ocean storm than a placid pond…”


#2

I solved it. .htaccess to the rescue! If anyone else (who is a noob like me) cares to know, just specify that you need files with your custom php extension processed by PHP by adding this line to .htaccess:

AddType application/x-httpd-php .foo .php .phtml .whatever-else

where .foo is your custom extension.
Yay!

“…better agony than dullness, better an ocean storm than a placid pond…”