Table of Contents

PHP

PHP is a popular general-purpose scripting language that is especially suited to web development.

Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world.

Package

pacman -S php php-fpm php-gd

Configuration

cp /etc/php/php.ini /etc/php/php.ini.original
nano /etc/php/php.ini
date.timezone = YOURlocation
open_basedir = /srv/http/:/tmp/:/var/tmp/:/var/cache/:/usr/share/pear/:/usr/share/webapps/:/etc/webapps/
expose_php = Off
extension=pdo_mysql
extension=mysqli
extension=gd
extension=iconv

Start

systemctl enable --now php-fpm.service