Mobile app version of vmapp.org
Login or Join
BetL925

: Domain files download upon opening 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

@BetL925

Posted in: #Html #Php

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.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @BetL925

2 Comments

Sorted by latest first Latest Oldest Best

 

@Angela700

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.

help.ubuntu.com/community/ApacheMySQLPHP

10% popularity Vote Up Vote Down


 

@Nimeshi995

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

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme