PhpPaket

Aus Info-Theke
Zur Navigation springen Zur Suche springen


Links

Installation

add-apt-repository ppa:ondrej/php
apt-get install nginx php-fpm php-cli php-json php-curl php-imap php-gd php-mysql php-xml \
   php-zip php-intl php-mcrypt php-imagick php-mbstring 
apt-get install php-memcached memcached php-xdebug

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 
# oder 
apt-get install php7.0-cli php7.0-common php7.0-curl php7.0-fpm php7.0-gd php7.0-imap \
   php7.0-intl php7.0-json php7.0-mbstring php7.0-mcrypt php7.0-mysql php7.0-opcache \
   php7.0-readline php7.0-sqlite3 php7.0-xml php7.0-zip 
# oder
apt-get install php7.1-cli php7.1-common php7.1-curl php7.1-fpm php7.1-gd php7.1-imap \
   php7.1-intl php7.1-json php7.1-mbstring php7.1-mcrypt php7.1-mysql php7.1-opcache \
   php7.1-readline php7.1-sqlite3 php7.1-xml php7.1-zip 
# oder
apt-get install php7.2-cli php7.2-common php7.2-curl php7.2-fpm php7.2-gd php7.2-imap \
   php7.2-intl php7.2-json php7.2-mbstring php7.2-mcrypt php7.2-mysql php7.2-opcache \
   php7.2-readline php7.2-sqlite3 php7.2-xml php7.2-zip
# oder
apt-get install php7.2-cli php7.2-common php7.2-curl php7.2-fpm php7.3-gd php7.3-imap \
   php7.3-intl php7.3-json php7.3-mbstring php7.3-mysql php7.3-opcache \
   php7.3-readline php7.3-sqlite3 php7.3-xml php7.3-zip
# php7.3-mcrypt ist nicht mehr unterstützt!

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
  • in NGINX:
    • fastcgi_read_timeout 3600s;

Konfiguration ausgeben

php -i