Skip to main content

Use PHP 5.6 only in one folder

Comments

5 comments

  • dalem
    What you describing works fine for me
    0
  • DennisMidjord
    Are you running PHP from the command line? If running from the command line, you should use the following: /usr/local/bin/ea-php56
    0
  • cPanelLauren
    Hi, I have global configuration PHP 7.2, but i need to use the PHP 5.6 to one folder . I have try to use it through .htaccess but does not work. Any suggestions? Thanks John

    Can you explain exactly how you're using it and how you're determining that it isn't working?
    0
  • JohnACy
    Hello we have try through the .htaccess # php -- BEGIN cPanel-generated handler, do not edit # Set the "ea-php56" package as the default "PHP" programming language. AddType application/x-httpd-ea-php56 .php .php5 .phtml # php -- END cPanel-generated handler, do not edit
    while on multiphp manager system php 7.2
    0
  • cPanelLauren
    HI @JohnACy Do you have a specific site within that directory? You should be able to set the site (if an addon domain) to a specific PHP version using the MultiPHP Manager
    0

Please sign in to leave a comment.