Your proftpd.conf ?
Posts by kess
-
-
@Ninos
Thank you for your fast reply, i know that method but unfortunately it does not fit my needs.I must migrate on my servers a website based on typo3 version 4.7 (I know it's old but I can not tell nothing to the customer). The webmaster needs ImageMagick (the true ImageMagick convert command) in order for the site to work correctly (don't ask me why, GD2 should also be fine but he pretends ImageMagick).
How can I do in order to achieve that ?
Thank you, bye Kess. -
Hi all guys,
I searched the forums but I didn't find nothing about that.Do you know some intelligent method for enabling ImageMagick for some domains ?
I know that by altering the open_baselib variable and adding the /usr/bin path does the trick, but I don't like that. In any case, after each update, these parameters are lost.
Help please
Thank you, bye Kess. -
I know, thx a lot for that
-
I reported that issue some time ago. If you use TLS with Proftpd you need to set up 2 parameters as described here: https://youtrack.i-mscp.net/issue/IP-1289
Of course you also need to forward the ports on your firewall.Hope it helps
-
Thx for your time, but as I wrote before it's not a blocking problem and I just disabled it until I'll upgrade my debian servers.
You are naturally free to investigateThank you again
-
-
Here we go...
Shell-Script- #!/bin/sh -e
- max=1440
- if which php5 >/dev/null 2>&1; then
- for sapi in apache2 apache2filter cgi fpm; do
- if [ -e /etc/php5/${sapi}/php.ini ]; then
- cur=$(php5 -c /etc/php5/${sapi}/php.ini -d "error_reporting='~E_ALL'" -r 'print ini_get("session.gc_maxlifetime");')
- [ -z "$cur" ] && cur=0
- [ "$cur" -gt "$max" ] && max=$cur
- fi
- done
- else
- for ini in /etc/php5/*/php.ini /etc/php5/conf.d/*.ini; do
- cur=$(sed -n -e 's/^[[:space:]]*session.gc_maxlifetime[[:space:]]*=[[:space:]]*\([0-9]\+\).*$/\1/p' $ini 2>/dev/null || true);
- [ -z "$cur" ] && cur=0
- [ "$cur" -gt "$max" ] && max=$cur
- done
- fi
- echo $(($max/60))
- exit 0
-
@Nuxwin, voilà
Shell-Script- #!/bin/sh
- # first find all used files and touch them (hope it's not massive amount of files)
- [ -x /usr/bin/lsof ] && /usr/bin/lsof -w -l +d "${1}" | awk -- '{ if (NR > 1) { print $9; } }' | xargs -i touch -c {}
- # find all files older then maxlifetime
- find "${1}" -depth -mindepth 1 -maxdepth 1 -ignore_readdir_race -type f -cmin "+${2}" -delete
-
As requested
Code- /etc/php5/fpm/php.ini:1482:session.gc_maxlifetime = 1440
- /etc/php5/fpm/php.ini:1489:; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
- /etc/php5/fpm/php.ini.ucf-dist:1415:session.gc_maxlifetime = 1440
- /etc/php5/fpm/php.ini.ucf-dist:1422:; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
- /etc/php5/cgi/php.ini:1415:session.gc_maxlifetime = 1440
- /etc/php5/cgi/php.ini:1422:; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
- /etc/php5/cli/php.ini:1415:session.gc_maxlifetime = 1440
- /etc/php5/cli/php.ini:1422:; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
- /etc/php5/embed/php.ini:1415:session.gc_maxlifetime = 1440
- /etc/php5/embed/php.ini:1422:; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):