MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: klisa on 2017-08-29, 08:38:38

Title: trouble with edit "ini_set" in php.ini
Post by: klisa on 2017-08-29, 08:38:38
hi
one of my sites got in trouble, and i should edit php.ini and set again "ini_set"
but i can't find it in kloxo panel,
advanced php configure seems does't have ini_set,
but how can i edit php.ini?
and how to edit ini_set?

Thanks in Advance
Title: Re: trouble with edit "ini_set" in php.ini
Post by: MRatWork on 2017-08-29, 09:48:40
No setting for init_set by default by Kloxo-MR.

What's you want setting for init_set?.
Title: Re: trouble with edit "ini_set" in php.ini
Post by: klisa on 2017-08-29, 12:48:06
i have joomla website, when i load home page, this error appear:

Error 500
PHP regular expression limit reached (pcre.backtrack_limit)

after i search about this error, i find that  ini_set must set same as:

ini_set('pcre.backtrack_limit',1000000);
ini_set('pcre.recursion_limit',1000000);

for this reason i should access to php.ini



Title: Re: trouble with edit "ini_set" in php.ini
Post by: MRatWork on 2017-08-29, 13:08:50
No, you need add:
Code: [Select]
<?php
ini_set
('pcre.backtrack_limit',1000000);
ini_set('pcre.recursion_limit',1000000);
?>

in top of index.php in document root.