Skip to main content

PHP Script is not working in .html file

Comments

4 comments

  • vacancy
    What are you using handler codes for? If you use the default php version, you should not use handler codes in htaccess in inherit mode. If you choose php version, cpanel automatically adds handler codes to htaccess file. The different handler codes you add will create conflicts. It can also help with apache error_log records.
    0
  • Vasanthjan
    Thank you Vacancy, for replying on this. I'm using PHP Version 5.6 and my server is powered by CloudLinux also. But it is not showing any error logs for me. I have tried with this set of codes in the below code it is working fine for me thanks a lot friend. AddHandler application/x-httpd-ea-php56 .htm .html .shtml AddType application/x-httpd-php5 .php
    0
  • cPanelMichael
    I have tried with this set of codes in the below code it is working fine for me thanks a lot friend. AddHandler application/x-httpd-ea-php56 .htm .html .shtml AddType application/x-httpd-php5 .php

    Hello, I'm happy to see you were able to address the issue. Thank you for updating us with the outcome.
    0
  • Donna McMaster
    FYI, the 2-line solution that Vasanthjan posted didn't work for me, but it pointed me in the right direction. This did work: AddType application/x-httpd-ea-php56 .html
    0

Please sign in to leave a comment.