Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 231959
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:58:36+00:00 2026-05-11T19:58:36+00:00

(Actual site names have been changed) I installed drupal on elephantboarding.com, and it is

  • 0

(Actual site names have been changed)

I installed drupal on elephantboarding.com, and it is under version control.

I svn updated in landonwinters.com/elephantboarding after i svn committed the installation in megafishoil.com.

But landonwinters.com/elephantboarding looks weird, like it doesn’t have the default theme set up right, it’s themeless. It does have a place to log in though, and it says http://www.elephantboarding.com at the top.

I’m assuming it has something to do with the database… but it would sure be cool if I landonwinters.com/elephantboarding was a mirror of megafishoil.com, and if I could make changes to landonwinters.com/elephantboarding without seeing those changes in elephantboarding.com until i svn updated.

Sorry for newbness, and thanks in advance for any help!

Oh, and I do have a local server, although I don’t know how to svn checkout to my own computer…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T19:58:37+00:00Added an answer on May 11, 2026 at 7:58 pm

    Yes, it is possible – I run a drupal site at http://www.blah.net, and a development/testing one at http://dev.blah.net. They both use the same code, checked out of a shared svn repository, and they both use the same database.

    This works fine for me, based on the following conditions:

    The line of your settings.php that defines $base_url needs to be commented out.

    The line that defines $cookie_domain needs to be replaced with a conditional on the server name, to prevent logins from going freaking crazy.:

    if(preg_match('/dev/i', $_SERVER['SERVER_NAME'])) {
        $cookie_domain = 'dev.blah.net';
    } else {
        $cookie_domain = 'www.blah.net';
    }
    

    While this is all fine for me, that is because my paths map exactly the same way (the drupal apps both sit on the root of the domain). I originally had http://www.blah.net/dev, but that broke because paths just don’t work anymore.

    Soo, the solution is to make sure the paths map. Do you possibly have sufficient access to implement an Apache VirtualHost on the site you want to test on? If so then you can add a virtualhost entry like this:

    <VirtualHost dev.blah.net:80>
            ServerName dev.blah.net
            ServerAlias blah.net
    
            DirectoryIndex index.php
    
            #change this to the path to the drupal install
            DocumentRoot /www/htdocs/ 
    
            <Directory "/www/htdocs">
                    ## Allow CGI and Symbolic Links
                    Options +FollowSymLinks +ExecCGI
    
                    # NOTE - The FileInfo override allows rewrites to work in htaccess files
                    AllowOverride All
    
                    Order allow,deny
                    Allow from all
            </Directory>
    
    </VirtualHost>
    

    Another note is that while you can maintain seperate templates and physicall files without any problem, if you change the configuration through the admin panel, those settings are stored in the database, and so will take effect on all installs sharing the database. Blocks are a typical example of this problem, since they are stored on the database.

    Basically you cannot have two different sets of path mappings for drupal (granted, you might be able to do some insane apache rewrites, but that would get very messy). The virtualhost answer is probably the least painful solution, providing you have sufficient access.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.NET MVC 3 web site that uses Windows Authentication running under
I have a select control on my site. I am using page objects to
I have a Heroku e-commerce site I'm building, and have the Piggyback ssl installed
I have my actual site running on one physical server using IIS7 and ASP.NET.
I'm very new to Sharepoint, I have an aspx page on a Sharepoint site
Recently search engines have been able to page dynamic content on social networking sites.
A web site I've been using has some interesting behavior... There is a form,
I have been providing my subdomain name to friend until he manages to get
I have a primary ASP.NET site that asks for a user name. When the
I have been using .htaccess rules to hide the index page of EE sites

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.