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!!

Author:

I am and have been an Oracle dba for the past twenty something years, with a few deviations to dabble in other areas. I’m certified (or is that certifiable) in both Oracle 10 and 11G OCP. I’m an “old skool” hacker at heart in the traditional sense, pulling apart bits of kit to see how they work, mainly with the intention of fixing it, mostly with the outcome of breaking it! I like toying with hardware, software and new technologies and love Linux, although Windows 10 is looking pretty slick too. I have a keen interest in reading / writing and electronics, and occasionally snap a few photos. If I can help you I will, so if you have any questions feel free to ask by using my contact form. -Lee And now for the disclaimer: Anything I write here is my own opinion and does not represent the view of any company I work for now or have worked for in the past.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.