Reply to Re: setting Apache up to process an extension as PHP

Your name:

Reply:


Posted by Andrew DeFaria on 11/15/05 19:22

news@celticbear.com wrote:

> OK, found this line in httpd.conf:
> TypesConfig /etc/mime.types
>
> In that file is a huge list of file types. A search turned up no
> reference to "php" however.
> Just to test things, I tried inserting:
>
> # PHP
> application/x-httpd-php bkk
> application/x-httpd-php htm
> application/x-httpd-php html
>
> but that didn't change anything.
> I think I'm on the right track, this is probably where I need to add
> whatever I need to add, but maybe I have the "application/x-httpd-php"
> part wrong.
>
> Can't seem to find any hits searching for mime.types and php though.
>
> Any suggestions?

On my server (Fedora Core 3) I have /etc/httpd/conf.d/php.conf. Perhaps
you do too?

Apache 2.0 has an include file facility that allows things like PHP to
isolate themselves to their own standard configuration files instead of
polluting httpd.conf with potentially hundreds of lines. Apache will
read all files in the conf.d directory and include them.
--
I used to be clueless about math, but I turned that around 360 degrees.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация