PHP version - I'm confused
spminiatures.com Zen version 1.58a
I set the php version on the server to 8.1. I must have gotten the information to do that when I installed version 1.58a - clean install.
For some reason, my webhosting service periodically puts the following code in my htaccess file:
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php81” package as the default “PHP” programming language.
<IfModule mime_module>
## AddHandler application/x-httpd-ea-php81 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
When that happens, my site goes down. When I remove the code my site works fine. They suggested that I change the PHP version through the cpanel to 7.4. When I checked the php version on the admin server info page it's. 7.3.3. I changed the cpanel php version to 7.3.3. The site seems to be working ok but I'm concerned that there will be problems.
What is the correct php version to use and how to I fix the program to change the version?
Thanks
Re: PHP version - I'm confused
The code added to your htaccess file is OK, it's what cPanel adds to tell the server which php version to use. Once it's added, your site fails for a different reason, and I'm pretty sure it's what is described here.
Either way, if you're getting a blank screen, you can always check your logs/ folder for the latest file and see what it's telling you.
Re: PHP version - I'm confused
Quote:
Originally Posted by
balihr
The code added to your htaccess file is OK, it's what cPanel adds to tell the server which php version to use. Once it's added, your site fails for a different reason, and I'm pretty sure it's what is described
here.
Either way, if you're getting a blank screen, you can always check your logs/ folder for the latest file and see what it's telling you.
Thanks, I'll try it.
Carol