• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved SSI .shtml files not working as expected on new server

PHPBandit

New Pleskian
I recently moved from an old VPS wth Plesk 12.0.18 on CentOS 5 to a new VPS with Plesk 17.0.17 with CentOS 7. I am having a problem where PHP is being displayed in the .shtml files on the new server even though they were working properly on the new server.

For example, I have the exact same file on both servers in question, say test.shtml. They each have the same code. On the old server, the actual inclusion of PHP code is not output when viewing the page source in a browser. On the new server, with the same code, the PHP code is output in the page source. Site on new server uses PHP 5.4, the default version, and old server uses PHP 5.3. On old server, it is run with FCGI or CGI, new server it is with FPM over Apache.

I have tried various fixes with: plesk repair all, plesk repair web, editing the .htaccess, disabling and re-enabling SSI, but nothing has worked.

On the new server, this is the portion of httpd.conf:

<IfModule mime_module>
# other stuff before this
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
</IfModule>

On old server, that same code is in httpd.conf but not in the <IfModule>

I have tried variotions of the following in htaccess

Code:
AddType text/html .shtml
AddHandler server-parsed .shtml
 Make PHP parse SHTML files
AddHandler application/x-httpd-php .shtml
AddHandler php-script .shtml
AddType text/html .shtml
AddType application/x-httpd-php .shtml

Edit: Fixed by adding following to htaccess

Code:
<Files ~ (\.shtml)>
   SetHandler None
   AddHandler php-script .shtml
   Options +ExecCGI
   allow from all
</Files>
 
Last edited:
Back
Top