Subversion Repositories ALCASAR

Rev

Rev 534 | Rev 568 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 534 Rev 538
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
#  $Id: alcasar.sh 534 2011-04-07 21:46:35Z richard $ 
2
#  $Id: alcasar.sh 538 2011-04-08 20:41:28Z richard $ 
3
 
3
 
4
# alcasar.sh
4
# alcasar.sh
5
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
5
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
6
# This script is distributed under the Gnu General Public License (GPL)
6
# This script is distributed under the Gnu General Public License (GPL)
7
 
7
 
Line 417... Line 417...
417
# Configuration et sécurisation php
417
# Configuration et sécurisation php
418
	[ -e /etc/php.ini.default ] || cp /etc/php.ini /etc/php.ini.default
418
	[ -e /etc/php.ini.default ] || cp /etc/php.ini /etc/php.ini.default
419
	timezone=`cat /etc/sysconfig/clock|grep ZONE|cut -d"=" -f2`
419
	timezone=`cat /etc/sysconfig/clock|grep ZONE|cut -d"=" -f2`
420
	$SED "s?^;date.timezone =.*?date.timezone = $timezone?g" /etc/php.ini
420
	$SED "s?^;date.timezone =.*?date.timezone = $timezone?g" /etc/php.ini
421
	$SED "s?^upload_max_filesize.*?upload_max_filesize = 100M?g" /etc/php.ini
421
	$SED "s?^upload_max_filesize.*?upload_max_filesize = 100M?g" /etc/php.ini
422
	$SED "s?^upload_max_filesize.*?upload_max_filesize = 100M?g" /etc/php.ini
-
 
423
	$SED "s?^post_max_size.*?post_max_size = 100M?g" /etc/php.ini
422
	$SED "s?^post_max_size.*?post_max_size = 100M?g" /etc/php.ini
424
	$SED "s?^html_errors.*?html_errors = Off?g" /etc/php.ini
423
	$SED "s?^html_errors.*?html_errors = Off?g" /etc/php.ini
425
	$SED "s?^expose_php.*?expose_php = Off?g" /etc/php.ini
424
	$SED "s?^expose_php.*?expose_php = Off?g" /etc/php.ini
426
# Configuration et sécurisation Apache
425
# Configuration et sécurisation Apache
427
	[ -e /etc/httpd/conf/httpd.conf.default ] || cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.default
426
	[ -e /etc/httpd/conf/httpd.conf.default ] || cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.default