Apache und PHP

Aus wiki.archlinux.de

Installation

Apache ist als apache in extra verfügbar, und kann von dort mittels Pacman installiert werden.

# Apache an sich
pacman -S apache

# PHP und die Apache-Anbindung dafür
pacman -S 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