.htaccess: Invalid command ‘Header’

If you’re getting this message on your Apache installation, coupled with a 500 Internal Server Error message, it means you’ve used the Header command in an .htaccess file or in the apache2.conf (or httpd.conf) file without first including the Headers module in your Apache configuration file. Fortunately it’s an easy fix, especially on Ubuntu systems:

Simply run as root:

   ln -s /etc/apache2/mods-available/headers.load /etc/apache2/mods-enabled/

Then restart apache:

   service apache2 restart

Ubuntu – Adding a startup script to be run at bootup

Follow the following easy steps
1. Change dir

   cd /etc/init.d

2. Write the script

   nano yourscript.sh

And paste the following:

   #! /bin/sh

   indexer --config /home/localwww/op/sphinx.conf --all
   searchd --config /home/localwww/op/sphinx.conf

3. Make it executable

    chmod +x yourscript.sh

4. Add to startup

    update-rc.d yourscript.sh defaults