After re-installing my PHP setting from a backup my web pages started downloading instead of showing in the browser. I found the following solution online:
"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."
I did contact RSP Support about this and after telling me I shouldn't have restored the settings myself they gave me the following advice:
"I can advise you to remove any installation that you installed and reboot the VPS container, so that any system files that might have been replaced during that process, may be re-generated."
As I was about to reboot the VPS container I realized that all but one of the sites hosted on my VPS are working correctly. To me that means the the installation is working correctly, so I didn't do it. Later, another tech said:
"The reason why your website is not opening correctly is because of this line in your .htaccess file:
'AddType application/x-httpd-php .html'
Unfortunately it is not possible to parse PHP in HTML files."
That line was removed. The site stopped downloading the file, but it is still not parsing in the browser. Should that line be replaced with something else, or should I go ahead and reboot the VPS, or do something else? The site is at www. JokeyPokey .com. Any help would be appreciated.
RSP support tried to help, but I would like to have a conversation about this in order to turn it into a learning experiance, and i don't think that some of the techs are in a teaching mode.
Thanks...
PS: If I "remove any installation that you installed and reboot the VPS container", would it have the sites that are working?
"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."
I did contact RSP Support about this and after telling me I shouldn't have restored the settings myself they gave me the following advice:
"I can advise you to remove any installation that you installed and reboot the VPS container, so that any system files that might have been replaced during that process, may be re-generated."
As I was about to reboot the VPS container I realized that all but one of the sites hosted on my VPS are working correctly. To me that means the the installation is working correctly, so I didn't do it. Later, another tech said:
"The reason why your website is not opening correctly is because of this line in your .htaccess file:
'AddType application/x-httpd-php .html'
Unfortunately it is not possible to parse PHP in HTML files."
That line was removed. The site stopped downloading the file, but it is still not parsing in the browser. Should that line be replaced with something else, or should I go ahead and reboot the VPS, or do something else? The site is at www. JokeyPokey .com. Any help would be appreciated.
RSP support tried to help, but I would like to have a conversation about this in order to turn it into a learning experiance, and i don't think that some of the techs are in a teaching mode.
Thanks...
PS: If I "remove any installation that you installed and reboot the VPS container", would it have the sites that are working?
Comment