: 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
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.
More posts by @BetL925
2 Comments
Sorted by latest first Latest Oldest Best
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
You should check the webserver/.htaccess configuration. Ask the hosting support to check it for you.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.