Dear Support,
We are performing a migration of our own domain, that runs on a server with PHP 5.2, CentOS 5.11 and Apache / 2.2.3.
On the Production Server, we've executed scripts with extension .sphp.
The necessary settings for the operation, is to make the configuration in the file: /etc/httpd/conf.d/php.conf according to the follow configs:
#
# Cause PHP-CGI handle files with .sphp extension.
#
AddType application / x-httpd-wphp .sphp
Action application / x-httpd-wphp / cgi-bin / php-cgi
With these settings, the .sphp file runs on the production server.
How do we perform this configuration on our Plesk server?
We have a server in test environment and we don't get what is wrong with the plesk and the old system.
We have already migrated all content, however when performing tests in the .sphp script, he not executed, just performed the download of the file.
Additionally, we have already performed tests inserting the line:
"AddHandler application / x-httpd-wphp .sphp" in the .htaccess file and the add a MIME type handler, however, even if you make these settings, the content of the file are displayed in the browser instead of being executed like you can see below
Example:
Info.sphp is printed in the browser:
<?
Phpinfo ();
?>