This is for a dev environment. Let’s start by installing apache
pacman -S apache
Now install PHP
pacman -S php php-apache php-mcrypt
Installing MySQL (MariaDB)
pacman -S mariadb
This is for a dev environment. Let’s start by installing apache
pacman -S apache
Now install PHP
pacman -S php php-apache php-mcrypt
Installing MySQL (MariaDB)
pacman -S mariadb
Add to the .htaccess (make sure the vhost can read htaccess files)
# Avoid listing files, enable multiviews
Options -Indexes -MultiViews
# Enable RewriteEngine
RewriteEngine On
# Don’t rewrite directory names
RewriteCond %{REQUEST_FILENAME} !-d
# Don’t rewrite file names
RewriteCond %{REQUEST_FILENAME} !-f
# Remove .php extension
RewriteRule ^([^\.]+)$ $1.php [NC,L]