Возможно в настройках Апача не указаны расширения файлов которые будут интерпретироваться PHP. Скажем *.php. Или *.html - сначала через интер-ор потом на выход сервера (вроде так). В общем погляди настройки
Добавление типа...
Цитата:
# AddType allows you to tweak mime.types without actually editing it, or to
# make certain files to be certain types.
#
# For example, the PHP3 module (not part of the Apache distribution)
# will typically use:
#
AddType application/x-httpd-php .php
#AddType application/x-httpd-php3-source .phps
|
Алиас для обработчика
Цитата:
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /php/ "d:/www/php/"
|
Кто будет обрабатывать
Цитата:
# Action lets you define media types that will execute a script whenever
# a matching file is called. This eliminates the need for repeated URL
# pathnames for oft-used CGI file processors.
# Format: Action media/type /cgi-script/location
# Format: Action handler-name /cgi-script/location
Action application/x-httpd-php "/php/php.exe"
|