The Ultimate Weblog System

Welcome to Geeklog
Tuesday, February 09 2010 @ 06:24 PM EST

Installing Geeklog entirely within the web root

As explained in the installation instructions, parts of Geeklog (everything outside of the public_html directory) should be installed such that they are not accessible from a URL (for security reasons). However, some hosting services (typically free or cheap services) won't let you install files outside of the webroot.

In that case, you can still install Geeklog if there is a way to password-protect a directory on your site (usually done through .htaccess and htpasswd files, although some hosting services offer web frontends for those).

Here's what you should do:

  1. Upload everything that's in Geeklog's public_html directory onto your site.

  2. At the top level, create a new directory (try choosing a not-too-obvious name, i.e. don't just name it "geeklog" ...).

  3. Into that directory, copy all the other files and directories that came in the Geeklog tarball.

  4. Password-protect that directory!

  5. Edit your config.php as per the installation instructions.

  6. Make sure that $_CONF['path_html'] points to your webroot, i.e. the directory where you copied the contents of public_html. Use the full path instead of specifying the path relative to $_CONF['path'], i.e. the line should look like
    $_CONF['path_html'] = '/path/to/your/webroot/';

  7. Also make sure that $_CONF['path'] points to the directory you created above, i.e. to the directory that contains the config.php file.
  8. Proceed with the installation as per the instructions.


If you can not password-protect the directory, you could still install and run Geeklog, but it wouldn't be a very secure installation. You may be better off using another hosting service ...

FAQ Manager » Installation » Installing Geeklog entirely within the web root