Subversion Repositories ALCASAR

Rev

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

Rev 532 Rev 534
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
#  $Id: alcasar.sh 532 2011-04-05 22:17:43Z richard $ 
2
#  $Id: alcasar.sh 534 2011-04-07 21:46:35Z 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 414... Line 414...
414
		[ -d $DIR_SAVE/$i ] || mkdir -p $DIR_SAVE/$i
414
		[ -d $DIR_SAVE/$i ] || mkdir -p $DIR_SAVE/$i
415
	done
415
	done
416
	chown -R root:apache $DIR_SAVE
416
	chown -R root:apache $DIR_SAVE
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`
-
 
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
419
	$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
420
	$SED "s?^post_max_size.*?post_max_size = 100M?g" /etc/php.ini
423
	$SED "s?^post_max_size.*?post_max_size = 100M?g" /etc/php.ini
421
	$SED "s?^html_errors.*?html_errors = Off?g" /etc/php.ini
424
	$SED "s?^html_errors.*?html_errors = Off?g" /etc/php.ini
422
	$SED "s?^expose_php.*?expose_php = Off?g" /etc/php.ini
425
	$SED "s?^expose_php.*?expose_php = Off?g" /etc/php.ini
423
# Configuration et sécurisation Apache
426
# Configuration et sécurisation Apache