A code is worth a thousand words

Install web server (Apache, PHP, MariaDB) on Arch Linux

You are here

This tutorial shows how to set up Apache, PHP and MariaDB (drop-in replacement for MySQL). You can use pacman instead of yaourt on installing the server, since yaourt doesn't come with Arch in default. Although I suggest yaourt, it includes packages from user repository. I have found every single piece of software that I need from there(xmind, drush, netbeans), also it will keep them up to date.

Apache

Open up your terminal and install Apache by these commands.

Source code viewer

# Log in as root.

su -

# Run update and upgrade.

yaourt -Syua

# Install apache.

yaourt -S apache

Programming Language: Bash

Uncomment and change ServerName. After you have restarted httpd then you can create an index.html and write something in it to test if it works on localhost.