Cara Setting global php.ini untuk semua alt-php version di Cloudlinux

Posted on

Halo sobat, buat kalian yang ingin seting beberapa parameter di php.ini cloudlinux secara global berkut caranya

  1.  edit /etc/cl.selector/global_php.ini
  2. Paling bawah tambahkan
    max_execution_time = 120
    memory_limit = 96M
    upload_max_filesize = 70M
    post_max_size = 70M
    disable_functions = mail,show_source,symlink,system,shell_eval,define_syslog_variables,syslog,openlog,closelog,passthru,ocinumcols,ini_alter,leak,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_dl,dll,ftp,myshellsocket_bind,popen,fpassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_pcntl_getpriority,pcntl_setpriority,str_rot13
    date.timezone = "Asia/Jakarta"

    Sesuaikan nilai diatas dengan kebutuhan kalian

    Contoh hasilnya

  3. Kemudian save dan jalankan perintah berikut untuk apply
    /usr/sbin/cagefsctl --apply-global-php-ini
    
  4. Selamat mencoba

Leave a Reply

Your email address will not be published. Required fields are marked *