Zum Inhalt springen

Konfiguration bessere Performance: Unterschied zwischen den Versionen

Aus Computech CMS Wiki
Keine Bearbeitungszusammenfassung
Zeile 7: Zeile 7:


=PHP.ini=
=PHP.ini=
;Computech *******************************************************************
<syntaxhighlight line='line' lang="bash">
;https://queirozf.com/entries/installing-xhprof-php-profiler-on-ubuntu
;Computech *******************************************************************
;sudo pecl install -f xhprof
;https://queirozf.com/entries/installing-xhprof-php-profiler-on-ubuntu
;extension=xhprof.so
;sudo pecl install -f xhprof
;extension=xhprof.so


; Upload Progressbar
; Upload Progressbar
;extension=uploadprogress
;extension=uploadprogress
uploadprogress.get_contents=On
uploadprogress.get_contents=On
uploadprogress.file.filename_template=/tmp/upt_%s.txt
uploadprogress.file.filename_template=/tmp/upt_%s.txt
uploadprogress.file.contents_template=/tmp/upload_contents_%s
uploadprogress.file.contents_template=/tmp/upload_contents_%s


;OPCache
;OPCache
;zend_extension=opcache.so;
;zend_extension=opcache.so;
max_execution_time =60  ;-1
max_execution_time =60  ;-1
default_socket_timeout = 60    ;-1
default_socket_timeout = 60    ;-1
realpath_cache_size=4096K
realpath_cache_size=4096K
realpath_cache_ttl=120
realpath_cache_ttl=120
opcache.enable=1;
opcache.enable=1;
opcache.enable_cli=1;
opcache.enable_cli=1;
opcache.memory_consumption=512;
opcache.memory_consumption=512;
opcache.interned_strings_buffer=64;
opcache.interned_strings_buffer=64;
opcache.max_accelerated_files=10000;
opcache.max_accelerated_files=10000;
;opcache_revalidate_freq = 10
;opcache_revalidate_freq = 10
opcache.fast_shutdown=1;
opcache.fast_shutdown=1;
opcache.revalidate_path=0;
opcache.revalidate_path=0;
opcache.validate_timestamps=1;
opcache.validate_timestamps=1;
opcache.max_file_size=4096;
opcache.max_file_size=4096;
;opcache.file_cache=/var/www/.opcache;
;opcache.file_cache=/var/www/.opcache;
;opcache.file_cache_only=1;
;opcache.file_cache_only=1;
;opcache.save_comments=1;
;opcache.save_comments=1;
opcache.revalidate_freq=2;
opcache.revalidate_freq=2;
opcache.optimization_level=2147467263
opcache.optimization_level=2147467263


opcache.use_cwd=1
opcache.use_cwd=1
opcache.file_cache_fallback=0
opcache.file_cache_fallback=0
opcache.file_update_protection=0
opcache.file_update_protection=0
opcache.consistency_checks=512
opcache.consistency_checks=512


opcache.jit_buffer_size = 256M
opcache.jit_buffer_size = 256M
opcache.jit = 1255
opcache.jit = 1255
opcache.jit => tracing
opcache.jit => tracing


;xDebug
;xDebug
;xdebug.client_enable = true
;xdebug.client_enable = true
;xdebug.start_with_request = yes
;xdebug.start_with_request = yes
;xdebug.remote_log="/var/www/xdebug.log"
;xdebug.remote_log="/var/www/xdebug.log"
;#xdebug.client_host = 10.14.30.28
;#xdebug.client_host = 10.14.30.28
;#zend_extension=/usr/lib/php/20210902/xdebug.so
;#zend_extension=/usr/lib/php/20210902/xdebug.so


