Scott Barnes Gold Membership
 Nuke Active Member Posts:35

 |
| 11/14/2006 8:05 AM |
|
|
I'm trying to create a test version of my production website.
What I did was create a folder called Test in my root and added all of the DNN 4.0.2 files.
I then created a new database called Test
Then I pointed to the new data base in the web.config file in the Test folder
Then I created a subdomain called http://test.bostonmountaincylists.com that pointed to the new Test folder
I'm able to get to http://test.bostonmountaincylists.com without a problem, but when I click on any other link on the website it is taking back to that link on my production website.
I'm new to programming and DNN so any help is appreciated. The reason I want a test version is so I can do version upgrades or add new modules to my Test site to make sure it works before I move it up to production.
Thank you,
Scott Barnes |
|
|
|
|
Scott McCulloch Administrators
 Nuke Master Posts:12820


 |
| 11/15/2006 6:05 AM |
|
| Do you have a portal alias pointing to the main site? You must remove this.. |
|
Scott McCulloch Site Administrator |
|
|
Scott Barnes Gold Membership
 Nuke Active Member Posts:35

 |
| 11/15/2006 6:26 AM |
|
Where would I look to see if I have portal alias set-up?
Thanks in advance, |
|
|
|
|
Scott McCulloch Administrators
 Nuke Master Posts:12820


 |
| 11/15/2006 6:37 AM |
|
Well, if it's redirecting straight away, it would be difficult to do it live, so you may have to go into the portal alias table manually, dnn_portalalias.
You should also modify the web.config again, so it flush the application, if you find the portalalias entry. |
|
Scott McCulloch Site Administrator |
|
|
Scott Barnes Gold Membership
 Nuke Active Member Posts:35

 |
| 11/15/2006 6:47 AM |
|
O.K. I found where the alias is. My question now is, if I delete the alias from my production site and then copy the code over to my test folder will I be able to then add it back to the production site without causing any problems?
Thank you, |
|
|
|
|
Scott McCulloch Administrators
 Nuke Master Posts:12820


 |
| 11/15/2006 6:51 AM |
|
Not sure what you mean, on your test site, you should remove the portal alias that has the production URL in it.
I wouldn't touch the production site, unless you want to do something with it? |
|
Scott McCulloch Site Administrator |
|
|
Scott Barnes Gold Membership
 Nuke Active Member Posts:35

 |
| 11/15/2006 7:00 AM |
|
I went into the test database in the PortalAlias table and deleted the entry. I can still get to http://test.bostonmountaincylists.com, but it is still taking me back to the production site whenever I click on any of the links in the navigation bar and when I try to login it is taking to the login screen of the production site. Is there someone else I need to change?
Just to recap what I've done so far:
I created a folder in the root called test and I have an exact copy of my production code in there with the only change being that I am pointing to the new database I created that was also restored from production.
Then I just deleted the portal alias from the test database and then I created a subdomain called http://test.bostonmountaincyclists.com that is pointing to the test folder I created.
Thank you, |
|
|
|
|
Scott McCulloch Administrators
 Nuke Master Posts:12820


 |
| 11/15/2006 7:04 AM |
|
You need to modify the web.config so your test application will reset itself, and make sure there is a portal alias for http://test.bostonmountaincyclists.com in your test site. (portal alias's are cached)
You can also find out if it's a configuration error in DNN or your web server by browsing for an image:-
http://test.bostonmountaincyclists.com/images/edit.gif (which works, so it's DNN) |
|
Scott McCulloch Site Administrator |
|
|
Scott Barnes Gold Membership
 Nuke Active Member Posts:35

 |
| 11/15/2006 7:34 AM |
|
I think we are getting close. I went into tools internet options and deleted all of my cookies and history. Then I added the new alias for http://test.bostonmountaincyclists.com to the PortalAlias table. Could you please explain what in my web.config file I need to modify to make the application reset itself. Also their is a table called Portals that has a GUID, how does this GUID get generated and would play into the issue I'm having?
Thank you, Scott Barnes |
|
|
|
|
Scott McCulloch Administrators
 Nuke Master Posts:12820


 |
| 11/15/2006 7:38 AM |
|
Not sure about the GUID, but you shouldn't be modifying the "portals" table.
You need to modify the web.config so it will reset the application/cache, just put a space or something in it, so the timestamp on the file changes. |
|
Scott McCulloch Site Administrator |
|
|
Scott Barnes Gold Membership
 Nuke Active Member Posts:35

 |
| 11/15/2006 8:00 AM |
|
I went in and added a space to the web.config file and then saved that back up. It took a long time to bring up test.bostonmoutaincyclists.com so I think it picked up the new web.config file. However I still can't navigate to other links on the site without it going back to the production site. Is their a better way to get two identical code streams going on the same box other than the way I tried in just copying my production code over to a new folder and creating a new separate database that is restored from the production database?
Thank you for all of your quick responses!!! |
|
|
|
|
Scott McCulloch Administrators
 Nuke Master Posts:12820


 |
| 11/15/2006 8:04 AM |
|
| The detail you described is the way I normally do it, (along with changing the portal alias), so I'm not really sure what is going.. |
|
Scott McCulloch Site Administrator |
|
|
Scott Barnes Gold Membership
 Nuke Active Member Posts:35

 |
| 11/15/2006 8:09 AM |
|
Just to make sure I did this right. I had to go into my BMC_TEST database and delete the http://www.bostonmountaincyclist.com alias and add the http://test.bostonmountaincyclist.com entry. I couldn't add it from the site because I couldn't login from the site. The reason I couldn't login from http://test.bostonmountaincyclists.com is because when I clicked login, I was actually logging into my production database and I don't think I want to add it from my production site site I created a BMC_TEST database.
When you've done this in the past did you just copy your code over to a new folder and create a new database? How did you change your portal alias, in the new database or through the test website?
Thank you, |
|
|
|
|
Scott Barnes Gold Membership
 Nuke Active Member Posts:35

 |
| 11/15/2006 11:58 AM |
|
Thank you for all of your help. Even though I wasn't able to make it work on 4.0.2, I upgraded to 4.3.5 on the test site and it worked like a champ.
Thanks again, Scott Barnes |
|
|
|
|
Scott McCulloch Administrators
 Nuke Master Posts:12820


 |
| 11/15/2006 3:06 PM |
|
| Glad it's working.. ! |
|
Scott McCulloch Site Administrator |
|
|
Scott Barnes Gold Membership
 Nuke Active Member Posts:35

 |
| 11/16/2006 6:45 AM |
|
I decided to upgrade my production site to 4.3.5 as well and I noticed during the upgrade the it says my assembly version is 4.3.5, but that my database version is 4.0.2. I saw this when I upgraded my test site, but I didn't think much about it at the time. That doesn't seem right, how would I upgrade my database as well?
Thank you, |
|
|
|
|
Scott McCulloch Administrators
 Nuke Master Posts:12820


 |
| 11/16/2006 4:42 PM |
|
When it reports that, it begins upgraded the database, did you see the log on the screen saying that certain sql scripts were being ran to upgrade your db?
|
|
Scott McCulloch Site Administrator |
|
|