i have new root server.Everything fine,but when i try to open the .php file,mozilla tell me to download that file. Example : http://88.198.63.211/index.php

How to fix this? Best Regards, DK-System

link|improve this question
feedback

1 Answer

You need to add the following line in the corresponding Directory directive:

AddType application/x-httpd-php .php

This line enables the execition of the php files in the indicated directory path.

Have a look at this link.

link|improve this answer
Tnx Khaled,btw what is " corresponding Directory directive" and where to find that file. Tnx! – DK-System Dec 1 '10 at 9:27
@DK-System: Look for a "Directory" directive in your apache config files. Then, add this type inside it. You may be able to do it from a web interface. – Khaled Dec 1 '10 at 9:29
I was trying to find directory called "directive" but nothing.I have searched on /etc/apache5/ and in var/www/vhost/ but there is nothing like directivi folder. – DK-System Dec 1 '10 at 9:47
@DK-System: I included a link in my answer. – Khaled Dec 1 '10 at 10:01
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.