Get your terminal ready…
Install necessary packages
# pacman -S --noconfirm apache # pacman -S --noconfirm mysql
Set DocumentRoot in /etc/http/conf/httpd.conf
Afterwards continue install PHP stuff…
# pacman -S --noconfirm php-apache # pacman -S --noconfirm php # pacman -S --noconfirm php-gd
Uncomment some extensions (modules) in /etc/php/php.ini
extension=gd.so extension=iconv.so extension=mysql.so extension=openssl.so extension=pdo_mysql.so extension=soap.so
Now it’s time to configure your Virtual Hosts in /etc/httpd/conf/extra/httpd-vhosts.conf
When all is done, check your configuration and make Apache en MySQL startup automatically from now on
# apachectl configtest # systemctl enable httpd # systemctl enable mysql
Done! Happy webserving!