Home >Backend Development >PHP Tutorial >How to use custom parameters when installing php using homebrew
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 install custom parameters, I searched on Baidu and it seems that others have done this too.
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 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:
Should you first
brew options php56
take a look at whatoption
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