Tag Archives: Ubuntu

Making public_html Work in Ubuntu 8.04 with Apache2

Ever wanted each user on your server to have their own web directory? I wanted users on my server to have access to the public_html directory in their home directory so that they could display content at http://www.mydomain.com/~USERNAME. How do you do this?

  1. Edit /etc/apache2/apache2.conf
  2. Find the section that looks like this:
  3. 1
    2
    3
    4
    5
    6
    7
    8
    
    #UserDir is now a module
    #UserDir public_html
    #UserDir disabled root
     
    #<Directory /home/*/public_html>
    #	AllowOverride FileInfo AuthConfig Limit
    #   Options Indexes SymLinksIfOwnerMatch IncludesNoExec
    #</Directory>
  4. Make it look like this:

    1
    2
    3
    4
    5
    6
    7
    8
    
    #UserDir is now a module
    UserDir public_html
    #UserDir disabled root
     
    <Directory /home/*/public_html>
    	AllowOverride FileInfo AuthConfig Limit
    	Options Indexes SymLinksIfOwnerMatch IncludesNoExec
    </Directory>

  5. Sit back and relish in your own glory knowing that you have just accomplished something done today!

How did I figure this out? Click here.

Ruby Shoes Build Error On Ubuntu

When I tried to compile Ruby Shoes I got the following error:

1
2
3
4
5
6
7
8
CC shoes/app.c
In file included from /usr/include/signal.h:333,
from /usr/include/sys/ucontext.h:23,
from /usr/include/ucontext.h:27,
from /usr/lib/ruby/1.8/i486-linux/node.h:378,
from shoes/app.c:11:
/usr/include/bits/sigcontext.h:28:29: error: asm/sigcontext.h: No such file or directory
make: *** [shoes/app.o] Error 1

The fix is this:

1
2
cd /usr/include/
sudo ln -s  asm-i386/ asm

Apache Compiler Error

While upgrading Apache on Mac OS X 10.4 I got the following error:

Cannot use an external APR-util with the bundled APR

The solution - Add this to configure options:

--with-included-apr

This issue is also addressed at the Apache Site