Install PHP 7.4 ZTS with ext-parallel on Debian 10

apt-get install build-essential pkg-config autoconf bison re2c libxml2-dev libssl-dev libsqlite3-dev libcurl4-openssl-dev libpng-dev libjpeg-dev libonig-dev libfreetype6-dev libxslt1-dev libzip-dev libtidy-dev libmysqlclient-dev

cd /usr/local/src

wget -qO-${VERSION}.tar.gz | tar -xz
cd php-${VERSION}/ext

git clone --depth 1 --branch v1.1.4

cd ..
./buildconf --force

./configure \
    --prefix=/etc/php/7.4z \
    --with-config-file-path=/etc/php/7.4z \
    --with-config-file-scan-dir=/etc/php/7.4z/conf.d \
    --disable-cgi \
    --with-zlib \
    --with-zip \
    --enable-soap \
    --enable-intl \
    --with-openssl \
    --with-curl \
    --enable-mysqlnd \
    --with-mysqli=mysqlnd \
    --with-pdo-mysql=mysqlnd \
    --enable-pcntl \
    --enable-gd \
    --enable-exif \
    --with-jpeg \
    --with-freetype \
    --with-xsl \
    --with-gettext \
    --enable-bcmath \
    --enable-mbstring \
    --enable-calendar \
    --with-tidy \
    --enable-maintainer-zts \
    --enable-parallel \
    --enable-ftp \

make -j$(nproc)
make install

cp php.ini-production /etc/php/7.4z/php.ini
ln -s /etc/php/7.4z/bin/php /usr/bin/php74z

Additional config: OPCache needs to be turned on, otherwise may run to memory corruption error in parallel extension.

mkdir /etc/php/7.4z/conf.d
nano /etc/php/7.4z/conf.d/additional.ini



NO_PUBKEY B188E2B695BD4743

Sometimes you may see this error “The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY B188E2B695BD4743”

You can solve this issue by running the following commands.

apt-key adv --keyserver --recv-keys B188E2B695BD4743
# apt-get update

How to install and configure OpenVPN on Debian 10

OpenVPN is a free and open source VPN solution. VPN solution. As a result VPN allow to secure your data communications. It implements OSI layer 2 or 3 secure network extension using the SSL/TLS protocol. A VPN allows your yo connect securely to an insecure public network such as WiFi network at the airport or hotel. Almost companies also use VPN to access corporate or enterprise or home server resources. You can bypasss geo-blocked site and increase your privacy or safety online.

Continue reading “How to install and configure OpenVPN on Debian 10”