Crons: PHP_INI_SCAN_DIR for per-User php.ini (TEMPLATES)

Version 1.60.0


New option, off by default; set_php_ini_scan_dir_in_crons=0 can be enabled ./directadmin set set_php_ini_scan_dir_in_crons 1 service directadmin restart such that the next time a User saves their cronjobs, DA will add a line such as this to the top of the crontab: PHP_INI_SCAN_DIR="/usr/local/lib/php.conf.d:/usr/local/php70/lib/php.conf.d:/usr/local/directadmin/data/users/fred/php" DA will also add the file: /usr/local/directadmin/data/user/fred/php/php.ini which might look like this: sendmail_path = /usr/sbin/sendmail -t -i -f session.save_path = /home/fred/tmp open_basedir = /home/fred/:/tmp:/var/tmp:/opt/alt/php70/usr/share/pear/:/dev/urandom:/usr/local/lib/php/:/usr/local/php70/lib/php/ mail.log = /home/fred/.php/php-mail.log and the ~/tmp is created 700 fred:fred if it's not present. ======= TEMPLATES /usr/local/directadmin/data/templates/php-cron.ini -------- |?SENDMAIL_PATH=/usr/sbin/sendmail -t -i -f `PHP_EMAIL`| |?CLI_PHP_MAIL_LOG=`HOME`/.php/php-mail.log| sendmail_path = |SENDMAIL_PATH| session.save_path = |SESSION_SAVE_PATH| open_basedir = |OPEN_BASEDIR_PATH| mail.log = |CLI_PHP_MAIL_LOG| --------

Interested to try DirectAdmin? Get a 30-day Free Trial!