redhat:web-server-redhat:php-redhat

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
redhat:web-server-redhat:php-redhat [2017/09/15 12:23] – [PHP Installation auf CentOS 7] michaelredhat:web-server-redhat:php-redhat [2017/12/06 11:10] (current) – [Konfiguration von PHP 7.0] michael
Line 5: Line 5:
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
-''**Warum wir für Apache 2.4 <wrap em>nicht</wrap> mod_php brauchen ...**''+==== Warum NICHT mod_php .. ==== 
  
   * ''The **mod_php** approach is the **slowest possible way** to serve php content in Apache httpd; it also is the least efficient, using the most memory''   * ''The **mod_php** approach is the **slowest possible way** to serve php content in Apache httpd; it also is the least efficient, using the most memory''
Line 12: Line 13:
 ---- ----
  
-''**Warum php-fpm?**''+==== Warum php-fpm? ====
  
   * ''All 4 collections (rh-php70, rh-php56, php55, & php54) include the separate php-fpm service which can serve PHP content back to Apache httpd''   * ''All 4 collections (rh-php70, rh-php56, php55, & php54) include the separate php-fpm service which can serve PHP content back to Apache httpd''
Line 54: Line 55:
  
  
-**Weiteres:** +<WRAP center round box 100%> 
-  *  ''**Pfad php-fpm Konfiguration**: "<wrap em>/opt/rh/rh-php70/register.content/etc/opt/rh/rh-php70/php-fpm.d/www.conf</wrap>"'' +''**Nice to know:**'' 
 +  *  ''**SELinux RW Context erstellen**:'' <code># semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/html/tmp(/.*)?"</code> 
 +  *  ''**php-fpm handler Konfigurationsfile**:'' <code>/etc/opt/rh/rh-php70/php-fpm.d/www.conf</code> 
 +</WRAP> 
  
 ---- ----
Line 61: Line 66:
 ===== Konfiguration von PHP 7.0 ===== ===== Konfiguration von PHP 7.0 =====
  
 +
 +<WRAP center box 100%>
 ==== Zusätzliche php-Erweiterungen installieren ==== ==== Zusätzliche php-Erweiterungen installieren ====
  
Line 66: Line 73:
 # yum list rh-php70\* # yum list rh-php70\*
 </code> </code>
 +
 +<sxh bash; gutter: false>
 +
 +
 +</sxh>
 +
 +<code>
 +# yum install ..
 +</code>
 +
 +</WRAP>
 +
  
  
  
 +<WRAP center  box 100%>
 ==== Setzen der korrekten Timezone ==== ==== Setzen der korrekten Timezone ====
  
Line 75: Line 95:
 </code> </code>
  
-<file nsis php.ini+<sxh bash;
-line 878: uncomment and add your timezone +.. 
-date.timezone = "Europe/Zuerich+line 878: uncomment and add your timezone 
-</file>+date.timezone = "Europe/Zurich" 
 +.. 
 +</sxh>
  
-==== Erhöhen des PHP upload limite ====+''<wrap em>ODER Automatisiert setzen:</wrap>'' <code># sed -e 's/;date.timezone =/date.timezone "Europe\/Zurich"/' -i /etc/opt/rh/rh-php70/php.ini</code>
  
 +</WRAP>
  
 +<WRAP center box 100%>
 +==== Erhöhen des PHP upload limite ====
  
 +<code># sed -e 's/max_execution_time = 30/max_execution_time = 7200/' -i /etc/opt/rh/rh-php56/php.ini
 +# sed -e 's/max_input_time = 60/max_input_time = 7200/' -i /etc/opt/rh/rh-php70/php.ini
 +# sed -e 's/memory_limit = 128M/memory_limit = 5000M/' -i /etc/opt/rh/rh-php70/php.ini
 +# sed -e 's/post_max_size = 8M/post_max_size = 5000M/' -i /etc/opt/rh/rh-php70/php.ini
 +# sed -e 's/upload_max_filesize = 2M/upload_max_filesize = 5000M/' -i /etc/opt/rh/rh-php70/php.ini
 +</code>
  
 +</WRAP>
  
  
----- 
  
-===== Weiterfolgende Installationen ===== 
  
-==== Installation von Mariadb ==== 
  
 +----
  
 +===== Weiterfolgende Installationen =====
  
-==== Installation von phpMyAdmin ==== +  * ''[[redhat:database-redhat:start|Datenbanken unter Redhat / CentOS]]'' 
-Unter folgendem Link, wird alles wichtige dazu beschrieben+  * ''[[redhat:database-redhat:phpmyadmin-redhat|Einrichten von phpMyAdmin unter Redhat / CentOS 7]]''
-  * [[redhat:database-redhat:phpmyadmin-redhat|Einrichten von phpMyAdmin unter Redhat / CentOS 7]]+
  • redhat/web-server-redhat/php-redhat.1505470980.txt.gz
  • Last modified: 2017/09/15 12:23
  • by michael