diff options
author | M.Gergo | 2019-03-08 23:32:47 +0100 |
---|---|---|
committer | M.Gergo | 2019-03-08 23:32:47 +0100 |
commit | c0f79397dd75e03a7a40303f82926e8187697d07 (patch) | |
tree | e945a10ef6479e0f8720ad9cd4947b6a85b78d6e /mayor-orig/mayor-installer-orig/install.d/30php.sh | |
parent | f51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0 (diff) | |
download | mayor-c0f79397dd75e03a7a40303f82926e8187697d07.tar.gz mayor-c0f79397dd75e03a7a40303f82926e8187697d07.zip |
Rev: 4455
Diffstat (limited to 'mayor-orig/mayor-installer-orig/install.d/30php.sh')
-rwxr-xr-x | mayor-orig/mayor-installer-orig/install.d/30php.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/mayor-orig/mayor-installer-orig/install.d/30php.sh b/mayor-orig/mayor-installer-orig/install.d/30php.sh new file mode 100755 index 00000000..49000c68 --- /dev/null +++ b/mayor-orig/mayor-installer-orig/install.d/30php.sh @@ -0,0 +1,29 @@ +#!/bin/bash +# + +cat <<EOF +A PHP memória limit beállítása + +Az alapértelmezett 16MB-os memória a rendszer futtatásához a +legtöbb esetben elég, de egyes esetekben (például a nyomtatványok +generálásakor) kevésnek bizonyul. Ezért a telepítő ezt a küszöböt +256MB-ra emeli. Az eredeti php.ini állományról másolat készül +php.ini.mayor néven. + +EOF + +read -n 1 -p "A php.ini-t módosíthatom? (i/N)" -s DO +if [ "$DO" != "i" ]; then echo -e "\nNem módosítom a php.ini-t.\n"; exit 1; fi + +exit 1 + +echo -n " A PHP memória limit beállítása: " +if [ ! -e /etc/php5/apache2/php.ini.mayor ]; then + mv /etc/php5/apache2/php.ini /etc/php5/apache2/php.ini.mayor +fi +cat /etc/php5/apache2/php.ini.mayor | sed "s/memory_limit/memory_limit = 256M ; old value: /" > /etc/php5/apache2/php.ini +echo 256M + +echo " Az web szerver újraindítása" +/etc/init.d/apache2 restart + |