Jump to content

[Solved] Can't change PHP version on Tommy


mlex

Recommended Posts

Tried to edit the .htaccess from:

 

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php56” package as the default “PHP” programming language.
<IfModule mime_module>
  AddType application/x-httpd-ea-php56 .php .php5 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit

 

 

to

 

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php56” package as the default “PHP” programming language.
<IfModule mime_module>
  AddType application/x-httpd-php72 .php .php5 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit

Without any positive success.

 

Link to comment
Share on other sites

I can't change it from my end either. WHM says your domain doesn't exist when I try to search for it in the MultiPHP options, and if do it from your cPanel, I experience the same behavior shown in the picture. Renaming your htaccess didn't help either...

 

Lets see if Krydos knows what happened here.

  • Like 1
Link to comment
Share on other sites

Did it by modifying the .htaccess :

 

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php56” package as the default “PHP” programming language.
<IfModule mime_module>
  AddType application/x-httpd-ea-php72 .php .php5 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit

But would be nice to know why I can't modify it from cpanel.

Link to comment
Share on other sites

Did it by modifying the .htaccess :

Glad you figured it out. I prefer to do it manually through .htaccess anyways. The cpanel interface only allows you to control it on a domain level. Manually editing your .htaccess allows you to set different php versions on a per directory level.

 

PHP Warning:  Module 'apcu' already loaded in Unknown on line 0

Fixed. That was just an error in php.ini trying to load the apcu module twice. Not sure why it was like that, and it may come back on it's own. It's actually harmless except for the fact that it spams up your error_log. Thanks for pointing it out.
  • Like 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...