woostar

Member
Mar 13, 2011
10
0
51
Hi there,

I understand the need to define the php handler in the htaccess but it also adds .php7 .phtml

Code:
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php73” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php73 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
Is there a template I can edit so it adds only .php without .php7 .phtml extensions
Code:
AddHandler application/x-httpd-ea-php73 .php
Many thanks,
S.
 
Last edited:

cPJustinD

Administrator
Staff member
Jan 12, 2021
286
52
103
Houston
cPanel Access Level
Root Administrator
Hey there! There is a post-transaction script named 009-phpconf.pl that runs after any PHP or EasyApache packages are updated, installed, or removed that checks this section of all domains .htaccess files for accuracy. The directives applied, however, should not be modified. We've published an article that covers this in more detail here.

Why did the timestamps on my .htaccess files change after an update?

With that being said, I would highly advise that you submit a feature request for this. Our feature request site is actively reviewed and curated by our development team to identify potential future build plans and accept our community's ideas and suggestions.

You can submit a feature request using the "Submit a Feature Request" link in my signature below. Adding a feature request here will allow the rest of cPanel's users to vote for it if it's something they would like to see implemented as well.

While we cannot guarantee that all requests will be accepted, this is the best way to make suggestions visible to the teams that build cPanel.
 
  • Like
Reactions: cPRex and woostar