Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

share|improve this question

1 Answer 1

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.

share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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