Installation von Apache2 und PHP unter Linux Debian/Ubuntu

Es gibt mehrere Varianten, um unter Linux Debian (bzw. auch Ubuntu und auch unter anderen Linuxen) den Apache Webserver und PHP zu installieren. Ich stelle hier diese Varianten zusammen.[ad name=“HTML“]

Grundvariante

Die bei https://www.howtoforge.de/anleitung/apache2-mit-php5-und-mysql-unterstutzung-unter-debian-squeeze-installieren-lamp/ gegebene Anleitung setzt sich zusammen aus:

MySQL

apt-get install mysql-server mysql-client

Apache2

apt-get install apache2

PHP5

apt-get install php5 libapache2-mod-php5

MySQL Unterstützung in PHP5 einrichten und weitere PHP-Zusätze

apt-get install php5-mysql php5-curl php5-gd
 php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache
 php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite
 php5-tidy php5-xmlrpc php5-xsl

phpMyAdmin

apt-get install phpmyadmin

Froxlor  – Konfigurationsangebote

Froxlor bietet unter Server >> Konfiguration mehrere Möglichkeiten an, insbesondere

  • FCGID (alternative to mod_php)
  • PHP-FPM (alternative to mod_php)

FCGID (alternative to mod_php)

apt-get install apache2-suexec libapache2-mod-fcgid php5-cgi
a2enmod suexec fcgid
php /var/www/froxlor/scripts/froxlor_master_cronjob.php --force

Die letzte Zeile bezieht sich allerdings explizit auf Froxlor.

PHP-FPM (alternative to mod_php)

# add "non-free" after all occurances of "main" in /etc/apt/sources.list
# this is needed for libapache2-mod-fastcgi to install
apt-get install apache2-suexec libapache2-mod-fastcgi
apt-get install php5-fpm
a2enmod suexec fastcgi actions
php /var/www/froxlor/scripts/froxlor_master_cronjob.php --force

[ad name=“HTML“]