UI Architect, Full Stack Web Developer – San Francisco Bay Area (Walnut Creek), CA
UI Architect, Full Stack Web Developer – San Francisco Bay Area (Walnut Creek), CA

Having trouble getting PHP to parse files without a PHP extension in cPanel

While migrating servers, this code in .htaccess stopped working for me:
<Files filename>
SetHandler application/x-httpd-php
</Files>

After hours of searching (and mostly playing around), this fixed it:

<Files filename>
SetHandler application/x-httpd-ea-php56
</Files>

Leave a comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.