Hi,
I´m trying to use a custom php.ini for cron jobs, but php ignore my php.ini and use global settings.
[email protected] [~]# /opt/cpanel/ea-php56/root/usr/bin/php -c php.ini -i | grep memory_limit
memory_limit => 256M => 256M
[email protected] [~]# cat php.ini
; cPanel-generated php ini directives, do not edit
; Manual editing of this file may result in unexpected behavior.
; To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
; For more information, read our documentation (PHP Home - EasyApache 4 - cPanel Documentation)
allow_url_fopen = Off
allow_url_include = Off
asp_tags = Off
display_errors = Off
enable_dl = Off
file_uploads = On
max_execution_time = 90
max_input_time = -1
max_input_vars = 1000
memory_limit = 512M
session.gc_maxlifetime = 1440
session.save_path = "/var/cpanel/php/sessions/ea-php56"
upload_max_filesize = 10M
always_populate_raw_post_data = -1
I´ve tried to add in master php.ini (/opt/cpanel/ea-php56/root/etc/php.ini) these lines bellow, but I can see effect only in http.
[PATH=/home/user]
memory_limit = 512M;
I´m using mod_suphp.
Could you help me?
Thank you.
João
I´m trying to use a custom php.ini for cron jobs, but php ignore my php.ini and use global settings.
[email protected] [~]# /opt/cpanel/ea-php56/root/usr/bin/php -c php.ini -i | grep memory_limit
memory_limit => 256M => 256M
[email protected] [~]# cat php.ini
; cPanel-generated php ini directives, do not edit
; Manual editing of this file may result in unexpected behavior.
; To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
; For more information, read our documentation (PHP Home - EasyApache 4 - cPanel Documentation)
allow_url_fopen = Off
allow_url_include = Off
asp_tags = Off
display_errors = Off
enable_dl = Off
file_uploads = On
max_execution_time = 90
max_input_time = -1
max_input_vars = 1000
memory_limit = 512M
session.gc_maxlifetime = 1440
session.save_path = "/var/cpanel/php/sessions/ea-php56"
upload_max_filesize = 10M
always_populate_raw_post_data = -1
I´ve tried to add in master php.ini (/opt/cpanel/ea-php56/root/etc/php.ini) these lines bellow, but I can see effect only in http.
[PATH=/home/user]
memory_limit = 512M;
I´m using mod_suphp.
Could you help me?
Thank you.
João