Skip to content

Instantly share code, notes, and snippets.

@soyHouston256
Forked from yehgdotnet/install_phpzip.md
Created October 21, 2020 15:51
Show Gist options
  • Save soyHouston256/4f232c3d72301e4b9fea5bcd031c2e37 to your computer and use it in GitHub Desktop.
Save soyHouston256/4f232c3d72301e4b9fea5bcd031c2e37 to your computer and use it in GitHub Desktop.
MAMP PRO for Mac OSX - Installing PHP ZIP extension

From Terminal

# install dependencies
brew install autoconf # required by pecl 
brew install libzip


# install zip extenion in your selected MAMP PHP version 
ls /Applications/MAMP/bin/php/
cd /Applications/MAMP/bin/php/php[Version]bin
pecl install zip

# edit php.ini in your selected MAMP PHP version 
ls /Applications/MAMP/conf/p*
cd /Applications/MAMP/conf/php7.3.8/ 
echo "extension=zip" >> php.ini

thanks @kk-gjyang for the fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment