Answer the question
In order to leave comments, you need to log in
PHP interpreter does not understand index.php
If you enter the address as www.site.ru/index.php - the server works out and shows the script, but if you enter it without explicitly specifying the www.site.ru file - Apache spits out an index file to me without processing.
Please tell me what is this miracles and how to cure it?
ubuntu 10.04
php 5.3 (mod_fcgid), apache2
Answer the question
In order to leave comments, you need to log in
index.php can be given as a "file" if you forget to write
<?php at the very beginning
Enable php server processing for the domain.
In VirtualHost or .htaccess add:
RemoveHandler .php
AddType application/x-httpd-php .php
If index is given as a file, then Apache gives it as static without passing it through php, dig in this direction. See the Apache settings for a link with php, maybe there is no handler and type
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question