PhpPaket
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
- in NGINX:
- fastcgi_read_timeout 3600s;
Konfiguration ausgeben
php -i