Giter VIP home page Giter VIP logo

Comments (4)

AnoopAlias avatar AnoopAlias commented on August 18, 2024

You basically have to build the newer version with the same options as you did in the previous build . note that phpbrew is a multi version installer .So there is no concept like upgrade php5.5.x to a newer one .You just build the new one alongside the old and delete the old one if its not required . Each version will be installed into its own folder .

Also read : https://github.com/phpbrew/phpbrew/wiki/Cookbook

from autom8n.

brianjking avatar brianjking commented on August 18, 2024

@AnoopAlias -- I'm a bit confused and hope you can help! Your SSH key is still in my hosts file, just FYI.

[root@lw ~]# phpbrew update
===> Fetching release list...
[==================================================================] 184.00/184.00B 100%
Redirecting to https://secure.php.net/releases/index.php?json&version=5&max=100
5.6: 12 releases
5.5: 28 releases
5.4: 44 releases
5.3: 16 releases
===> Done
[root@lw ~]# phpbrew known
5.6: 5.6.11, 5.6.10, 5.6.9, 5.6.8, 5.6.7, 5.6.6, 5.6.5, 5.6.4 ...
5.5: 5.5.27, 5.5.26, 5.5.25, 5.5.24, 5.5.23, 5.5.22, 5.5.21, 5.5.20 ...
5.4: 5.4.43, 5.4.42, 5.4.41, 5.4.40, 5.4.39, 5.4.38, 5.4.37, 5.4.36 ...
5.3: 5.3.29, 5.3.28, 5.3.27, 5.3.26, 5.3.25, 5.3.24, 5.3.23, 5.3.22 ...
You can run `phpbrew update` to get a newer release list.
[root@lw ~]# phpbrew install --like php-5.5.20 --as php-5.5.27
GetOptionKit\Exception\InvalidOptionException: Invalid option: --as
Trace:

    0) GetOptionKit\ContinuousOptionParser->parse(['/usr/bin/phpbrew', 'install', '--like', 'php-5.5.20', '--as', 'php-5.5.27'])
    1) GetOptionKit\ContinuousOptionParser->continueParse()
    2) CLIFramework\Application->run(['/usr/bin/phpbrew', 'install', '--like', 'php-5.5.20', '--as', 'php-5.5.27'])
    3) CLIFramework\Application->runWithTry(['/usr/bin/phpbrew', 'install', '--like', 'php-5.5.20', '--as', 'php-5.5.27'])
    4) require('phar:///usr/bin/phpbrew/scripts/phpbrew-emb.php')

[root@lw ~]# phpbrew install phpbrew 5.5.27
Exception: Version phpbrew not found.
Trace:

    0) PhpBrew\Command\InstallCommand->execute('phpbrew', '5.5.27')
    1) call_user_func_array([PhpBrew\Command\InstallCommand, 'execute'], ['phpbrew', '5.5.27'])
    2) CLIFramework\CommandBase->executeWrapper(['phpbrew', '5.5.27'])
    3) CLIFramework\Application->run(['/usr/bin/phpbrew', 'install', 'phpbrew', '5.5.27'])
    4) CLIFramework\Application->runWithTry(['/usr/bin/phpbrew', 'install', 'phpbrew', '5.5.27'])
    5) require('phar:///usr/bin/phpbrew/scripts/phpbrew-emb.php')

from autom8n.

brianjking avatar brianjking commented on August 18, 2024

@AnoopAlias Please help!

from autom8n.

AnoopAlias avatar AnoopAlias commented on August 18, 2024

@brianjking .phpbrew is a bit cumbersome as we have to apply all the options again to compile the new version . One easy way to apply the current cPanel config is

phpbrew install 5.x.x +fpm -- CONFIGOPTIONS

Where CONFIGOPTIONS can ge got from the command

php-config --configure-options

Note that you must delete the "--prefix=/usr/local" from the above manually as otherwise the install will overwrite system php.

To get rid of all these hassles you can use the PHP installed from remi repo using command
/opt/nDeploy/scripts/easy_php_setup.sh

This will install 3 versions of PHP and always keep it updated using yum .

Again phpbrew recompile is not an nDeploy bug. So this issue is a wontFix .You can avail our tech support and have one of our admins compile phprew new version at hourly support rates if you wish

from autom8n.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.