Home >Backend Development >PHP Tutorial >How to use custom parameters when installing php using homebrew

How to use custom parameters when installing php using homebrew

WBOY
WBOYOriginal
2016-07-06 13:52:521199browse

Use homebrew to install php, followed by installation parameters.

brew install php56 --enable-fpm --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-zlib --enable-zip --enable-soap - -enable-opcache --with-mcrypt --with-openssl --with-curl --enable-mbstring --enable-sockets --with-freetype-dir --with-jpeg-dir --with-png-dir --with-gd --without-homebrew-php

But after installation, check the installation parameters and they are all the default parameters of homebrew.

How to use custom parameters when installing php using homebrew

How to install custom parameters, I searched on Baidu and it seems that others have done this too.

Reply content:

Use homebrew to install php, followed by installation parameters.

brew install php56 --enable-fpm --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-zlib --enable-zip --enable-soap - -enable-opcache --with-mcrypt --with-openssl --with-curl --enable-mbstring --enable-sockets --with-freetype-dir --with-jpeg-dir --with-png-dir --with-gd --without-homebrew-php

But after installation, check the installation parameters and they are all the default parameters of homebrew.

How to use custom parameters when installing php using homebrew

How to install custom parameters, I searched on Baidu and it seems that others have done this too.

Thank you for the invitation, (actually I don’t know how to php)

I’m not sure if your parameters are legal. I suggest you check the official website directly (Baidu is really not good at this, but it’s pretty good for searching entertainment information).

homebrew-php

Look at the following chapters:

How to use custom parameters when installing php using homebrew

Should you first brew options php56 take a look at what option are there before using

Extensions can be installed separately
For example:
brew search php-redis
List the corresponding extensions
brew install /xxx/xxx/php-redis

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn