Case 1
Problem
Cannot find OpenSSL’s <evp.h>
Install the library
apt-get install libssl-dev
Case 2
Problem
configure: error: Please reinstall the libzip distribution
Install the library
apt-get install libzip-dev
Case 3
Problem
configure: error: freetype-config not found
Go to download directory
cd /path/to/download
Download the freetype library, unzip and enter to this directory
wget https://download.savannah.gnu.org/releases/freetype/freetype-2.10.XX.tar.gz
tar zxvf freetype-2.10.XX.tar.gz
cd freetype-2.10.XX
Configure the library, compile and install
./configure --prefix=/path/to/freetype --enable-freetype-config
make
make install
Install PHP
Enter to download directory
cd /path/to/download
Download the php
wget https://www.php.net/distributions/php-7.3.XX.tar.gz
tar zxvf php-7.3.XX.tar.gz
cd php-7.3.XX
Configure the library
./configure --prefix=/path/to/php --enable-fpm --with-fpm-user=www --with-fpm-group=www --with-openssl --with-openssl-dir --with-pcre-regex --with-zlib --with-libzip --enable-bcmath --enable-ftp --with-gd --with-jpeg-dir --with-png-dir --with-webp-dir --with-freetype-dir=/path/to/freetype --enable-gd-jis-conv --with-gettext --with-mhash --enable-mbstring --with-zlib-dir --with-mysqli --with-pdo-mysql --enable-sockets --enable-zip --enable-mysqlnd --with-curl --enable-opcache --enable-soap
make
make install