- add numerical prefix to extension configuration files
- prevent .user.ini files from being viewed by Web clients - load php directives only when mod_php is active
This commit is contained in:
parent
234e26722b
commit
dc4f1dc1a0
46
php.conf
46
php.conf
@ -1,9 +1,9 @@
|
|||||||
#
|
#
|
||||||
# Cause the PHP interpreter to handle files with a .php extension.
|
# The following lines prevent .user.ini files from being viewed by Web clients.
|
||||||
#
|
#
|
||||||
<FilesMatch \.php$>
|
<Files ".user.ini">
|
||||||
SetHandler application/x-httpd-php
|
Require all denied
|
||||||
</FilesMatch>
|
</Files>
|
||||||
|
|
||||||
#
|
#
|
||||||
# Allow php to handle Multiviews
|
# Allow php to handle Multiviews
|
||||||
@ -16,18 +16,28 @@ AddType text/html .php
|
|||||||
#
|
#
|
||||||
DirectoryIndex index.php
|
DirectoryIndex index.php
|
||||||
|
|
||||||
#
|
# mod_php options
|
||||||
# Uncomment the following lines to allow PHP to pretty-print .phps
|
<IfModule mod_php5.c>
|
||||||
# files as PHP source code:
|
#
|
||||||
#
|
# Cause the PHP interpreter to handle files with a .php extension.
|
||||||
#<FilesMatch \.phps$>
|
#
|
||||||
# SetHandler application/x-httpd-php-source
|
<FilesMatch \.php$>
|
||||||
#</FilesMatch>
|
SetHandler application/x-httpd-php
|
||||||
|
</FilesMatch>
|
||||||
|
|
||||||
#
|
#
|
||||||
# Apache specific PHP configuration options
|
# Uncomment the following lines to allow PHP to pretty-print .phps
|
||||||
# those can be override in each configured vhost
|
# files as PHP source code:
|
||||||
#
|
#
|
||||||
php_value session.save_handler "files"
|
#<FilesMatch \.phps$>
|
||||||
php_value session.save_path "/var/lib/php/session"
|
# SetHandler application/x-httpd-php-source
|
||||||
php_value soap.wsdl_cache_dir "/var/lib/php/wsdlcache"
|
#</FilesMatch>
|
||||||
|
|
||||||
|
#
|
||||||
|
# Apache specific PHP configuration options
|
||||||
|
# those can be override in each configured vhost
|
||||||
|
#
|
||||||
|
php_value session.save_handler "files"
|
||||||
|
php_value session.save_path "/var/lib/php/session"
|
||||||
|
php_value soap.wsdl_cache_dir "/var/lib/php/wsdlcache"
|
||||||
|
</IfModule>
|
||||||
|
27
php.spec
27
php.spec
@ -69,7 +69,7 @@
|
|||||||
Summary: PHP scripting language for creating dynamic web sites
|
Summary: PHP scripting language for creating dynamic web sites
|
||||||
Name: php
|
Name: php
|
||||||
Version: 5.5.11
|
Version: 5.5.11
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
# All files licensed under PHP version 3.01, except
|
# All files licensed under PHP version 3.01, except
|
||||||
# Zend is licensed under Zend
|
# Zend is licensed under Zend
|
||||||
# TSRM is licensed under BSD
|
# TSRM is licensed under BSD
|
||||||
@ -820,7 +820,7 @@ chmod 644 README.*
|
|||||||
echo "d /run/php-fpm 755 root root" >php-fpm.tmpfiles
|
echo "d /run/php-fpm 755 root root" >php-fpm.tmpfiles
|
||||||
|
|
||||||
# Some extensions have their own configuration file
|
# Some extensions have their own configuration file
|
||||||
cp %{SOURCE50} .
|
cp %{SOURCE50} 10-opcache.ini
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -1298,11 +1298,17 @@ for mod in pgsql odbc ldap snmp xmlrpc imap \
|
|||||||
zip \
|
zip \
|
||||||
%endif
|
%endif
|
||||||
; do
|
; do
|
||||||
# for extension load order
|
case $mod in
|
||||||
if [ "$mod" = "wddx" ]
|
opcache)
|
||||||
then ini=xml_${mod}.ini
|
# Zend extensions
|
||||||
else ini=${mod}.ini
|
ini=10-${mod}.ini;;
|
||||||
fi
|
pdo_*|mysqlnd_*|wddx|xmlreader|xmlrpc)
|
||||||
|
# Extensions with dependencies on 20-*
|
||||||
|
ini=30-${mod}.ini;;
|
||||||
|
*)
|
||||||
|
# Extensions with no dependency
|
||||||
|
ini=20-${mod}.ini;;
|
||||||
|
esac
|
||||||
# some extensions have their own config file
|
# some extensions have their own config file
|
||||||
if [ -f ${ini} ]; then
|
if [ -f ${ini} ]; then
|
||||||
cp -p ${ini} $RPM_BUILD_ROOT%{_sysconfdir}/php.d/${ini}
|
cp -p ${ini} $RPM_BUILD_ROOT%{_sysconfdir}/php.d/${ini}
|
||||||
@ -1372,7 +1378,7 @@ cat files.zip >> files.common
|
|||||||
install -m 644 %{SOURCE51} $RPM_BUILD_ROOT%{_sysconfdir}/php.d/opcache-default.blacklist
|
install -m 644 %{SOURCE51} $RPM_BUILD_ROOT%{_sysconfdir}/php.d/opcache-default.blacklist
|
||||||
install -m 644 %{SOURCE51} $RPM_BUILD_ROOT%{_sysconfdir}/php-zts.d/opcache-default.blacklist
|
install -m 644 %{SOURCE51} $RPM_BUILD_ROOT%{_sysconfdir}/php-zts.d/opcache-default.blacklist
|
||||||
sed -e '/blacklist_filename/s/php.d/php-zts.d/' \
|
sed -e '/blacklist_filename/s/php.d/php-zts.d/' \
|
||||||
-i $RPM_BUILD_ROOT%{_sysconfdir}/php-zts.d/opcache.ini
|
-i $RPM_BUILD_ROOT%{_sysconfdir}/php-zts.d/10-opcache.ini
|
||||||
|
|
||||||
# Install the macros file:
|
# Install the macros file:
|
||||||
sed -e "s/@PHP_APIVER@/%{apiver}%{isasuffix}/" \
|
sed -e "s/@PHP_APIVER@/%{apiver}%{isasuffix}/" \
|
||||||
@ -1544,6 +1550,11 @@ exit 0
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Apr 23 2014 Remi Collet <rcollet@redhat.com> 5.5.11-2
|
||||||
|
- add numerical prefix to extension configuration files
|
||||||
|
- prevent .user.ini files from being viewed by Web clients
|
||||||
|
- load php directives only when mod_php is active
|
||||||
|
|
||||||
* Thu Apr 3 2014 Remi Collet <rcollet@redhat.com> 5.5.11-1
|
* Thu Apr 3 2014 Remi Collet <rcollet@redhat.com> 5.5.11-1
|
||||||
- Update to 5.5.11
|
- Update to 5.5.11
|
||||||
http://www.php.net/ChangeLog-5.php#5.5.11
|
http://www.php.net/ChangeLog-5.php#5.5.11
|
||||||
|
Loading…
Reference in New Issue
Block a user