If PHP script is not working in your HTML file then don't worry, Here is a simple solution which can fix your problem without using php.ini files and sometimes php.ini does not change anything.
Paste this code in your .htaccess of your root folder like /home/username/public_html/.htaccess
AddHandler application/x-httpd-ea-php56 .htm .html .shtm
Change PHP version according to your needs, If you are using PHP v7 then change php56 to php70
Code for PHP version 7:
AddHandler application/x-httpd-ea-php70 .htm .html .shtm
Code for PHP 5.4
Categories
Billing & Accounting
2
Domains & DNS
12
Introduction
2
20i Cloud Hosting
22
Advanced Knowledge
1
Affiliates & Resellers
5
Articles
1
Backup/Restore
4
Basics, Abuse & Other Information
5
Client Area
10
cPanel - Control Panel
21
DirectAdmin Tutorials
28
E-mail
4
FAQ
3
General Issues
2
Linux VPS
3
LiteSpeed
3
Malware
1
Payment Options
0
Reseller Hosting
1
Shared Hosting
5
Turkmenistan VPS Hosting
2
Usage Policy
2
Website Builder
1
WordPress
23
Categories
Tag Cloud
best wordpress hosting
cache plugins
change php version
cheap reseller hosting india
cheap wordpress hosting
cpanel
cpanel php
directadmin
directadminwebhosting
Joomla
LiteSpeed
litespeed hosting
multiphp
php
php version folder
php version per folder
reseller hosting india
secure wordpress
ssd
Turkmenistan
Turkmenistanvps
unlimited reseller hosting india
use php 5.5 on folder
vps
wordpress
wordpress hosting
html files does not display php code - cPanel Print
- 0
Was this answer helpful?
Related Articles
Powered by WHMCompleteSolution
Tag Cloud
best wordpress hosting
cache plugins
change php version
cheap reseller hosting india
cheap wordpress hosting
cpanel
cpanel php
directadmin
directadminwebhosting
Joomla
LiteSpeed
litespeed hosting
multiphp
php
php version folder
php version per folder
reseller hosting india
secure wordpress
ssd
Turkmenistan
Turkmenistanvps
unlimited reseller hosting india
use php 5.5 on folder
vps
wordpress
wordpress hosting