-------------
Configuration
-------------
See phpini/data/phpini.conf
### Setup
!!! Check `perl` path. If it's not /usr/local/bin/perl, create symlink in /usr/local/bin !!!
require CGI module, install it from your distribution repo.
Set user_run_as=webserver in
### Allowed variables:
$user - is for user name
$domain - is for domain
### Options
$inifile - where is user/domain php.ini stored. If no php.ini file exist,
it will be created on first user access to /CMD_PLUGINS/phpini
For per-domain php.ini in "apache" mode $inifile looks like this:
$inifile = "/var/www/.php/".$domain.".php.ini";
For per-user php.ini in "fpm" mode $inifile looks like this:
$inifile = "/var/www/.php/".$user.".php.ini";
$phplim - where is limits file stored. Can be per-domain, per-user & server-wide
$user.limits example in /usr/local/directadmin/plugins/phpini/data/user.limits
You can generate per-user / per-domain .limits file using DirectAdmin custom items
and custom user_create_post.sh & user_modify_post.sh
$phpmode - apache or fpm. For LiteSpeed Enterprise use "apache". OpenLiteSpeed is not supported.
CGI/FastCGI is not supported (who use CGI in 2020?)
### php.ini files
2 files located in phpini/data/. See phpini/README for file format & option settings
------------------------
.ini template formatting
------------------------
memory_limit = 32M ; select 16M:32M:64M:128M:256M
memory_limit - parameter
32M - value
; - divider
select - user interface element (dropdown menu)
16M:32M:64M:128M:256M - parameters for element (divided by colon)
[% user %] - substituted by username (login), used for "path" element
[% domain %] - substituted by domain, used for "path" element
------------------
Interface elements
------------------
text default - text field
hidden default - hidden string, user cant' see it and cant' change it
path userdir - path for logfiles, session files etc, relative to user home directory (/home/$user/)
path system - system wide path from /
checkbox - group of checkboxes, followed by elements belonging to group
select - dropdown menu, folllowed by elements belonging to menu
-----------
Translation
-----------
Translation files located in data/lang
Just copy file en.txt as you language code .txt (pl.txt, for Polska, de.txt for Deutsch)
and edit it as you want on accordance with your language, every enrty in a single line.
Every settings from php.ini must contain its own string in UPPERCASE format in translation file.
Also you can insert basic HTML (links, tags, styles) elements into strings.
Feel free to create as many entries as you want.