| Server IP : 23.254.227.96 / Your IP : 216.73.216.183 Web Server : Apache/2.4.62 (Unix) OpenSSL/1.1.1k System : Linux hwsrv-1277026.hostwindsdns.com 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Tue May 30 14:53:41 EDT 2023 x86_64 User : viralblo ( 1001) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /proc/self/root/usr/local/src/imagick/docker/ |
Upload File : |
#!/usr/bin/env bash
set -e
set -x
# git clone https://github.com/php/php-src
SRCFILE="php-7.2.11"
SRCFILE="php-7.1.24"
mkdir -p /var/app/php_src/${SRCFILE}
tar -xzf /var/app/php_src/${SRCFILE}.tar.gz -C /var/app/php_src/${SRCFILE} --strip-components=1
cd /var/app/php_src/${SRCFILE}
# ./buildconf
# ./configure --disable-all --without-pear
./configure \
--without-pear \
--without-sqlite3 \
--without-pdo-sqlite \
--with-openssl \
--enable-mbstring \
--with-curl \
--with-zip
# For Mac
export PKG_CONFIG_PATH="/opt/homebrew/Cellar/openssl@1.1/1.1.1s/lib/pkgconfig:$PKG_CONFIG_PATH"
./configure \
--without-pear \
--without-sqlite3 \
--without-pdo-sqlite \
--with-openssl \
--enable-mbstring \
--with-curl \
--with-zip \
--without-iconv \
--prefix=/opt/danack \
--exec-prefix=/opt/danack
./configure --with-imagick=/opt/danack
make -j 20
make install
export TEST_PHP_EXECUTABLE=`which php`
# echo "extension=imagick.so" > /usr/local/lib/php.ini