Nützliche Infos zu PHP, eigenen Einstellungen mittels .user.ini und Beispiel PHP.INI Dateien

Nützliche Infos zu PHP, eigenen Einstellungen mittels .user.ini und Beispiel-PHP.INI Dateien
 

EDIS stellt nach Erscheinen die aktuellsten PHP Versionen entsprechend Ihres Produkts als suPHP bzw. FCGI-Binary zur Verfügung.

Dabei haben Sie die Möglichkeit selbst die Einstellungen von PHP für Ihren Webserver zu modifizieren bzw. zu setzen. 
 
Achtung! Wenn Sei eine eigene PHP.INI Datei verwenden, überschreibt diese die von EDIS konfigurierten Einstellungen und Sie verlieren möglicherweise Funktionalitäten und performance durch fehlendes Caching! 
Um dies zu verhindern, verwenden Sie bitte die von EDIS gemäß Ihrer konfigurierten PHP-Version zur Verfügung gestellten PHP.INI Dateien als Basis für Ihre Konfiguration und passen Sie die benötigten Werte an oder fügen Sie nicht vorhandene Werte hinzu.
Besser ist die Verwendung einer .user.ini Datei  (bitte den Punkt vor .user.ini nicht vergessen), welche keine von EDIS konfigurierten Optionen löscht, sondern als Zusatz zur bereits konfigurierten PHP.INI zu sehen ist (.user.ini Einstellungen werden "merged" mit der konfigurierten PHP.INI).
 
Wenn Sie sich über SSH auf Ihren Webhost verbinden, befinden Sie sich in einer "chroot"-Umgebung und Sie haben die Möglichkeit an der shell PHP-CLI-binaries zu verwenden. 
 

PHP CLI binaries gemäß Ihrer konfigurierten PHP-Version finden Sie unter 

 

PHP 7.1

/usr/local/bin/edis-php-cli-71-stable-openssl
/usr/local/bin/edis-php-cli-71-stable-nognutls
die dabei konfigurierte php.ini ist /etc/php7.1_fcgi/cgi/php.ini
 

PHP 7.0

/usr/local/bin/edis-php-cli-70-stable-openssl
/usr/local/bin/edis-php-cli-70-stable-nognutls
die dabei konfigurierte php.ini ist /etc/php7.0_fcgi/cgi/php.ini 
 
Wir empfehlen die Verwendung von PHP 7.1 oder 7.0
Bitte beachten Sie hierzu bitte auch 
http://php.net/supported-versions.php  bzw. 
http://talks.php.net/vienna17#/smemwp


PHP 5.6

/usr/local/bin/edis-php-cli-56-stable-openssl
/usr/local/bin/edis-php-cli-56-stable-nognutls
die dabei konfigurierte php.ini ist /etc/php5.6_fcgi/cgi/php.ini
 

PHP 5.5

/usr/local/bin/edis-php-cli-55-stable-openssl
/usr/local/bin/edis-php-cli-55-stable-nognutls
Configuration Path: /etc/php5.5_suphp/cgi/php.ini
die dabei konfigurierte php.ini ist /etc/php5.5_suphp/cgi/php.ini

 
PHP.INI aus /etc/php7.0_fcgi/cgi/php.ini
 
[PHP]
engine = On
short_open_tag = On
date.timezone = Europe/Berlin
asp_tags = Off
precision    =  12
y2k_compliance = On
output_buffering = Off
zlib.output_compression = Off
implicit_flush = Off
unserialize_callback_func=
serialize_precision = 100
disable_functions = mmcache
disable_classes =
expose_php = On
error_reporting  =  E_ALL & ~E_NOTICE & ~E_WARNING
display_errors = On
display_startup_errors = Off
log_errors = Off
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
variables_order = "EGPCS"
register_argc_argv = On
post_max_size = 20M
gpc_order = "GPC"
auto_prepend_file =
auto_append_file =
default_mimetype = "text/html"
include_path = ".:/usr/share/php"
doc_root =
user_dir =
extension_dir = "/usr/lib/php5/20151012"
enable_dl = On
cgi.fix_pathinfo=1
file_uploads = On
upload_max_filesize = 20M
allow_url_fopen = on
default_socket_timeout = 60
[mail function]
SMTP = localhost
sendmail_from = me@localhost.com
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.allow_persistent = Off
mysql.max_persistent = -1
mysql.max_links = -1
mysql.default_port =
mysql.default_socket = /var/run/mysqld/mysqld.sock
mysql.default_host = 
mysql.default_user =
mysql.default_password =
mysql.connect_timeout = 60
mysql.trace_mode = Off
[mSQL]
msql.allow_persistent = On
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_persistent = -1
sybct.max_links = -1
sybct.min_server_severity = 10
sybct.min_client_severity = 10
[dbx]
dbx.colnames_case = "unchanged"
[bcmath]
bcmath.scale = 0
[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 = /stmp
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     = 100
session.gc_maxlifetime = 7200 
session.referer_check =
session.entropy_length = 0
session.entropy_file =
session.cache_limiter = nocache
session.cache_expire = 180
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
[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]

[ioncube]
zend_extension = /usr/local/ioncube/ioncube_loader_lin_7.0.so
[opcache]
zend_extension = /usr/lib/php5/20151012/opcache.so
opcache.enable=1
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.enable_cli=1
 
 
 
 
 
PHP.INI aus /etc/php7.1_fcgi/cgi/php.ini
 
[PHP]
engine = On
short_open_tag = On
date.timezone = Europe/Berlin
asp_tags = Off
precision    =  12
y2k_compliance = On
output_buffering = Off
zlib.output_compression = Off
implicit_flush = Off
unserialize_callback_func=
serialize_precision = 100
disable_functions = mmcache
disable_classes =
expose_php = On
error_reporting  =  E_ALL & ~E_NOTICE & ~E_WARNING
display_errors = On
display_startup_errors = Off
log_errors = Off
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
variables_order = "EGPCS"
register_argc_argv = On
post_max_size = 20M
gpc_order = "GPC"
auto_prepend_file =
auto_append_file =
default_mimetype = "text/html"
include_path = ".:/usr/share/php"
doc_root =
user_dir =
extension_dir = "/usr/lib/php7/20160303"
enable_dl = On
cgi.fix_pathinfo=1
file_uploads = On
upload_max_filesize = 20M
allow_url_fopen = on
default_socket_timeout = 60
[mail function]
SMTP = localhost
sendmail_from = me@localhost.com
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.allow_persistent = Off
mysql.max_persistent = -1
mysql.max_links = -1
mysql.default_port =
mysql.default_socket = /var/run/mysqld/mysqld.sock
mysql.default_host = 
mysql.default_user =
mysql.default_password =
mysql.connect_timeout = 60
mysql.trace_mode = Off
[mSQL]
msql.allow_persistent = On
msql.max_persistent = -1
msql.max_links = -1
[PostgresSQL]
gsql.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_persistent = -1
sybct.max_links = -1
sybct.min_server_severity = 10
sybct.min_client_severity = 10
[dbx]
dbx.colnames_case = "unchanged"
[bcmath]
bcmath.scale = 0
[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 = /stmp
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     = 100
session.gc_maxlifetime = 7200 
session.referer_check =
session.entropy_length = 0
session.entropy_file =
session.cache_limiter = nocache
session.cache_expire = 180
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
[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]
[opcache]
zend_extension = /usr/lib/php7/20160303/opcache.so
opcache.enable=1
opcache.memory_consumption=192
opcache.interned_strings_buffer=16
opcache.max_accelerated_files=8000
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.enable_cli=1

Add Feedback