Skip to content

Instantly share code, notes, and snippets.

@rogervila
Created November 24, 2025 11:49
Show Gist options
  • Select an option

  • Save rogervila/2fa95180c4cffa6fffb2fae590cdf371 to your computer and use it in GitHub Desktop.

Select an option

Save rogervila/2fa95180c4cffa6fffb2fae590cdf371 to your computer and use it in GitHub Desktop.
~/.phpenv/plugins/php-build/share/php-build/default_configure_options
--enable-sockets
--enable-exif
--with-zlib
--with-zlib-dir=/usr
--with-bz2
--enable-intl
--with-openssl
--enable-soap
--enable-xmlreader
--with-xsl
--enable-ftp
--enable-cgi
--with-curl=/usr
--with-tidy
--with-xmlrpc
--enable-sysvsem
--enable-sysvshm
--enable-shmop
--with-mysqli=mysqlnd
--with-pdo-mysql=mysqlnd
--with-pdo-sqlite
--enable-pcntl
--with-readline
--enable-mbstring
--disable-debug
--enable-fpm
--enable-bcmath
--enable-phpdbg
--with-gmp=/usr
--with-pear
--enable-xml
--with-libxml
--enable-simplexml
--enable-xmlwriter
--enable-dom
--enable-pdo
--enable-session
--enable-hash
--enable-json
--enable-tokenizer
--enable-filter
--enable-ctype
--with-iconv
@rogervila
Copy link
Author

Ubuntu:

sudo apt update
sudo apt install -y \
build-essential autoconf bison re2c pkg-config libtool libxml2-dev libbz2-dev libicu-dev libssl-dev libxslt1-dev libcurl4-openssl-dev libtidy-dev libsqlite3-dev libreadline-dev libonig-dev libgmp-dev \
libjpeg-dev libpng-dev libwebp-dev libfreetype6-dev libzip-dev \
libonig-dev libicu-dev libxslt1-dev libreadline-dev libtidy-dev \
libgmp-dev libbz2-dev libcurl4-openssl-dev libxml2-dev \
libsqlite3-dev libmysqlclient-dev libssl-dev libexif-dev

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