Local test site redircts me to my live site.

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning

Local test site redircts me to my live site.

Postby Abera » Tue Jun 22, 2010 2:28 pm

I'm running a local server. I have my live site downloaded to the server. When I bring the local site up and login it redirects me to my live site. Locally I can't get to the ACP to change anything. I have tried System Tool Kit and it keeps logging me out and asks for the stk password.

The Cookies MUST be allowed by your browser or you will not be able to stay logged in. The Cookies are allowed by my browser.

Is there anyway I can manually change the

var style_cookie_settings = '; path=/; domain=.mytest.com';

Thanks
Abera
Registered User
 
Posts: 674
Joined: Mon Jan 15, 2007 1:26 am

Re: Local test site redircts me to my live site.

Postby Php33Fan » Tue Jun 22, 2010 2:36 pm

Can you tell us what setting do you have for these in your local database :

Code: Select all
cookie_domain
server_name
script_path


All these can be found under phpbb_config table in your DB
Free phpBB Consultation & Help - PM me
Php33Fan
Registered User
 
Posts: 67
Joined: Mon Jun 21, 2010 2:11 pm

Re: Local test site redircts me to my live site.

Postby Abera » Tue Jun 22, 2010 11:44 pm

Php33Fan wrote:Can you tell us what setting do you have for these in your local database :

Code: Select all
cookie_domain
server_name
script_path


All these can be found under phpbb_config table in your DB

I've renamed all of these to mytest. Not my real site's name due to spamming.


cookie_domain .mytest.com

server_name mytest.com

script_path /

Thanks for the comeback. :D
Abera
Registered User
 
Posts: 674
Joined: Mon Jan 15, 2007 1:26 am

Re: Local test site redircts me to my live site.

Postby stevemaury » Wed Jun 23, 2010 2:49 am

Well, you need to change them as appropriate for you local installation.

If we knew how you are running it locally (wamp, xampp, etc) we could help better.

How would one spam a local installation of phpbb? Mine is at localhost/phpbb3. Can you spam me?
For REALLY good and VERY inexpensive hosting CLICK HERE

http://www.stevesstocks.com

All unsolicited PMs will be ignored.
User avatar
stevemaury
Support Team Member
Support Team Member
 
Posts: 44096
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve

Re: Local test site redircts me to my live site.

Postby Abera » Wed Jun 23, 2010 3:05 am

stevemaury wrote:Well, you need to change them as appropriate for you local installation.

If we knew how you are running it locally (wamp, xampp, etc) we could help better.

How would one spam a local installation of phpbb? Mine is at localhost/phpbb3. Can you spam me?

Sorry WAMP.
No, but if I gave the name of my live site they could.
Thanks
Abera
Registered User
 
Posts: 674
Joined: Mon Jan 15, 2007 1:26 am

Re: Local test site redircts me to my live site.

Postby Php33Fan » Wed Jun 23, 2010 6:06 am

Abera wrote:
Php33Fan wrote:Can you tell us what setting do you have for these in your local database :

Code: Select all
cookie_domain
server_name
script_path


All these can be found under phpbb_config table in your DB

I've renamed all of these to mytest. Not my real site's name due to spamming.


cookie_domain .mytest.com

server_name mytest.com

script_path /

Thanks for the comeback. :D



cookie_domain should be .localhost
server_name should be localhost
script_path should be /*yourfolder*name { where you have placed your phpbb3 files on WAMP}
Free phpBB Consultation & Help - PM me
Php33Fan
Registered User
 
Posts: 67
Joined: Mon Jun 21, 2010 2:11 pm

Re: Local test site redircts me to my live site.

Postby Abera » Wed Jun 23, 2010 1:46 pm

Php33Fan wrote:
cookie_domain should be .localhost
server_name should be localhost
script_path should be /*yourfolder*name { where you have placed your phpbb3 files on WAMP}

This is what I have now:

cookie_domain .localhost

server_name localhost

script_path /live_621/

I have stopped all services in WAMP and restarted. I have dumped the cache and refreshed my browser.When I login and is suppose to go to the next page it logs me out.
Thanks again for the help.
Abera
Registered User
 
Posts: 674
Joined: Mon Jan 15, 2007 1:26 am

Re: Local test site redircts me to my live site.

Postby stevemaury » Wed Jun 23, 2010 2:12 pm

Is there actually a dot on front of "localhost"? Shouldn't be.

Does your config.php file point to your local database server, user, etc.?

Do you have "Force server settings" set to Yes?
For REALLY good and VERY inexpensive hosting CLICK HERE

http://www.stevesstocks.com

All unsolicited PMs will be ignored.
User avatar
stevemaury
Support Team Member
Support Team Member
 
Posts: 44096
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve

Re: Local test site redircts me to my live site.

Postby Abera » Wed Jun 23, 2010 2:46 pm

stevemaury wrote:Is there actually a dot on front of "localhost"? Shouldn't be.

Does your config.php file point to your local database server, user, etc.?

Do you have "Force server settings" set to Yes?

"dot on front of "localhost"? Shouldn't be."

I everything else is set right. Deleted the dot and all seems to be working now.
Thanks again for all of the help and this now is solved. :D
Abera
Registered User
 
Posts: 674
Joined: Mon Jan 15, 2007 1:26 am


Return to 3.0.x Support Forum

Who is online

Users browsing this forum: AmigoJack, Google [Bot], Jessica, Yandex [Bot] and 64 guests