PhpPaket: Unterschied zwischen den Versionen

Aus Info-Theke
Zur Navigation springen Zur Suche springen
Zeile 6: Zeile 6:


== Installation ==
== Installation ==
<pre>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
</pre>
<pre>add-apt-repository ppa:ondrej/php
<pre>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 \
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-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  
   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!
</pre>
</pre>
* Ersatz von php7.3-mcrypt: [[https://stackoverflow.com/questions/48275494/issue-in-installing-php7-2-mcrypt stackoverflow]]
* Ersatz von php7.3-mcrypt: [[https://stackoverflow.com/questions/48275494/issue-in-installing-php7-2-mcrypt stackoverflow]]

Version vom 28. Mai 2022, 06:41 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 

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