php-duzeltme
This commit is contained in:
parent
08095ec3a3
commit
feca77e2d5
|
@ -4,18 +4,19 @@
|
|||
# Gerekler: php7 apache
|
||||
|
||||
isim=php7-apache
|
||||
surum=7.1.4
|
||||
surum=7.1.11
|
||||
devir=1
|
||||
kaynak=(http://www.php.net/distributions/php-$surum.tar.xz apache.conf)
|
||||
kaynak=(http://www.php.net/distributions/php-$surum.tar.xz
|
||||
apache.conf)
|
||||
|
||||
derle() {
|
||||
cd php-$surum
|
||||
cd php-$surum
|
||||
|
||||
./configure --disable-all \
|
||||
--with-apxs2
|
||||
make DESTDIR=$PKG install
|
||||
./configure --disable-all \
|
||||
--with-apxs2
|
||||
make DESTDIR=$PKG install
|
||||
|
||||
install -D -m755 ${SRC}/php-${surum}/libs/libphp7.so ${PKG}/usr/lib/httpd/modules/libphp7.so
|
||||
install -D -m644 ${SRC}/apache.conf ${PKG}/etc/httpd/conf/extra/php7_module.conf
|
||||
echo "extension=apache.so" > $PKG/etc/php/conf.d/apache.ini
|
||||
install -D -m755 ${SRC}/php-${surum}/libs/libphp7.so ${PKG}/usr/lib/httpd/modules/libphp7.so
|
||||
install -D -m644 ${SRC}/apache.conf ${PKG}/etc/httpd/conf/extra/php7_module.conf
|
||||
echo "extension=apache.so" > $PKG/etc/php/conf.d/apache.ini
|
||||
}
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
. /root/bin/mps
|
||||
if [ "$durum" = "`kurulu_kontrol php`" ]; then
|
||||
if [ -d /var/lib/pkg/DB/php ]; then
|
||||
echo "eski php sürümü siliniyor."
|
||||
mps sil php
|
||||
nokta=`date +%m-%d-%y.%H%M%S`
|
||||
mkdir -p /var/lib/pkg/koruma
|
||||
cp /etc/php.ini /var/lib/pkg/koruma/php.ini.$nokta
|
||||
cp /etc/php-fpm.conf /var/lib/pkg/koruma/php-fpm.conf.$nokta
|
||||
cp /etc/pear.conf /var/lib/pkg/koruma/pear.conf.$nokta
|
||||
[ -f /etc/php.ini ] && cp /etc/php.ini /var/lib/pkg/koruma/php.ini.$nokta
|
||||
[ -f /etc/php-fpm.conf ] && cp /etc/php-fpm.conf /var/lib/pkg/koruma/php-fpm.conf.$nokta
|
||||
[ -f /etc/pear.conf ] && cp /etc/pear.conf /var/lib/pkg/koruma/pear.conf.$nokta
|
||||
else
|
||||
echo "eski php sürümü mevcut degil."
|
||||
fi
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Tanım: Dinamik web sitelerinde kullanılan programlama kodunun doğrudan HTML içine gömülmesini sağlar. Ayrıca, genel amaçlı bir betik dili olarak da yararlıdır.
|
||||
# Tanım: Dinamik web sitelerinde kullanılan programlama kodunun doğrudan HTML içine gömülmesini sağlar.
|
||||
# URL: http://www.php.net
|
||||
# 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
|
||||
|
@ -8,7 +8,7 @@ _isim=php
|
|||
surum=7.1.11
|
||||
devir=1
|
||||
|
||||
kaynak=(http://php.net/distributions/${_isim}-$surum.tar.xz{,.asc})
|
||||
kaynak=(http://php.net/distributions/${_isim}-$surum.tar.xz)
|
||||
|
||||
derle() {
|
||||
|
||||
|
|
Loading…
Reference in New Issue