PhpPaket: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 37: | Zeile 37: | ||
max_input_time = 600 | max_input_time = 600 | ||
default_socket_timeout = 600 | default_socket_timeout = 600 | ||
[Session] | |||
#session.save_handler = files | |||
session.save_handler = redis | |||
session.save_path = "tcp://127.0.0.1:6379" | |||
</pre> | </pre> | ||
Version vom 28. Mai 2022, 06:56 Uhr
Links
Installation
VERSION=7.4 apt install php${VERSION}-cli php${VERSION}-common php${VERSION}-curl php${VERSION}-fpm php${VERSION}-gd php${VERSION}-igbinary \ php${VERSION}-imagick php${VERSION}-imap php${VERSION}-intl php${VERSION}-mbstring \ php${VERSION}-memcache php${VERSION}-memcached php${VERSION}-msgpack php${VERSION}-mysql \ php${VERSION}-opcache php${VERSION}-readline php${VERSION}-redis php${VERSION}-xdebug \ php${VERSION}-xml php${VERSION}-zip php${VERSION}-json
add-apt-repository ppa:ondrej/php apt-get install php5.6-cli php5.6-common php5.6-curl php5.6-fpm php5.6-gd php5.6-imap \ php5.6-intl php5.6-json php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-opcache \ php5.6-readline php5.6-sqlite3 php5.6-xml php5.6-zip
- Ersatz von php7.3-mcrypt: [stackoverflow]
Error-Logging
- php.ini:
- error_log = /var/log/php/php.log
- log_errors = on
- im Programm:
- error_reporting(E_ALL);
- error_log("=== start");
Wichtige Konfiguration in php.ini
memory_limit = 2048M upload_max_filesize = 512M max_file_uploads = 100 post_max_size = 512M max_execution_time = 600 max_input_time = 600 default_socket_timeout = 600 [Session] #session.save_handler = files session.save_handler = redis session.save_path = "tcp://127.0.0.1:6379"
- in NGINX:
- fastcgi_read_timeout 3600s;
Konfiguration ausgeben
php -i