Apache und PHP: Unterschied zwischen den Versionen

Aus wiki.archlinux.de
K (→‎Weitere Artikel: -> siehe auch)
Zeile 22: Zeile 22:
     # systemctl enable  httpd.service  # beim Systemstart starten
     # systemctl enable  httpd.service  # beim Systemstart starten


== Weitere Artikel ==
== Siehe auch ==
* [[LAMP Installation]] Installation eines LAMP-Systems
* [[LAMP Installation]] Installation eines LAMP-Systems
* [[lighttpd]] – Serverinstallation basierend auf lighttpd
* [[lighttpd]] – Serverinstallation basierend auf lighttpd

Version vom 3. Mai 2013, 08:48 Uhr

Installation

Apache und PHP wird installiert durch:

   # pacman -S apache php php-apache

Konfiguration

In die httpd.conf (liegt in /etc/httpd/conf/) muss die Zeile

   LoadModule php5_module             modules/libphp5.so

eingefügt werden. Desweiteren muss noch die Zeile

   Include conf/extra/php5_module.conf 

zur Konfiguration hinzugefügt werden. Wenn man phpsysinfo nutzen will, muss man die folgenden Zeilen zur httpd.conf hinzufügen :

  php_admin_flag safe_mode Off
  php_admin_value open_basedir none

Da ansonsten nur N/a bei den Infos steht.

Verwalten des Servers

   # systemctl start   httpd.service
   # systemctl stop    httpd.service
   # systemctl restart httpd.service
   # systemctl enable  httpd.service  # beim Systemstart starten

Siehe auch

  • LAMP Installation Installation eines LAMP-Systems
  • lighttpd – Serverinstallation basierend auf lighttpd
  • PHP - PHP selbst (Konfiguration und Module)

Weblinks

http://phpsysinfo.sourceforge.net/ -> Hier kann man sich phpSysInfo herunterladen

http://www.apache.org/ -> Webseite von der Apache Software Foundation