aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-installer-mod/install.d/30php.sh
diff options
context:
space:
mode:
authorM.Gergo2018-07-06 11:13:06 +0200
committerM.Gergo2018-07-06 11:13:06 +0200
commit50310b0e4513ee3fcce67351ae61e8fff851130e (patch)
treefd2e4a73f94a61cd5040f863579149ed97c701a3 /mayor-installer-mod/install.d/30php.sh
parent630f5353ed7a264b0fa17badd62f71a02265a4f7 (diff)
downloadmayor-50310b0e4513ee3fcce67351ae61e8fff851130e.tar.gz
mayor-50310b0e4513ee3fcce67351ae61e8fff851130e.zip
Mappák átnevezve: mayor --> mayor-mod; mayor-installer --> mayor-installer-mod; mayor-installer-fcgi --> mayor-installer-fcgi-mod
Diffstat (limited to 'mayor-installer-mod/install.d/30php.sh')
-rwxr-xr-xmayor-installer-mod/install.d/30php.sh40
1 files changed, 40 insertions, 0 deletions
diff --git a/mayor-installer-mod/install.d/30php.sh b/mayor-installer-mod/install.d/30php.sh
new file mode 100755
index 00000000..5f751018
--- /dev/null
+++ b/mayor-installer-mod/install.d/30php.sh
@@ -0,0 +1,40 @@
+#!/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
+
+
+if [[ "x${RELEASE}" =~ ^x9.* ]]; then
+
+ if [ ! -e /etc/php/7.0/apache2/php.ini.mayor ]; then
+ cp /etc/php/7.0/apache2/php.ini /etc/php/7.0/apache2/php.ini.mayor
+ fi
+ cat /etc/php/7.0/apache2/php.ini.mayor | sed "s/memory_limit/memory_limit = 256M ; old value: /" > /etc/php/7.0/apache2/php.ini
+ echo -e "256M"
+
+else
+
+ echo -n " A PHP memória limit beállítása: "
+ if [ ! -e /etc/php5/apache2/php.ini.mayor ]; then
+ cp /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 -e "256M"
+fi
+
+echo " Az web szerver újraindítása"
+/etc/init.d/apache2 restart
+