- Dec 10, 2016 It is desired to be able to switch between PHP versions. This can be accomplished with PHPBrew. System configuration whereis php php: /usr/bin/php /usr/bin/X11/php.
- PHPBrew 2013-04-18 08:28:45 공개 다양한 PHP 버전과 모듈을 동시에 설치하여 편리하게 바꿔가며 사용 할 수 있도록 도와주는 PHPBrew에 대한 소개 및 설치법입니다.
- $ phpbrew install 5.6.20 +default +iconv +icu +intl +mysql +xmlall $ phpbrew install 7.0.5 +default +iconv +icu +intl +mysql +xmlall To use the newly built PHP, try the line(s) below: $ phpbrew use php-5.6.20.
Apr 29th, 2016
Phpbrew Install Extension
Never
Phpbrew install 5.4.0 +default Above command will install PHP 5.4.0 in home directory with all default variant set because we have added +default in command. If you want to setup specific variants only then you can specify those in you install command. Let's assume we want PHP which needs only PDO and SQLite variants than we can use command.
Not a member of Pastebin yet?Sign Up, it unlocks many cool features!
- > phpbrew will now build 5.5.9
- ---> Parsing variants from command arguments '+default +apxs2'
- Checking distribution checksum...
- Checksum matched: c4a348a07b52f6e177d8fdc75fe507b1
- > Distribution file was successfully extracted, skipping...
- Source Directory: /home/webmaster/.phpbrew/build/php-5.5.9
- Writing variant info to /home/webmaster/.phpbrew/php/php-5.5.9/phpbrew.variants
- Enabled variants: apxs2, xml, bcmath, bz2, calendar, cli, ctype, dom, fileinfo, filter, ipc, json, mbregex, mbstring, mhash, mcrypt, pcntl, pcre, pdo, phar, posix, readline, sockets, tokenizer, curl, openssl, zip
- Found apxs2 binary: /usr/bin/apxs
- > Applying patch - apxs2 module version name ...
- Found existing build.log, renaming it to /home/webmaster/.phpbrew/build/php-5.5.9/build.log.1461923912
- Use tail command to see what's going on:
- $ tail -F /home/webmaster/.phpbrew/build/php-5.5.9/build.log
- ./configure '--prefix=/home/webmaster/.phpbrew/php/php-5.5.9' '--with-config-file-path=/home/webmaster/.phpbrew/php/php-5.5.9/etc' '--with-config-file-scan-dir=/home/webmaster/.phpbrew/php/php-5.5.9/var/db' '--disable-all' '--enable-phar' '--enable-session' '--enable-short-tags' '--enable-tokenizer' '--with-pcre-regex' '--with-zlib=/usr' '--with-libdir=lib/i386-linux-gnu' '--with-apxs2=/usr/bin/apxs2' '--enable-dom' '--enable-libxml' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--with-libxml-dir=/usr' '--enable-bcmath' '--with-bz2=/usr' '--enable-calendar' '--enable-cli' '--enable-ctype' '--enable-dom' '--enable-fileinfo' '--enable-filter' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-json' '--enable-mbregex' '--enable-mbstring' '--with-mhash' '--with-mcrypt=/usr' '--enable-pcntl' '--with-pcre-regex' '--with-pcre-dir=/usr' '--enable-pdo' '--enable-phar' '--enable-posix' '--with-readline=/usr' '--enable-sockets' '--enable-tokenizer' '--with-curl=/usr' '--with-openssl=/usr' '--enable-zip' >> /home/webmaster/.phpbrew/build/php-5.5.9/build.log 2>&1
- make >> /home/webmaster/.phpbrew/build/php-5.5.9/build.log 2>&1
- Build finished: 3.9 minutes.
- ---> Creating php-fpm.conf
- ---> Copying /home/webmaster/.phpbrew/build/php-5.5.9/php.ini-development
- Found existing /home/webmaster/.phpbrew/php/php-5.5.9/etc/php.ini.
- Source directory: /home/webmaster/.phpbrew/build/php-5.5.9
- Congratulations! Now you have PHP with 5.5.9 as php-5.5.9
- * To configure your installed PHP further, you can edit the config file at
- /home/webmaster/.phpbrew/php/php-5.5.9/etc/php.ini
- To use the newly built PHP, try the line(s) below:
- $ phpbrew use php-5.5.9
- Or you can use switch command to switch your default php to php-5.5.9:
- $ phpbrew switch php-5.5.9
- Enjoy!
- Dec 10, 2016 It is desired to be able to switch between PHP versions. This can be accomplished with PHPBrew. System configuration whereis php php: /usr/bin/php /usr/bin/X11/php.
- PHPBrew 2013-04-18 08:28:45 공개 다양한 PHP 버전과 모듈을 동시에 설치하여 편리하게 바꿔가며 사용 할 수 있도록 도와주는 PHPBrew에 대한 소개 및 설치법입니다.
- $ phpbrew install 5.6.20 +default +iconv +icu +intl +mysql +xmlall $ phpbrew install 7.0.5 +default +iconv +icu +intl +mysql +xmlall To use the newly built PHP, try the line(s) below: $ phpbrew use php-5.6.20.
Apr 29th, 2016
Phpbrew Install Extension
Never
Phpbrew install 5.4.0 +default Above command will install PHP 5.4.0 in home directory with all default variant set because we have added +default in command. If you want to setup specific variants only then you can specify those in you install command. Let's assume we want PHP which needs only PDO and SQLite variants than we can use command.
Not a member of Pastebin yet?Sign Up, it unlocks many cool features!
- > phpbrew will now build 5.5.9
- ---> Parsing variants from command arguments '+default +apxs2'
- Checking distribution checksum...
- Checksum matched: c4a348a07b52f6e177d8fdc75fe507b1
- > Distribution file was successfully extracted, skipping...
- Source Directory: /home/webmaster/.phpbrew/build/php-5.5.9
- Writing variant info to /home/webmaster/.phpbrew/php/php-5.5.9/phpbrew.variants
- Enabled variants: apxs2, xml, bcmath, bz2, calendar, cli, ctype, dom, fileinfo, filter, ipc, json, mbregex, mbstring, mhash, mcrypt, pcntl, pcre, pdo, phar, posix, readline, sockets, tokenizer, curl, openssl, zip
- Found apxs2 binary: /usr/bin/apxs
- > Applying patch - apxs2 module version name ...
- Found existing build.log, renaming it to /home/webmaster/.phpbrew/build/php-5.5.9/build.log.1461923912
- Use tail command to see what's going on:
- $ tail -F /home/webmaster/.phpbrew/build/php-5.5.9/build.log
- ./configure '--prefix=/home/webmaster/.phpbrew/php/php-5.5.9' '--with-config-file-path=/home/webmaster/.phpbrew/php/php-5.5.9/etc' '--with-config-file-scan-dir=/home/webmaster/.phpbrew/php/php-5.5.9/var/db' '--disable-all' '--enable-phar' '--enable-session' '--enable-short-tags' '--enable-tokenizer' '--with-pcre-regex' '--with-zlib=/usr' '--with-libdir=lib/i386-linux-gnu' '--with-apxs2=/usr/bin/apxs2' '--enable-dom' '--enable-libxml' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--with-libxml-dir=/usr' '--enable-bcmath' '--with-bz2=/usr' '--enable-calendar' '--enable-cli' '--enable-ctype' '--enable-dom' '--enable-fileinfo' '--enable-filter' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-json' '--enable-mbregex' '--enable-mbstring' '--with-mhash' '--with-mcrypt=/usr' '--enable-pcntl' '--with-pcre-regex' '--with-pcre-dir=/usr' '--enable-pdo' '--enable-phar' '--enable-posix' '--with-readline=/usr' '--enable-sockets' '--enable-tokenizer' '--with-curl=/usr' '--with-openssl=/usr' '--enable-zip' >> /home/webmaster/.phpbrew/build/php-5.5.9/build.log 2>&1
- make >> /home/webmaster/.phpbrew/build/php-5.5.9/build.log 2>&1
- Build finished: 3.9 minutes.
- ---> Creating php-fpm.conf
- ---> Copying /home/webmaster/.phpbrew/build/php-5.5.9/php.ini-development
- Found existing /home/webmaster/.phpbrew/php/php-5.5.9/etc/php.ini.
- Source directory: /home/webmaster/.phpbrew/build/php-5.5.9
- Congratulations! Now you have PHP with 5.5.9 as php-5.5.9
- * To configure your installed PHP further, you can edit the config file at
- /home/webmaster/.phpbrew/php/php-5.5.9/etc/php.ini
- To use the newly built PHP, try the line(s) below:
- $ phpbrew use php-5.5.9
- Or you can use switch command to switch your default php to php-5.5.9:
- $ phpbrew switch php-5.5.9
- Enjoy!
Phpbrew
RAW Paste Data