Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I'm having this weird issue with my Domain. My domain is saoo.eu hosted on HostZilla. The issue is that whenever I open an HTML/PHP file it automatically downloads it instead of opening it into the browser. Example the saoo.eu/test.html page. Same thing happens with the index.html file. What is going on?

Also if I want an PHP code ran into an HTML file I have to add an .htaccess file. But it doesn't seem to work. Tested it before.

share|improve this question
add comment

2 Answers 2

up vote 4 down vote accepted

The server is possibly missing this apache mod

Does your browser ask if you want to download the php file instead of displaying it? If Apache is not actually parsing the php after you restarted it, install libapache2-mod-php5. It is installed when you install the php5 package, but may have been removed inadvertently by packages which need to run a different version of php.

If sudo a2enmod php5 returns "$ This module does not exist!", you should purge (not just remove) the libapache2-mod-php5 package and reinstall it.

https://help.ubuntu.com/community/ApacheMySQLPHP

share|improve this answer
    
Definitely something wrong with Apache. Happened to me a while back. Hosting support should be able to fix it quickly. –  Drai Mar 20 '12 at 12:31
    
Yes definitely contact hosting support. Unless you have root access on your server to check this yourself –  Anagio Mar 20 '12 at 12:32
add comment

You should check the webserver/.htaccess configuration. Ask the hosting support to check it for you.

share|improve this answer
add comment

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.