Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Oct 28, 2011 1:28 pm 
Offline
Senior Newbie

Joined: Sun Apr 03, 2011 6:35 am
Posts: 8
I use drupal and I setup my dev site in my public html. So my test site url is mysite.com/dev. I noticed whenever there is an error on my drupal configuration or module on the dev site, the errors also show on the live site. They are not using the same database so I don't know why this is happening. When I was on a shared hosting, my setup was exactly the same without any problem.

How do I setup a dev site properly with linode? Thanks.


Top
   
 Post subject:
PostPosted: Fri Oct 28, 2011 10:47 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
Try moving your dev site to a different subdomain, such as dev.mysite.com. Create another virtual host just for the dev site. That way, you'll have more control over various settings. (For example, a setting in an .htaccess file in the root of the live site could affect your dev site if the latter is in a subdirectory.)


Top
   
 Post subject:
PostPosted: Sat Nov 05, 2011 11:29 am 
Offline
Senior Newbie

Joined: Sun Apr 03, 2011 6:35 am
Posts: 8
Hi Hybinet, thank you for your advice. I followed your advice and and moved the dev site from /srv/www/mysite.com/public_html/dev to /srv/www/dev.mysite.com/public_html/. I created a separate virtual host for it and now it's dev.mysite.com. However I'm still having the same problem. For example an overhead menu that I created on the live site is also showing on the dev site. I removed it on the live site and now it's no longer showing on the dev site.

I'm not sure what to do anymore. This is really frustrating as I really need a place to test things.
Thanks.


Top
   
 Post subject:
PostPosted: Sat Nov 05, 2011 2:12 pm 
Offline
Senior Member
User avatar

Joined: Thu Jun 16, 2011 8:24 am
Posts: 412
Location: Cyberspace
Are you sure the databases are separate? Are your drupal/sites/default/settings for your live site and your dev site pointing to the correct databases?

_________________
Kris the Piki Geeker


Top
   
 Post subject:
PostPosted: Sun Nov 06, 2011 5:30 pm 
Offline
Senior Newbie

Joined: Sun Apr 03, 2011 6:35 am
Posts: 8
Yes, the database names are different. I made sure.


Top
   
 Post subject:
PostPosted: Sun Nov 06, 2011 7:38 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
That's very strange.

Let's make sure that you're actually visiting the dev site. Is anything at all different between the two sites? Any chance you're getting silently redirected to the live site, or vice versa? WordPress used to (and still might) point all internal links at the domain where it was originally installed. That was really annoying. I'm not sure whether or not Drupal does something similar, but it's worth checking.

Do you use APC, Memcached, or any other mechanism that might be used to store information in a shared location? Loading website configuration from the database at every request is resource-intensive, so I can imagine web apps trying to cache those things.

Are you sure that the databases are actually different? Try connecting to the dev database manually and change some random data that is safe to change, such as titles of posts. Does the change show up in the dev site, the live site, or both?

Clear your browser cache and cookies. Cookies for mysite.com might affect dev.mysite.com, because cookies often cover all subdomains.

That's all I can think of right now. If all else fails, see if you can separate the two sites by cloning your Linode and putting each site on different Linodes. An extra 512 costs only $0.67 per day, and you can cancel it as soon as you find out what the problem is.


Last edited by hybinet on Sun Nov 06, 2011 7:42 pm, edited 2 times in total.

Top
   
 Post subject:
PostPosted: Sun Nov 06, 2011 7:39 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
(sorry, double post)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group