note 126291 added to install.unix.nginx
| From: | LeonNguyenvnlab at main dot php dot net | Date: | Fri, 30 Jul 2021 16:46:23 +0000 |
| Subject: | note 126291 added to install.unix.nginx | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-216692@lists.php.net to get a copy of this message | ||
To maximize the server performance with highest speed, with fewest resources, i have decided to
compile PHP 8 manually from minimal Linux/Unix-based OS (my Linux distro is rpm-based packages)
My system has successfully powered up by PHP 8.0.9 - with Opcache/JIT enabled & other several
PHP extension module. Here is several experience that may save you several hours of research.
1. Before step (3) - Configure and build PHP - to ensure that no errors occurs, you can refer to my
prerequisites library.
sudo dnf install \
gcc gcc-c++ make cmake autoconfig \
zlib zlib-devel pcre pcre-devel \
libxml2-devel libxslt-devel \
bzip2-devel curl-devel libzip-devel\
sqlite-devel \
systemd-devel \
openssl-devel \
libffi-devel \
libpng libpng-devel libwebp libwebp-devel libjpeg libjpeg-devel libXpm libXpm-devel \
freetype-devel \
gmp-devel \
libldb-devel \
libc-client libc-client-devel \
openldap openldap-devel \
oniguruma oniguruma-devel \
net-snmp-devel readline-devel unixODBC-devel \
uw-imap uw-imap-devel uw-imap-static uw-imap-utils \
libicu-devel \
enchant2 enchant2-devel \
gd gd-devel \
libsodium libsodium-devel \
libtidy libtidy-devel
You may not receive error when issuing ./configure, make && make install. Even when you
manually build your PHP extension package later.
2. At step 5 - before modifying php.ini - you may double-check whether the current PHP is reading
which php.ini file by this command
php -ini | grep php.ini
# My result. It is different from tutorial.
Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => /usr/local/lib/php.ini
----
Server IP: 45.112.84.4
Probable Submitter: 45.112.85.242 (proxied: 2405:4802:2f5:6300:bd85:ebd2:2656:f966)
----
Manual Page -- https://php.net/manual/en/install.unix.nginx.php
Edit -- https://main.php.net/note/edit/126291
Del: integrated -- https://main.php.net/note/delete/126291/integrated
Del: useless -- https://main.php.net/note/delete/126291/useless
Del: bad code -- https://main.php.net/note/delete/126291/bad+code
Del: spam -- https://main.php.net/note/delete/126291/spam
Del: non-english -- https://main.php.net/note/delete/126291/non-english
Del: in docs -- https://main.php.net/note/delete/126291/in+docs
Del: other reasons-- https://main.php.net/note/delete/126291
Reject -- https://main.php.net/note/reject/126291
Search -- https://main.php.net/manage/user-notes.php