Changes

From SME Server
Jump to navigationJump to search
5 bytes added ,  21:34, 20 August 2022
m
Line 206: Line 206:     
====php.ini====
 
====php.ini====
{{Note box|This is only valid for SME 9 and before. Starting SME10, php-fpm pools are in use. And default php pool is php74-IBAYNAME. php74 will use its own php.ini in /etc/opt/remi/php74/php.ini but thoses values are overriden by the php-fpm.d/ibays.conf which is also templates. and the service to restart would be php74-php-fpm. If you set to use another version of php, then you need to change 74 to the other version eg 80 with the exception of Core version for 54 in SME10 is defined by service php-fpm.}}
+
{{Note box|This is only valid for SME 9 and before. Starting SME10, php-fpm pools are in use. And default php pool is php74-IBAYNAME. php74 will use its own php.ini in /etc/opt/remi/php74/php.ini but thoses values are overriden by the php-fpm.d/ibays.conf which is also templates. And the service to restart would be php74-php-fpm. If you set to use another version of php, then you need to change 74 to the other version eg 80 with the exception of Core version for 54 in SME10 is defined by service php-fpm.}}
 
Examine the template fragments in /etc/e-smith/templates/etc/php.ini and determine which fragment you wish to change.
 
Examine the template fragments in /etc/e-smith/templates/etc/php.ini and determine which fragment you wish to change.
Let's say you want to modify a value that is in the 40DataHandling fragment
+
Let's say you want to modify a value that is in the 40DataHandling fragment.
 
   
 
   
Copy the fragment to the custom template tree
+
Copy the fragment to the custom template tree:
 
  mkdir -p /etc/e-smith/templates-custom/etc/php.ini
 
  mkdir -p /etc/e-smith/templates-custom/etc/php.ini
 
  cp /etc/e-smith/templates/etc/php.ini/40DataHandling /etc/e-smith/templates-custom/etc/php.ini/40DataHandling
 
  cp /etc/e-smith/templates/etc/php.ini/40DataHandling /etc/e-smith/templates-custom/etc/php.ini/40DataHandling
Edit the fragment and make your required changes
+
Edit the fragment and make your required changes:
 
  nano -w /etc/e-smith/templates-custom/etc/php.ini/40DataHandling
 
  nano -w /etc/e-smith/templates-custom/etc/php.ini/40DataHandling
Save changes and exit (press the following keys together)
+
Save changes and exit (press the following keys together):
 
  Ctrl o
 
  Ctrl o
 
  Ctrl x
 
  Ctrl x
Expand template and restart httpd-e-smith
+
Expand template and restart httpd-e-smith:
  expand template /etc/php.ini
+
  expand-template /etc/php.ini
 
<tabs container style="display: inline-block;"><tab name="For SME 10">
 
<tabs container style="display: inline-block;"><tab name="For SME 10">
 
  systemctl restart php-fpm
 
  systemctl restart php-fpm
3,054

edits

Navigation menu