I've installed Drupal and have it working with PHP and MySQL, but I want to change the default from /drupal to /photo. I've renamed sites/default to sites/photo and changed the base URL setting in sites/photo/settings.php, but that didn't work. I've rebooted the server, but can't get /photo to come.
What am I missing?

Comments

jfall’s picture

not exactly sure what your goal is here, but I'll take a stab...

  1. don't change the name of the default folder - this is the default location for stuff that can't be found in site-specific folders. Put that back.
  2. if this is a single-site install, put your site-specific "stuff" in /sites/all/...
  3. the "stuff" for your specific site is a theme and some contrib modules.
  4. Always put contrib modules in /sites/all/modules
  5. if you are using a contrib or custom theme, named say "whit-theme", put files for your theme (templates, custom code, css, etc.) in sites/all/themes/whit-theme

All this and more is in the getting started handbooks for Drupal. I'd suggest reading the Drupal Cookbook for beginners (http://drupal.org/handbook/customization/tutorials/beginners-cookbook).

Beyond that, if you can more clearly state what you are trying to achieve, I'm sure you'll get lots of help.

jfall’s picture

I think I just got it...
You want your drupal site to reside at: www.example.com/photo
It currently resides at: www.example.com/drupal

There are a number of ways to achieve this (url re-write among them), but the simplest way it to simply install drupal in a folder named "photo" under your public_html directory (i.e., re-name the drupal folder with the install to be "photo")

It seems like you just want to run part of your site using Drupal (I'm guessing to set up a photo gallery on an otherwise static site) - I have not tried it, but don't see any problem doing so - you will probably need to customize the Drupal front-page, perhaps even replace it with a View, as out of the box, Drupal assumes it will run the whole site, and thus provides a stock "front-page" for the site.

good luck.

cwhitmore’s picture

You are correct. I would like to run my drupal site from www.example.com/photo instead of the default directory, but I've already installed it. Is there an easy way to move it after it's been installed? (I'm running on FreeBSD which is new to me).
If I need to reinstall what is command I need to run a clean install?

thanks.

jfall’s picture

see http://drupal.org/node/3366

if you haven't done much development yet, the process is very simple.