Zum Inhalt springen

Konfiguration bessere Performance

Aus Computech CMS Wiki

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