; Sendmail
; Sendmail
; Link:                https://www.webhosterwissen.de/know-how/eigener-webserver/tutorial-e-mails-mit-eigenem-server-versenden-per-smtp-ubuntu-18-04/
; Link:                https://www.webhosterwissen.de/know-how/eigener-webserver/tutorial-e-mails-mit-eigenem-server-versenden-per-smtp-ubuntu-18-04/
; Einstellungen:        sudo nano /etc/msmtprc
; Einstellungen:        sudo nano /etc/msmtprc
sendmail_path="/usr/bin/msmtp -t"
sendmail_path="/usr/bin/msmtp -t"
; PHP Allgmein
; PHP Allgmein
file_uploads=On
file_uploads=On
allow_url_fopen=On
allow_url_fopen=On
post_max_size=256M
post_max_size=256M
upload_max_filesize=256M
upload_max_filesize=256M
max_input_vars=1500
max_input_vars=1500
memory_limit=2G
memory_limit=2G
display_errors=on
display_errors=on
log_errors=on
log_errors=on
max_execution_time=300
max_execution_time=300
max_input_time=300
max_input_time=300
cgi.fix_pathinfo=1
cgi.fix_pathinfo=1
display_startup_errors=on
display_startup_errors=on


;ini_set('display_errors', '1');
;ini_set('display_errors', '1');
;extension=brotli.so
;extension=brotli.so


; MySQL
; MySQL
max_input_vars 4000
max_input_vars 4000
</syntaxhighlight>

Version vom 27. Januar 2023, 08:43 Uhr

MySQL

mysql\bin\my.ini oder etc/my.cnf

  [mysqld]
  [...]
  query_cache_size=128M

Apache

PHP.ini

;Computech *******************************************************************
;https://queirozf.com/entries/installing-xhprof-php-profiler-on-ubuntu
;sudo pecl install -f xhprof
;extension=xhprof.so

; Upload Progressbar
;extension=uploadprogress
uploadprogress.get_contents=On
uploadprogress.file.filename_template=/tmp/upt_%s.txt
uploadprogress.file.contents_template=/tmp/upload_contents_%s

;OPCache
;zend_extension=opcache.so;
max_execution_time =60  ;-1
default_socket_timeout = 60     ;-1
realpath_cache_size=4096K
realpath_cache_ttl=120
opcache.enable=1;
opcache.enable_cli=1;
opcache.memory_consumption=512;
opcache.interned_strings_buffer=64;
opcache.max_accelerated_files=10000;
;opcache_revalidate_freq = 10
opcache.fast_shutdown=1;
opcache.revalidate_path=0;
opcache.validate_timestamps=1;
opcache.max_file_size=4096;
;opcache.file_cache=/var/www/.opcache;
;opcache.file_cache_only=1;
;opcache.save_comments=1;
opcache.revalidate_freq=2;
opcache.optimization_level=2147467263

opcache.use_cwd=1
opcache.file_cache_fallback=0
opcache.file_update_protection=0
opcache.consistency_checks=512

opcache.jit_buffer_size = 256M
opcache.jit = 1255
opcache.jit => tracing

;xDebug
;xdebug.client_enable = true
;xdebug.start_with_request = yes
;xdebug.remote_log="/var/www/xdebug.log"
;#xdebug.client_host = 10.14.30.28
;#zend_extension=/usr/lib/php/20210902/xdebug.so

; Sendmail
; Link:                 https://www.webhosterwissen.de/know-how/eigener-webserver/tutorial-e-mails-mit-eigenem-server-versenden-per-smtp-ubuntu-18-04/
; Einstellungen:        sudo nano /etc/msmtprc
sendmail_path="/usr/bin/msmtp -t"
; PHP Allgmein
file_uploads=On
allow_url_fopen=On
post_max_size=256M
upload_max_filesize=256M
max_input_vars=1500
memory_limit=2G
display_errors=on
log_errors=on
max_execution_time=300
max_input_time=300
cgi.fix_pathinfo=1
display_startup_errors=on

;ini_set('display_errors', '1');
;extension=brotli.so

; MySQL
max_input_vars 4000