Run multiple php versions on centos 7
Hello ,
Recently i had upgraded my server, installed it with Centos 7 and currently running with php 7.3 +
I have few scripts which are not working on the current php version .. it use to work on php 5.4 while the serve were on centos 6
so, i would like to know if there is a way to run more than a version of php on the server ..
by the way, one of the scripts is showing the following :
So i need help to be able solve this problem
Zend Guard Run-time support missing!
One more more files on this web site were encoded by ZendGuard and the required run-time support is not installed orproperly configured.
For the Web site user
This means that this Web server is not configured correctly to runthe files that it contains. Please contact the Web site'sadministrator/webmaster and inform them of this problem and give themthe URL you are trying to display to help them in diagnosing theproblem.
For The Site Administrator/Web Master
One or more files on your site were encoded with Zend Guard. Thismay be third party libraries that were provided to you by an ISV. Toallow these files to properly run you need to download and installone of the Zend guard run-time libraries. This is either ZendOptimizer or Zend Loader. The proper files can be downloaded fromhttp://www.zend.com/guard/downloads.This software is provided free of charge.
General Disclaimer: Zend Technologies is not responsible tothe configuration and setup of web sites using Zend Guard technology.Please contact your software vendor if these components were providedby an ISV or consult your Zend Guard Users Guide if these files wereencoded by your organization.
So i need help to be able solve this problem
-
Hey there! By default, cPanel supports multiple PHP versions. You would just need to install the versions you want with EasyApache, and then you can go to WHM >> MultiPHP Manager to choose which version of PHP you want to use on each domain. If you have trouble setting that up please let me know! 0 -
Hey there! By default, cPanel supports multiple PHP versions. You would just need to install the versions you want with EasyApache, and then you can go to WHM >> MultiPHP Manager to choose which version of PHP you want to use on each domain. If you have trouble setting that up please let me know!
Hi, Thank you for your kind reply .. After i read your reply, i did a search to understand the way i can install other php version by using " yum " command and " EasyApache " PHP Versions .. i found that the way is by using the command :yum install ea-php54
To install PHP 5.4 etc .. So, by doing that .. will i have PHP 5.4 with the current version of PHP 7 ? And how i can change the php version of a specific website ? is it only from the WHM ?0 -
If you aren't familiar with using Yum on the command line you'll likely find it is much easier to use the WHM >> EasyApache interface to install different PHP versions. But yes, you can do that work on the command line as well and that will work just fine. When you install the main package, such as ea-php54 in your example, it will install dependencies and common modules automatically. Once that is done you'll have both versions installed and you'll be able to choose which one you want to use for each site. You can do that from the MultiPHP Manager tool either in WHM or in cPanel. You may want to read our documentation on that tool here: WHM version: MultiPHP Manager for WHM (new) | cPanel & WHM Documentation cPanel version: MultiPHP Manager for cPanel | cPanel & WHM Documentation 0 -
Hi, I tried what is mentioned in the WHM article .. but it didn't work ! by the way .. While i was searching, i found a post about modifying .htaccess file by adding like this : # php -- BEGIN cPanel-generated handler, do not edit # Set the "ea-php55" package as the default "PHP" programming language. AddType application/x-httpd-ea-php55 .php .php5 .phtml # php -- END cPanel-generated handler, do not edit
will this work ?!0 -
You shouldn't be manually modifying the .htaccess file to try and get it working. It might work temporarily, but the changes may not stick. Can you let me know what didn't work for you in WHM? 0 -
That article wouldn't be related to changing the PHP version for the domains on the system. You'd want to stick with articles on MultiPHP Manager in order to do that work. 0 -
That article wouldn't be related to changing the PHP version for the domains on the system. You'd want to stick with articles on MultiPHP Manager in order to do that work.
Sorry, i got confused .. i opened both pages i thought it is a part of the work that i need to do .. so, should i remove what i did in the article ? and regarding the php version, i should get the new installed php version in WHM ? or there is a way to change the user php version through command line ?!0 -
The changes to PHP-FPM you made are likely still valid, but just wouldn't be related to you running multiple PHP versions on the system. I think it's much easier to use the WHM interface to make these changes as it's just a few clicks to choose a new version in EasyApache, and then another couple clicks to set that version for a site in MultiPHP Manager. You can do that work over command line, but the WHM workflow, in my opinion, is much easier. 0 -
Hi, Thank you again for your help and reply .. i understand that the easiest way to change the php version is through WHM and i will do so .. the other point of asking about the way of doing the same job through ssh, it is just a knowledge and information that i want to understand and learn for any reason i may face .. Any way .. if i face any difficulties, i will let you know .. Thank you very much :) 0 -
Are you seeing any specific errors from the script or in the Apache logs at /etc/apache2/logs/error_log? It sounds like this isn't a problem with changing versions, but a problem with the script itself or a missing PHP module. 0 -
Are you seeing any specific errors from the script or in the Apache logs at /etc/apache2/logs/error_log? It sounds like this isn't a problem with changing versions, but a problem with the script itself or a missing PHP module.
What i am seeing is about Zend .. Same like before ..Zend Guard Run-time support missing! One more more files on this web site were encoded by ZendGuard and the required run-time support is not installed orproperly configured. For the Web site user This means that this Web server is not configured correctly to runthe files that it contains. Please contact the Web site'sadministrator/webmaster and inform them of this problem and give themthe URL you are trying to display to help them in diagnosing theproblem. For The Site Administrator/Web Master One or more files on your site were encoded with Zend Guard. Thismay be third party libraries that were provided to you by an ISV. Toallow these files to properly run you need to download and installone of the Zend guard run-time libraries. This is either ZendOptimizer or Zend Loader. The proper files can be downloaded fromhttp://www.zend.com/guard/downloads.This software is provided free of charge. General Disclaimer: Zend Technologies is not responsible tothe configuration and setup of web sites using Zend Guard technology.Please contact your software vendor if these components were providedby an ISV or consult your Zend Guard Users Guide if these files wereencoded by your organization.
In the version 5.4, is there any thing else i should install ?!0 -
Can you send me the output of the following command on the system? rpm -qa | grep -i zend
That will show me all the Zend packages that are installed on the machine.0 -
Can you send me the output of the following command on the system?
rpm -qa | grep -i zend
That will show me all the Zend packages that are installed on the machine.
it's not showing anything to me ..0 -
Hello again .. Now i understand where i should change .. and i choosed zend, reviewd, then installed .. i had a test file for this script and it shows the functions which is working + what is not working .. right now .. eveything is ok except this function ( zend_optimizer_version ), how to enable it ?! the rest i did enable it through Easyapache and php.ini .. and this the only one left for now .. 0 -
I believe Zend Optimizer stopped being supported with PHP 5.3. Is it possible your sites need an even older version than 5.4 to work properly? 0 -
I believe Zend Optimizer stopped being supported with PHP 5.3. Is it possible your sites need an even older version than 5.4 to work properly?
As what i remember, the script was running on my old server with php 5.4 .. not 100% sure incase if it was 5.3 .. is there a way to install it ?!0 -
There isn't a way to install PHP 5.3 through cPanel. You'd need to be running CloudLinux in order to have that version of the software available, but even with version 5.4 that indicates the script is severely out of date and could have security issues. 0 -
There isn't a way to install PHP 5.3 through cPanel. You'd need to be running CloudLinux in order to have that version of the software available, but even with version 5.4 that indicates the script is severely out of date and could have security issues.
as far as i had using it .. it was fine for me in general .. let say i want to install Zend Optimizer on PHP 5.4, is it possible ?!0 -
I don't believe that is an option. Even checking a CloudLinux system I only see this package is available for PHP 5.2 and 5.3: alt-php52-zend-optimizer.x86_64 : PHP Zend Optimizer alt-php53-zend-optimizer.x86_64 : PHP Zend Optimizer 0 -
Mmm .. I will do some search's and see what will happen .. By the way, currently i'm seeing on the main page of the script this error ( HTTP ERROR 500 ) instead of the Zend Message .. Do you think there is another thing or it is still related to the Zend Opt ?! 0 -
A 500 error is likely something different. I would expect that to show up in the main Apache error log if you watch the /etc/apache2/logs/error_log file. 0 -
A 500 error is likely something different. I would expect that to show up in the main Apache error log if you watch the /etc/apache2/logs/error_log file.
I can't see any new errors in that location .. there are errors but very old .. last one was on Dec 100 -
There may also be error_log in the actual web site. It could be in the main public_html folder or it could be located in any folder within the site. 0 -
That almost sounds like Apache isn't logging anything at all, as I would expect there to be at least a graceful restart since that time. It might be best to have us check the machine on our end if you'd like to submit a ticket. If you do, just let me know the number here and I can follow along. 0 -
That almost sounds like Apache isn't logging anything at all, as I would expect there to be at least a graceful restart since that time. It might be best to have us check the machine on our end if you'd like to submit a ticket. If you do, just let me know the number here and I can follow along.
I found this :[06-Jan-2021 19:44:01 UTC] PHP Fatal error: Incompatible file format: The encoded file has format major ID 4, whereas the Loader expects 5 in ******/index.php on line 0
0
Please sign in to leave a comment.
Comments
32 comments