Commit c03e9329 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

We need 1GB swap when building PHP 7

parent a0486cbf
...@@ -27,6 +27,11 @@ all: httpd-conf php-fpm-service ...@@ -27,6 +27,11 @@ all: httpd-conf php-fpm-service
rm -rf swap rm -rf swap
7: httpd-conf php-fpm-service 7: httpd-conf php-fpm-service
dd if=/dev/zero of=swap bs=1048576 count=1024
chmod 600 swap
mkswap swap
swapon swap
tar xf php-7.4.7.tar.xz tar xf php-7.4.7.tar.xz
cd php-7.4.7 && ./configure --prefix=/usr --sysconfdir=/etc --with-config-file-scan-dir=/etc/php.d --localstatedir=/var --datadir=/usr/share/php --mandir=/usr/share/man --enable-fpm --with-fpm-user=apache --with-fpm-group=apache --with-fpm-systemd --with-config-file-path=/etc --with-zlib --enable-bcmath --with-bz2 --enable-calendar --enable-dba=shared --with-gdbm --with-gmp --enable-ftp --with-gettext --enable-mbstring --with-readline --enable-sockets --enable-intl --enable-soap --with-openssl --with-mysqli --with-pdo-mysql --with-mysql-sock=/run/mysql.sock --with-curl --enable-gd --with-jpeg --with-freetype --with-ldap --with-xsl --enable-exif --with-zip cd php-7.4.7 && ./configure --prefix=/usr --sysconfdir=/etc --with-config-file-scan-dir=/etc/php.d --localstatedir=/var --datadir=/usr/share/php --mandir=/usr/share/man --enable-fpm --with-fpm-user=apache --with-fpm-group=apache --with-fpm-systemd --with-config-file-path=/etc --with-zlib --enable-bcmath --with-bz2 --enable-calendar --enable-dba=shared --with-gdbm --with-gmp --enable-ftp --with-gettext --enable-mbstring --with-readline --enable-sockets --enable-intl --enable-soap --with-openssl --with-mysqli --with-pdo-mysql --with-mysql-sock=/run/mysql.sock --with-curl --enable-gd --with-jpeg --with-freetype --with-ldap --with-xsl --enable-exif --with-zip
$(MAKE) -C php-7.4.7 CPPFLAGS+=' -DU_USING_ICU_NAMESPACE=1 -DTRUE=1 -DFALSE=0' CFLAGS+=' -DTRUE=1 -DFALSE=0' $(MAKE) -C php-7.4.7 CPPFLAGS+=' -DU_USING_ICU_NAMESPACE=1 -DTRUE=1 -DFALSE=0' CFLAGS+=' -DTRUE=1 -DFALSE=0'
...@@ -46,6 +51,9 @@ all: httpd-conf php-fpm-service ...@@ -46,6 +51,9 @@ all: httpd-conf php-fpm-service
systemctl enable php-fpm.service systemctl enable php-fpm.service
rm -rf php-7.4.7 rm -rf php-7.4.7
swapoff swap
rm -rf swap
php: php:
tar xf php-8.0.7.tar.xz tar xf php-8.0.7.tar.xz
cd php-8.0.7 && ./configure --prefix=/usr --sysconfdir=/etc --with-config-file-scan-dir=/etc/php.d --localstatedir=/var --datadir=/usr/share/php --mandir=/usr/share/man --enable-fpm --with-fpm-user=apache --with-fpm-group=apache --with-fpm-systemd --with-config-file-path=/etc --with-zlib --enable-bcmath --with-bz2 --enable-calendar --enable-dba=shared --with-gdbm --with-gmp --enable-ftp --with-gettext --enable-mbstring --with-readline --enable-sockets --enable-intl --enable-soap --with-openssl --with-mysqli --with-pdo-mysql --with-mysql-sock=/run/mysql.sock --with-curl --enable-gd --with-jpeg --with-freetype --with-ldap --with-xsl --enable-exif --with-zip cd php-8.0.7 && ./configure --prefix=/usr --sysconfdir=/etc --with-config-file-scan-dir=/etc/php.d --localstatedir=/var --datadir=/usr/share/php --mandir=/usr/share/man --enable-fpm --with-fpm-user=apache --with-fpm-group=apache --with-fpm-systemd --with-config-file-path=/etc --with-zlib --enable-bcmath --with-bz2 --enable-calendar --enable-dba=shared --with-gdbm --with-gmp --enable-ftp --with-gettext --enable-mbstring --with-readline --enable-sockets --enable-intl --enable-soap --with-openssl --with-mysqli --with-pdo-mysql --with-mysql-sock=/run/mysql.sock --with-curl --enable-gd --with-jpeg --with-freetype --with-ldap --with-xsl --enable-exif --with-zip
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment