Hi
We are in the process of transferring our sites onto a new server. Before we switch the DNS we need to preview the sites to make sure all is working correctly....This works fine for most of the domains, but there is just one domain we can't preview, whenever we click the "preview site" button we are presented with a dialogue box saying:
"You have chosen to open:
which is: application/x-httpd-php (1.6kb)"
We have tried various things
- adding a .htaccess file
- followed the information on these links:
Resolved - One domain downloads php files instead of executing them
PHP pages are downloaded if PHP-FPM is used
- changed the PHP version, etc
On the existing server the site is running on PHP 5.4.22, on the new server we don't seem to have this option but have tried PHP 5.4.16, 5.4.45, along with more up to date versions.
But have had no luck.
In the process of trying to fix this problem we also followed this solution:
Apache handler is not available in Plesk: The handler cannot be enabled because corresponding Apache module turned off
But now we are unable to undo this process, and get the following errors:
"Apache Web Server Settings
Error: Unable to turn off the Apache PHP5 module: it is used by domains."
"Apache Web Server Settings
Error: Unable to set the mpm_event mode: it requires Apache PHP5 module turned off but this module is used by domains."
I'd really appreciate any help with this.
Many Thanks
We are in the process of transferring our sites onto a new server. Before we switch the DNS we need to preview the sites to make sure all is working correctly....This works fine for most of the domains, but there is just one domain we can't preview, whenever we click the "preview site" button we are presented with a dialogue box saying:
"You have chosen to open:
which is: application/x-httpd-php (1.6kb)"
We have tried various things
- adding a .htaccess file
- followed the information on these links:
Resolved - One domain downloads php files instead of executing them
PHP pages are downloaded if PHP-FPM is used
- changed the PHP version, etc
On the existing server the site is running on PHP 5.4.22, on the new server we don't seem to have this option but have tried PHP 5.4.16, 5.4.45, along with more up to date versions.
But have had no luck.
In the process of trying to fix this problem we also followed this solution:
Apache handler is not available in Plesk: The handler cannot be enabled because corresponding Apache module turned off
But now we are unable to undo this process, and get the following errors:
"Apache Web Server Settings
Error: Unable to turn off the Apache PHP5 module: it is used by domains."
"Apache Web Server Settings
Error: Unable to set the mpm_event mode: it requires Apache PHP5 module turned off but this module is used by domains."
I'd really appreciate any help with this.
Many Thanks