Search code examples
php.htaccessservercpanel

php version in htaccess is resetting


i set my directory php version to 8 in cpanel in htaccess:

<IfModule mime_module>
  AddHandler application/x-httpd-ea-php80 .php .php8 .phtml
</IfModule>

but it is reset to :

<IfModule mime_module>
  AddHandler application/x-httpd-ea-php74 .php .php7 .phtml
</IfModule>

after a moment... why?

I tried changing php version to 8 and that's reset to 7 after a moment


Solution

  • Just go to CPanel's Multi PHP Manager page and change php version to your desired version