Line 1... |
Line 1... |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
# $Id: alcasar.sh 2396 2017-08-27 13:35:35Z tom.houdayer $
|
2 |
# $Id: alcasar.sh 2397 2017-08-27 13:38:32Z tom.houdayer $
|
3 |
|
3 |
|
4 |
# alcasar.sh
|
4 |
# alcasar.sh
|
5 |
|
5 |
|
6 |
# ALCASAR Install script - CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...]
|
6 |
# ALCASAR Install script - CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...]
|
7 |
# Ce programme est un logiciel libre ; This software is free and open source
|
7 |
# Ce programme est un logiciel libre ; This software is free and open source
|
Line 735... |
Line 735... |
735 |
[ -e /etc/php.ini.default ] || cp /etc/php.ini /etc/php.ini.default
|
735 |
[ -e /etc/php.ini.default ] || cp /etc/php.ini /etc/php.ini.default
|
736 |
timezone=`cat /etc/sysconfig/clock|grep ZONE|cut -d"=" -f2`
|
736 |
timezone=`cat /etc/sysconfig/clock|grep ZONE|cut -d"=" -f2`
|
737 |
$SED "s?^;date.timezone =.*?date.timezone = $timezone?g" /etc/php.ini
|
737 |
$SED "s?^;date.timezone =.*?date.timezone = $timezone?g" /etc/php.ini
|
738 |
$SED "s?^upload_max_filesize.*?upload_max_filesize = 100M?g" /etc/php.ini
|
738 |
$SED "s?^upload_max_filesize.*?upload_max_filesize = 100M?g" /etc/php.ini
|
739 |
$SED "s?^post_max_size.*?post_max_size = 100M?g" /etc/php.ini
|
739 |
$SED "s?^post_max_size.*?post_max_size = 100M?g" /etc/php.ini
|
- |
|
740 |
$SED "s?^display_errors.*?display_errors = Off?" /etc/php.ini
|
- |
|
741 |
$SED "s?^display_startup_errors.*?display_startup_errors = Off?" /etc/php.ini
|
740 |
$SED "s?^html_errors.*?html_errors = Off?g" /etc/php.ini
|
742 |
$SED "s?^html_errors.*?html_errors = Off?g" /etc/php.ini
|
741 |
$SED "s?^expose_php.*?expose_php = Off?g" /etc/php.ini
|
743 |
$SED "s?^expose_php.*?expose_php = Off?g" /etc/php.ini
|
- |
|
744 |
$SED "s?^allow_url_fopen.*?allow_url_fopen = Off?" /etc/php.ini
|
742 |
# Configuring & sécuring Apache
|
745 |
# Configuring & sécuring Apache
|
743 |
rm -rf /var/www/cgi-bin/* /var/www/perl/* /var/www/icons/README* /var/www/error/README*
|
746 |
rm -rf /var/www/cgi-bin/* /var/www/perl/* /var/www/icons/README* /var/www/error/README*
|
744 |
[ -e /etc/httpd/conf/httpd.conf.default ] || cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.default
|
747 |
[ -e /etc/httpd/conf/httpd.conf.default ] || cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.default
|
745 |
$SED "s?^#ServerName.*?ServerName $HOSTNAME.$DOMAIN?g" /etc/httpd/conf/httpd.conf
|
748 |
$SED "s?^#ServerName.*?ServerName $HOSTNAME.$DOMAIN?g" /etc/httpd/conf/httpd.conf
|
746 |
$SED "s?^Listen.*?Listen $PRIVATE_IP:80?g" /etc/httpd/conf/httpd.conf
|
749 |
$SED "s?^Listen.*?Listen $PRIVATE_IP:80?g" /etc/httpd/conf/httpd.conf
|