How the "PHP settings" module works when modifying parameters

Introduction

The user directory~/php-bin/ by default contains the following files:

  1. php - php-cgi start script;
  2. .php.ini - user configuration file;
  3. php.ini - PHP configuration file, which is a global php.ini, where user variables from .php.ini re redefined (see section 2.).

How the module works

If you have administrator privileges 
  1. Changes are described in the file specified in the "php_ini" variable from the ISPmanager configuration file (mgr5/etc/ispmgr.conf).
  2. Changes made to the global php.ini are applied for each user wiht the PHP activate. I.e. all the changes made in the global php.ini file are specified in the user php.ini the parameter being edited is not defined by the user (the paremeter value will nor change in this case).

 

If you have user privileges 
  1. Changes are specified into the ~/php-bin/.php.ini file
  2. Changes are applied regardless the global php.ini and are specified into the ~/php-bin/php.ini file. I.e. a local copy of the global php.ini is created, where variable from .php.ini are redefined (see section 1.) and specified in the ~/php-bin/php.ini file.
 Attention: if you are making changes to files from shell (or in the "File manager" module):
 1. ~/php-bin/php.ini - will be overwritten when changing PHP parameters in ISPmanager, i.e. all user settings will be lost. 
 2. ~/php-bin/.php.ini - modified parameters will be applied only once PHP parameters are edited in ISPmanager.

If you want to configure PHP settings manually, duplicate the required changes into both ~/php-bin/php.ini and ~/php-bin/.php.ini files.

 

Was this answer helpful?

 Print this Article

Also Read

Backup archives

In this module you can use a list of archives that were stored during the backup process. You can...

ISPmanager installation guide

Installation from system repository ISPsystem software products 5.15.0 and later can be...

ISPmanager Web-server configuration

Supported software Currently, ISPmanager supports the following servers: Nginx 1.1.15 and...

Dovecot configuration files

Details of the dovecot Following is the example of Dovecot on Debian. You can see the lines that...

Configuring FTP-server

Supported software Currently ISPmanager supports the following FTP-servers: ProFTPd;...