Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2015
    Location
    USA
    Posts
    157
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,542
    Plugin Contributions
    19

    Default 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.

  3. #3
    Join Date
    Feb 2015
    Location
    USA
    Posts
    157
    Plugin Contributions
    0

    Default Re: PHP version - I'm confused

    Quote Originally Posted by balihr View Post
    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

 

 

Similar Threads

  1. Replies: 9
    Last Post: 6 Feb 2024, 12:05 PM
  2. Replies: 1
    Last Post: 5 Feb 2024, 09:06 AM
  3. v157 PHP Version: 8.0.0 upgraded to PHP Version: 8.0.25 - Front end down work
    By ChrisFourie in forum Upgrading to 1.5.x
    Replies: 6
    Last Post: 15 Feb 2023, 11:16 PM
  4. So confused, tpl_header.php doesn't seem to be changing...
    By asauterChicago in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 20 Mar 2009, 09:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR