cPanel max_execution_Time reports 0

GOT

Well-Known Member
#1
We are running Litespeed with cpanel. We have this line in /usr/local/lib/php.ini:

max_execution_time = 30

However, php is reporting this value is set to 0

root@web1 [~]# php -i|grep execution
max_execution_time => 0 => 0

How do we get this to report the correct value?
 

NiteWave

Administrator
#2
#3
You're probably running /usr/local/bin/php (the cli version) which always reports no limit on max_execution_time. You can try "/usr/bin/php -i | grep execution_time" for the cgi version, which reads the limit set in php.ini, or invoke /usr/local/lsws/fcgi-bin/lsphp5 (litespeed's php binary), or test via a webpage running phpinfo().

"which php" should show the version you ran just typing php, which is based on the order of your search path.
 
Last edited:
Top