MRatWork Forum by Mustafa Ramadhan
Sawo Project - Kloxo-MR Discussions => Kloxo-MR Development => Topic started by: zjsz007 on 2016-07-04, 16:37:18
-
Which php.ini used for new domain in MR7 ?
/opt/php54s/custom/php.ini ?
-
Php branch (also php selected in 'php used') using '/opt/php/custom/php.ini' (but php-fpm using '/opt/php/custom/php-fpm.ini').
For php54m (example; for selected in 'php selected' in 'web features') using '/opt/php54m/custom/php.ini' (but php-fpm using '/opt/php54m/custom/php-fpm.ini').
Don't touch this ini files directly but touch their custom.php.ini.tpl.
-
I think you set a wrong php.ini for custom
... Wait until finished (restart services) ...
[root@demo tmp]# sh /script/sysinfo
A. Control Panel:
- Kloxo-MR: 7.0.0.b-2016070304
- Web: hiawatha-10.3.0-f.1.mr.el6.x86_64
- PHP: php54s-5.4.45-1.ius.el6 (fpm mode)
B. Plateform:
- OS: CentOS release 6.8 (Final) x86_64
- Hostname: demo.vpscool.com
C. Services:
1. MySQL: MariaDB-server-10.0.26-1.el6.x86_64
2. PHP:
- Installed:
- Branch: php54-cli-5.4.45-1.ius.el6.x86_64
- Used: --PHP Branch--
- Multiple: disable
3. Web Used: apache
- Hiawatha: hiawatha-10.3.0-f.1.mr.el6.x86_64
- Lighttpd: lighttpd-1.4.39-3.el6.x86_64
- Nginx: nginx-1.11.2-1.el6.ngx.x86_64
- Apache: httpd-2.2.31-1.mr.el6.x86_64
- PHP Type: php-fpm_event (default)
- Secondary PHP: off
4. WebCache: none
- ATS: --uninstalled--
- Squid: --uninstalled--
- Varnish: --uninstalled--
5. Dns: bind
- Bind: bind-9.9.7-1.mr.el6.x86_64
- DJBDns: --uninstalled--
- NSD: --uninstalled--
- PowerDNS: --uninstalled--
- Yadifa: --uninstalled--
6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
- pop3/imap4: package courier-toaster is not installed
- smtp: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
- spam: bogofilter-1.2.4-1.el6.x86_64
D. Memory:
total used free shared buffers cached
Mem: 2048 1796 251 6 0 1411
-/+ buffers/cache: 384 1663
Swap: 512 2 509
E. Disk Space:
Filesystem Size Used Avail Use% Mounted on
/dev/simfs 60G 1.9G 59G 4% /
*** Process Time: 00:00:00:08.8381 (dd:hh:mm:ss:xxxxxx) ***
* Note: run 'sh /script/sysinfo -y' if you want run 'fix-service-list' also
(importance after Kloxo-MR update)
[root@demo tmp]# cat /opt/php54s/custom/php.ini
;;; begin content - please not remove this line
[PHP]
;### MR -- generic (the same on all php 5.x version)
engine = On
short_open_tag = On
asp_tags = Off
precision = 14
y2k_compliance = On
unserialize_callback_func=
allow_call_time_pass_reference = Off
;safe_mode_gid = Off
;safe_mode_include_dir =
;safe_mode_exec_dir =
;safe_mode_allowed_env_vars = PHP_
;safe_mode_protected_env_vars = LD_LIBRARY_PATH
disable_classes =
expose_php = On
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
;error_reporting = E_ALL
display_startup_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
report_memleaks = On
track_errors = Off
variables_order = "EGPCS"
gpc_order = "GPC"
include_path = ".:/usr/share/pear/"
doc_root =
user_dir =
extension_dir = /opt/php54s/usr/lib/php/modules
upload_tmp_dir = /tmp/
default_socket_timeout = 60
date.timezone = "Europe/London"
default_charset = "utf-8"
;### MR -- certain apps not work if 0 (ex: roundcube)
cgi.fix_pathinfo = 1
;### MR -- certain apps not work if 1 (ex: wordpress in apache or proxy)
cgi.rfc2616_headers = 0
;### MR -- custom setting (handle by kloxo)
;disable_functions = exec,passthru,shell_exec,system,proc_open,popen,show_source
;register_globals = off
display_errors = off
file_uploads = on
;upload_max_filesize = 32M
upload_max_filesize = 2000M
log_errors = off
error_log = /var/log/php-error.log
output_buffering = off
register_argc_argv = on
;magic_quotes_gpc = off
;magic_quotes_runtime = off
;magic_quotes_sybase = off
mysql.allow_persistent = off
;max_execution_time = 180
;max_input_time = 180
;memory_limit = 128M
;post_max_size = 64M
max_execution_time = 3000000
max_input_time = 60000
memory_limit = -1
post_max_size = 2000M
allow_url_fopen = on
allow_url_include = on
session.save_path = /usr/local/lxlabs/kloxo/session
cgi.force_redirect = on
;sendmail_from =
;safe_mode = off
enable_dl = on
[Syslog]
define_syslog_variables = Off
[mail function]
SMTP = localhost
smtp_port = 25
sendmail_path = /usr/sbin/sendmail -t -i
[Java]
[SQL]
sql.safe_mode = Off
[ODBC]
odbc.allow_persistent = On
odbc.check_persistent = On
odbc.max_persistent = -1
odbc.max_links = -1
odbc.defaultlrl = 4096
odbc.defaultbinmode = 1
[MySQL]
mysql.default_port =
mysql.default_socket =
mysql.default_host =
mysql.default_user =
mysql.default_password =
mysql.connect_timeout = 60
mysql.trace_mode = Off
[mSQL]
msql.max_persistent = -1
msql.max_links = -1
[PostgresSQL]
pgsql.allow_persistent = On
pgsql.auto_reset_persistent = Off
pgsql.max_persistent = -1
pgsql.max_links = -1
pgsql.ignore_notice = 0
pgsql.log_notice = 0
[Sybase]
sybase.allow_persistent = On
sybase.max_persistent = -1
sybase.max_links = -1
sybase.min_error_severity = 10
sybase.min_message_severity = 10
sybase.compatability_mode = Off
[Sybase-CT]
sybct.allow_persistent = On
sybct.max_links = -1
sybct.min_server_severity = 10
sybct.min_client_severity = 10
[dbx]
dbx.colnames_case = "lowercase"
[bcmath]
bcmath.scale = 0
[browscap]
;browscap = extra/browscap.ini
[Informix]
ifx.default_host =
ifx.default_user =
ifx.default_password =
ifx.allow_persistent = On
ifx.max_persistent = -1
ifx.max_links = -1
ifx.textasvarchar = 0
ifx.byteasvarchar = 0
ifx.charasvarchar = 0
ifx.blobinfile = 0
ifx.nullformat = 0
[Session]
session.save_handler = files
session.save_path = /usr/local/lxlabs/kloxo/session
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 1000
session.gc_maxlifetime = 1440
session.bug_compat_42 = 0
session.bug_compat_warn = 1
session.referer_check =
session.entropy_length = 0
session.entropy_file =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
[MSSQL]
mssql.allow_persistent = On
mssql.max_persistent = -1
mssql.max_links = -1
mssql.min_error_severity = 10
mssql.min_message_severity = 10
mssql.compatability_mode = Off
mssql.secure_connection = Off
[Assertion]
[Ingres II]
ingres.allow_persistent = On
ingres.max_persistent = -1
ingres.max_links = -1
ingres.default_database =
ingres.default_user =
ingres.default_password =
[Verisign Payflow Pro]
pfpro.defaulthost = "test-payflow.verisign.com"
pfpro.defaultport = 443
pfpro.defaulttimeout = 30
[Sockets]
sockets.use_system_read = On
[com]
[Printer]
[mbstring]
[FrontBase]
[Crack]
[exif]
;### MR -- exist on php 5.3+
[CLI Server]
cli_server.color = On
[Date]
[filter]
[iconv]
[intl]
[sqlite]
[sqlite3]
[Pcre]
pcre.backtrack_limit=100000
pcre.recursion_limit=100000
[Pdo]
[Pdo_mysql]
pdo_mysql.cache_size = 2000
pdo_mysql.default_socket=
[Phar]
[Interbase]
ibase.allow_persistent = 1
ibase.max_persistent = -1
ibase.max_links = -1
ibase.timestampformat = "%Y-%m-%d %H:%M:%S"
ibase.dateformat = "%Y-%m-%d"
ibase.timeformat = "%H:%M:%S"
[MySQL]
mysql.allow_local_infile = On
mysql.allow_persistent = On
mysql.cache_size = 2000
mysql.max_persistent = -1
mysql.max_links = -1
mysql.default_port =
mysql.default_socket =
mysql.default_host =
mysql.default_user =
mysql.default_password =
mysql.connect_timeout = 60
mysql.trace_mode = Off
[MySQLi]
mysqli.max_persistent = -1
mysqli.allow_persistent = On
mysqli.max_links = -1
mysqli.cache_size = 2000
mysqli.default_port = 3306
mysqli.default_socket =
mysqli.default_host =
mysqli.default_user =
mysqli.default_pw =
mysqli.reconnect = Off
[mysqlnd]
mysqlnd.collect_statistics = On
mysqlnd.collect_memory_statistics = Off
[OCI8]
[Tidy]
tidy.clean_output = Off
[soap]
soap.wsdl_cache_enabled=1
soap.wsdl_cache_dir="/tmp"
soap.wsdl_cache_ttl=86400
soap.wsdl_cache_limit = 5
[sysvshm]
[ldap]
ldap.max_links = -1
[mcrypt]
[dba]
;;; end content - please not remove this line
-
1. Activate 'enable secondary php' in 'webserver configure'
2. Install 'multiple php' in 'webserver configure'
3. Select 'php54m' instead 'php branch' in 'webserver configure'
-
So you have set
max_execution_time = 3000000
max_input_time = 60000
memory_limit = -1
post_max_size = 2000M
in new version for all of the Domain Name ?
I think it was not very good setting.
-
Look like trouble if select 'php branch' for 'php used' in 'webserver configure'. So, select other like php54m.
-
It was a new fresh install.
Every time after install kloxo-mr7,It shows Used: --PHP Branch--
It was not my select,It was default of fresh install.
-
It was a new fresh install.
Every time after install kloxo-mr7,It shows Used: --PHP Branch--
It was not my select,It was default of fresh install.
Yes. Look like it's php bug related to handle 'env'.
-
Every time add a new Domain Name ,the php.ini for website Loaded Configuration File /opt/php54s/custom/php.ini
after running service php-fpm restart the php.ini for website Loaded Configuration File /etc/php.ini
which setting cause ?
-
Again, use 'php54m' instead 'php branch' in 'php used'. Better update Kloxo-MR 7.0 to latest upload.
It's php bug!.