milis/talimatname/genel/p/php7/talimat

51 lines
1.8 KiB
Plaintext
Raw Normal View History

2017-11-01 03:18:53 +01:00
# Tanım: Dinamik web sitelerinde kullanılan programlama kodunun doğrudan HTML içine gömülmesini sağlar.
2017-04-11 09:08:01 +02:00
# URL: http://www.php.net
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler: apache libxml2 aspell aspell-tr libxslt enchant pcre pth freetype libexif libjpeg-turbo libpng libtiff db mariadb openldap postgresql sqlite unixodbc cyrus-sasl kerberos
2016-02-24 01:27:23 +01:00
2017-10-28 14:10:23 +02:00
isim=php7
_isim=php
2017-10-31 02:36:52 +01:00
surum=7.1.11
2017-10-28 14:10:23 +02:00
devir=1
2016-02-24 01:27:23 +01:00
2017-11-01 03:18:53 +01:00
kaynak=(http://php.net/distributions/${_isim}-$surum.tar.xz)
2016-02-24 01:27:23 +01:00
2017-10-27 23:59:41 +02:00
derle() {
2016-02-24 01:27:23 +01:00
2017-10-31 02:36:52 +01:00
cd ${_isim}-$surum
2016-02-24 01:27:23 +01:00
2017-04-24 02:34:23 +02:00
./configure --prefix=/usr \
2016-02-24 01:27:23 +01:00
--sysconfdir=/etc \
--localstatedir=/var \
--datadir=/usr/share/php \
--mandir=/usr/share/man \
--enable-fpm \
2017-04-24 02:34:23 +02:00
--with-fpm-user=www-data \
--with-fpm-group=www-data \
2016-02-24 01:27:23 +01:00
--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 \
2017-04-24 02:34:23 +02:00
--with-mysqli=shared \
--with-mysql-sock=/run/mysqld/mysqld.sock \
--with-pdo-mysql=shared \
2016-02-24 01:27:23 +01:00
--with-readline
make
make -j1 INSTALL_ROOT=$PKG install
install -v -m644 php.ini-production $PKG/etc/php.ini
2017-04-24 02:34:23 +02:00
if [ -f /etc/php-fpm.conf.default ]; then
mv -v /etc/php-fpm.conf{.default,} &&
mv -v /etc/php-fpm.d/www.conf{.default,}
fi
sed -i 's@php/includes"@&\ninclude_path = ".:/usr/lib/php"@' $PKG/etc/php.ini
2016-02-24 01:27:23 +01:00
}