Questions tagged [phpbrew]

phpbrew is used to build and install multiple version php(s) in your $HOME directory.

See also:

30 questions
7
votes
4 answers

How to switch between PHP 5.6 / 7.2 on Cloud9?

I use AWS Cloud9 Amazon Web Services a.k.a. Cloud9 IDE. I’m trying to achieve a setup where I can easily switch the frontend (not CLI) PHP version with PHPBrew between 5.6 and 7 whenever. For now, I’ve only achieved that the bash has the 5.6.31, the…
6
votes
3 answers

Symfony demo app install fails - pdo_sqlite missing

I am trying to use the Symfony 4 demo application https://github.com/symfony/demo but when I install it with composer I get the error described below. I am using Ubuntu 16.04 and php 7.1 installed via phpbrew. My steps are as follows: $ cd…
4
votes
1 answer

PHPBrew update existing install with variant?

Once you've installed a PHP version using phpbrew install x.x.x, is it possible to add variants afterwards?
Chris Rogers
  • 1,525
  • 2
  • 20
  • 40
4
votes
2 answers

How to use composer with phpbrew?

I installed phpbrew to use php 5.4 in Ubuntu 14.04. It works fine, except when I try to use composer, which ignores phpbrew and installs dependencies related to php 5.5. Is there a way to force composer to be compatible with phpbrew config? I…
nitche
  • 121
  • 3
  • 13
3
votes
1 answer

Difficulty installing php 5.6.23 using PHPBrew (Error: bz2 module requires libbz2 >= 1.0.0)

I am an absolute beginner of Web Development. [What I would like to do] Install PHP 5.6.23 using PHPBrew Update the version of libbz2 package(?) [Environment] Amazon linux Server(EC2 Instance) PHPbrew version - 1.22.6 [Issue] When I try to install…
ILoveBaymax
  • 267
  • 1
  • 6
  • 19
2
votes
0 answers

How to install INTL into Php 5.5.9 using PHPBREW

I'm working on some legacy code using PHP 5.5.9. Which uses intl. I installed php 5.5.9 with PhpBrew on my mac machine running: phpbrew install --mirror=https://www.php.net php-5.5.9 +default +mysql +pdo +openssl=/usr/local/opt/openssl…
Rubberduck1337106092
  • 1,294
  • 5
  • 21
  • 38
2
votes
1 answer

phpbrew php7 throws gnutls_handshake() failed: Illegal parameter

I've compiled php7.1.30 on ubuntu 14.04 successfully. When I test that peace of code / Get cURL resource $curl = curl_init(); // Set some options - we are passing in a useragent too here curl_setopt_array($curl, [ CURLOPT_RETURNTRANSFER => 1, …
gsone
  • 1,188
  • 8
  • 25
2
votes
0 answers

PHPBrew and SSL

I am attempting to spin up PHPBrew and installing PHP 5.5.38 (I know - it's old and we shouldn't be using it but I have little say in the matter!) Running: phpbrew install 5.5.38 Runs into the following…
Zakalwe
  • 1,444
  • 3
  • 14
  • 25
2
votes
0 answers

Unable to install phpbrew mongo extension

I am trying to install phpbrew mongo extension phpbrew ext install mongo but I am getting error Error: Command failed: ./configure --with-php-config=/home/.phpbrew/php/php-5.5.38/bin/php-config >>…
User 101
  • 1,351
  • 3
  • 12
  • 18
2
votes
4 answers

PHPBrew - various problems with installation

I am trying to install PHP 5.4 with PHPBrew but have those errors: -> % phpbrew install 5.4.6 +default +apxs2 +mysql ===> phpbrew will now build 5.4.6 ===> Loading and resolving variants... Checking distribution…
breq
  • 24,412
  • 26
  • 65
  • 106
1
vote
0 answers

Trouble installing pthreads on M1, throwing error: fatal error: 'Zend/zend_ts_hash.h' file not found

I'm trying to install pthreads on my M1 using pecl but it throws an error: .phpbrew/build/php-8.1.6/ext/pthreads/php_pthreads.c:22: ./src/pthreads.h:59:10: fatal error: 'Zend/zend_ts_hash.h' file not found #include
Blocksector
  • 11
  • 1
  • 4
1
vote
1 answer

Install PHP-7.3 with phpbrew on OS X 10.15.7 (aka OSX14) fails

Installation of PHP-7.3 with phpbrew on OS X 10.15.7 (Catalina): Error: Make failed: The last 5 lines in the log file: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/dirent.h:110:1: note: 'readdir_r' declared here int…
codeneuss
  • 905
  • 4
  • 12
1
vote
0 answers

About some question to switch php version in MacOS

My system OS is MacOS10.13. The default PHP version is 7.1.16. I use phpbrew to manage the PHP version. And I installed the php5.6.When I use command phpbrew switch php5.6. Then I use the commandphp -v Then it outputs: PHP 5.6.30 (cli) (built: May…
1
vote
1 answer

Getting Symfony Doctrine Entity Manager within PHP Docker container / phpbrew for PHP 5.3.10

I'm trying to run a Symfony command under Docker with PHP 5.3.10. When I get to a line like class Data{ public function prepareData(){ echo 'before getContainer'; $em =…
Michael Millar
  • 1,364
  • 2
  • 24
  • 46
1
vote
1 answer

How to completely remove PHPBrew and reinstall regular PHP

I used PHPBrew for a while and now want to remove it completely for various reasons. How do I do that? Removing the ~/.phpbrew directory only is not sufficient. Even removing and reinstalling all PHP packages is not enough, since Apache still…
pixelbrackets
  • 1,958
  • 19
  • 28
1
2