Вот лог[Sun Jan 13 09:24:06 2008] [alert] [client 82.202.128.145] /home/www/хххх.ru/хххх.ru/www/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
php работает как модуль
LoadModule php5_module /usr/lib/apache2/modules/mod_php5.so
Вот пример содержимого htaccess
Options -Indexes
ErrorDocument 404 /404.php
php_flag session.use_trans_sid off
php_value display_errors 1
php_value post_max_size 10M
<IfModule mod_mime.c>
AddType application/x-httpd-php .ico
</IfModule>
<IfModule mod_dir.c>
DirectoryIndex index.php index.html
</IfModule>
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType image/jpeg "access plus 3 day"
ExpiresByType image/gif "access plus 3 day"
</IfModule>