Posted in apache, arch, arch linux, html, Linux

Apache and public_html directories

I’ve been hacking around with the One Month HTML course and decided to set up a local apache server to play around with my work, but for the life of me I could not get the public_html directory and apache2 userdir setting to work under Arch Linux.

For those of you that have had similar issues it turns out to be a simple fix:

The world execute bit on your home directory needs to be set so that /home/<user> is set to rwxr-x–x and also the same for your public_html directory, i.e. it also needs to be set to rwxr-x–x.

Et voila, html goodness on your own server, now you can test away until you’re ready to put your site into production!!

Posted in alsa, arch, arch linux, mpd, sound

MPD and Alsa

So after upgrdaing to Arch Linux (an event in itself), I had issues with MPD not being able to talk to the soundcard. In the mpd log I was seeing errors like “Failed to open device HW:0,0” or “Failed to open [Alsa] device”. Now after a couple of days of scratching around I suddenly had a light bulb moment, “was the mpd user in the audio group???” I checked and it wasn’t, so a quick “sudo vigr” and hey presto I had sound working again.
What threw me during the diagnosis of this, was that running ‘speaker-test -c2‘ from the command line was producing sound so it led me to believe it had to be localised to mpd.

Anyway, that’s another problem solved!!

Now I can get back to working on a post on how to configure the Awesome Window manager.