a Code Farmer

A blogging framework for hacker who farms

LAMP on ARCH

If you are a web developer, you got to have these packages to be deployed on your ARCH. Those who use Windows, just keep playing CIVILIZATION V, no bothers.

Here is how

Installing part

Console
1
2
3
# update all packages
pacman -Syu;
pacman -S apache php php-apache mariadb

Configuring part

Console
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
vi /etc/httpd/conf/httpd.conf
# append following entries
LoadModule php5_module modules/libphp5.so
AddHandler php5-script php
Include conf/extra/php5_module.conf

vi /etc/php/php.ini
# uncomment this line
extension=mysqli.so

# setup mariadb, this is a interactive command, just follow the instruction
sudo mysql_secure_installation

# enable httpd at start-up
sudo systemctl enable httpd && systemctl restart httpd

and we are done here.

Comments