Koozali.org: home of the SME Server

PHP Software Collections for SME Server and realpath_cache_size

Offline Smallbox

  • *
  • 16
  • +0/-0
I installed the PHP Software Collections on the SME Server. I need to set the realpath_cache_size variable to 4M for PHP version 5.6. Tell me how to do this?


Offline Smallbox

  • *
  • 16
  • +0/-0
Re: PHP Software Collections for SME Server and realpath_cache_size
« Reply #2 on: March 06, 2018, 03:33:42 PM »
start from here:

https://forums.contribs.org/index.php/topic,51681.msg263118.html#msg263118

I read all this, but I still do not understand how the file should be called in the directory /etc/e-smith/templates-custom/opt/remi/php56/root/etc/php.ini/ where to register realpath_cache_size = 4M

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: PHP Software Collections for SME Server and realpath_cache_size
« Reply #3 on: March 06, 2018, 04:36:59 PM »
first of all check the fragments you have in /etc/e-smith/templates/opt/remi/php56/root/etc/php.ini/ for your variable.

If you find in a fragment (say XYfile), copy it in /etc/e-smith/templates-custom/opt/remi/php56/root/etc/php.ini/, edit it and expand the template

if you don't find your key, just add a fragment into /etc/e-smith/templates-custom/opt/remi/php56/root/etc/php.ini/ dir, naming as you prefer.. the name should start with 2 numbers and the numbers you choose will be used to order the fragments in template expansion procedure.. IOW, a 12file content will appear in the first lines of the expanded file, while a 99file2 will be at the end.
Since the order of the variables in php.ini is not important, choose the numbers to add your key to the end of file (my personal taste)

HTH

Offline Smallbox

  • *
  • 16
  • +0/-0
Re: PHP Software Collections for SME Server and realpath_cache_size
« Reply #4 on: March 07, 2018, 09:30:55 AM »
Thanks for your quick response, but I did not succeed.
I did not find a variable realpath_cache_size in any of the files in the directory /etc/e-smith/templates/opt/remi/php56/root/etc/php.ini/ . I created the file 99File in the directory where  /etc/e-smith/templates-custom/opt/remi/php56/root/etc/php.ini/.

realpath_cache_size = 4M

 After the server was rebooted, the variable did not change its value (16k default). Maybe I did something wrong?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: PHP Software Collections for SME Server and realpath_cache_size
« Reply #5 on: March 07, 2018, 09:38:19 AM »
did you expand the template with
Code: [Select]
expand-template /opt/remi/php56/root/etc/php.ini

or just rebooted?

if you can, do
Code: [Select]
signal-event post-upgrade; signal-event reboot
« Last Edit: March 07, 2018, 10:27:16 AM by Stefano »

Offline Smallbox

  • *
  • 16
  • +0/-0
Re: PHP Software Collections for SME Server and realpath_cache_size
« Reply #6 on: March 07, 2018, 09:48:37 AM »
Thank you very much, everything worked.