diff options
author | M.Gergo | 2018-07-06 11:13:06 +0200 |
---|---|---|
committer | M.Gergo | 2018-07-06 11:13:06 +0200 |
commit | 50310b0e4513ee3fcce67351ae61e8fff851130e (patch) | |
tree | fd2e4a73f94a61cd5040f863579149ed97c701a3 /mayor-installer-fcgi-mod/fcgi_install.d/30php.sh | |
parent | 630f5353ed7a264b0fa17badd62f71a02265a4f7 (diff) | |
download | mayor-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-fcgi-mod/fcgi_install.d/30php.sh')
-rwxr-xr-x | mayor-installer-fcgi-mod/fcgi_install.d/30php.sh | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/mayor-installer-fcgi-mod/fcgi_install.d/30php.sh b/mayor-installer-fcgi-mod/fcgi_install.d/30php.sh new file mode 100755 index 00000000..3e4545a2 --- /dev/null +++ b/mayor-installer-fcgi-mod/fcgi_install.d/30php.sh @@ -0,0 +1,35 @@ +#!/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. + +Figyelem!! +A mod_fcgid miatt a mayor php.ini -je nem a /etc/php5/apache2 mappában, +hanem a php-csomagoló mellett a /home/$MAYORUSER/mayor/www-bin/ mappában kell legyen!! + +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 + +echo -n " A PHP memória limit beállítása: " +if [ ! -e "/home/$MAYORUSER/mayor/www-bin/php.ini.mayor" ]; then + cp "/home/$MAYORUSER/mayor/www-bin/php.ini" "/home/$MAYORUSER/mayor/www-bin/php.ini.mayor" +fi + +sed -e "s/memory_limit.*/memory_limit = 256M/g" -i "/home/$MAYORUSER/mayor/www-bin/php.ini" +echo "256M" +sed -e "s/;cgi.force_redirect.*/cgi.force_redirect = 1/g" -i "/home/$MAYORUSER/mayor/www-bin/php.ini" +sed -e "s/;cgi.fix_pathinfo.*/cgi.fix_pathinfo = 1/g" -i "/home/$MAYORUSER/mayor/www-bin/php.ini" +sed -e "s/;date.timezone.*/date.timezone = Europe/Budapest/g" -i "/home/$MAYORUSER/mayor/www-bin/php.ini" + +echo " Az web szerver újraindítása" +/etc/init.d/apache2 restart + |