Dari judul di atas di atas kita bisa artikan bahwa ada batas eksekusi di script yang diproses pada PHP, jadi untuk mengatasi masalah di atas bisa kita selesaikan dengan mengedit file php.ini.
Yang pertama pastikan anda mengalami masalah ini ya...heeheheee..
Baik langsung saja hal pertama yang anda lakukan:
Set the
max_execution_time
in your PHP
configuration file to the number of seconds that want to allow your PHP
scripts to execute.
- Edit
php.ini
file using your favourite editor.
$ sudo vi /etc/php/7.2/apache2/php.ini
- Look for
max_execution_time
directive.
; Maximum execution time of each script, in seconds ; http://php.net/max-execution-time ; Note: This directive is hardcoded to 0 for the CLI SAPI max_execution_time = 30
- Change the value for
max_execution_time
in seconds.
max_execution_time = 300
Setting it to0
will impose no time limit whatsoever to the execution of yourPHP
scripts.It's not recommended to set the value to0
at this level as this method's system-wide change will cause any misbehavedPHP
scripts to unnecessarily consume preciousCPU
time. - Restart your web server.
$ sudo systemctl restart apache2
0 Comments
Hi...
:)
Thank You for your Comment.
I will reply as soon as possible.