Setting up a LAMP for local development on Arch Linux

Just installed Arch Linux (after leaving Ubuntu due to Unity/GNOME 3). Now I need to setup my development environment. This should work for most distros, not just Arch. I want Apache, MySQL, PHP, phpMyAdmin, and SSL. Because its easy and I’m lazy, we’re going to setting up XAMPP. As always, first reference the wiki (Xampp – ArchWiki).

Obviously you can just keep adding lines for whatever you want. Learn more here.

10) Start up xampp

# sudo /opt/lampp/lampp start

11) Go to https://wp.localhost/ and check out your site!

You might notice that if you try and browse directories with index files (idex.html, index.php, ect) then you get an error, not the familiar directory listing. If you want to change that, open up httpd.conf and add

<Directory "/var/www">
Options Indexes FollowSymLinks ExecCGI Includes
AllowOverride All
Order allow,deny
Allow from all
</Directory>