Need a bit of help with my install

User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Need a bit of help with my install

Post by axew3 »

we speak about localhost test ...on online setting i have to suggest you to change: 1) It not need to be http://www.forum.corvette-restoration.com/ but http://forum.corvette-restoration.com/, remove www. in front. 2) your phpBB need to be served as https, as your WP is. Change this into your phpBB acp settings. A cookie released under https, isn't available as http, and viceversa. Check that when you link phpBB from external pages, you should link it with https, or to avoid any problem, you should set your htaccess to rewrite any http request, to be https, check this:
Sometime i result suddenly logged out/in ... why? (http/https)

about localhost test, check that seem to be a cookie setting problem (as ever). Check also that phpBB have localhost as domain x cookies (or x example .mylocaldomain.com in more advanced localhost server's config, but i assume isn't your case). Logout, Clean cookies on your browser. Re-login

how you have install phpBB and WP into your localhost? which folders path?
71Corvette
User w
User w
Posts: 14
Joined: Sat Oct 14, 2017 2:31 am

Re: Need a bit of help with my install

Post by 71Corvette »

axew3 wrote: Wed Oct 18, 2017 9:43 am we speak about localhost test ...on online setting i have to suggest you to change: 1) It not need to be http://www.forum.corvette-restoration.com/ but http://forum.corvette-restoration.com/, remove www. in front. 2) your phpBB need to be served as https, as your WP is. Change this into your phpBB acp settings. A cookie released under https, isn't available as http, and viceversa. Check that when you link phpBB from external pages, you should link it with https, or to avoid any problem, you should set your htaccess to rewrite any http request, to be https
Thanks, I'll definitely give these settings a shot when I upload my wordpress site to my webhost. I'm hoping to get it working on my localhost before uploading it to the web thought.
axew3 wrote: Wed Oct 18, 2017 9:43 am about localhost test, check that seem to be a cookie setting problem (as ever). Check that phpBB have localhost as domain x cookies (or x example .mydomain in more advanced localhost server's config, but i assume isn't your case). Logout, Clean cookies on your browser. Re-login
I'm not sure I follow exactly what you mean here. Here's a screenshot of my cookie settings on my forum running on my localhost:
Capture.4JPG.JPG
Capture.4JPG.JPG (51.48 KiB) Viewed 2821 times
The cookie domain is: ".phpBB"
I also tried the cookie domain as: "phpBB" (without the . in the front) but the result was the same - I still can't log into WP-Admin.

I've tried deleting cookies through my web browser but that did not help. I also went into wp_w3all.php and removed the // in front of the line to reset cookies and updated the line to read: $w3reset_cookie_domain = '.phpBB';

I reloaded my website, added the // back to the wp_w3all.php file and then tried to log in. Again, nothing changed.
axew3 wrote: Wed Oct 18, 2017 9:43 am how you have install phpBB and WP into your localhost? which folders path?
The full path for my localhost installation are as follows:

WP: C:\xampp\htdocs\wordpress02
phpBB: C:\xampp\htdocs\phpBB

In the "settings" section of Wordpress I have the following information entered for WP

Path: C:/xampp/htdocs/phpBB
URL: localhost/phpBB
Capture2.JPG
Capture2.JPG (94.45 KiB) Viewed 2821 times
Attachments
Capture3.JPG
Capture3.JPG (98.5 KiB) Viewed 2821 times
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Need a bit of help with my install

Post by axew3 »

hello, little sick yesterday, i just can re-start my life today ...

Code: Select all

$w3reset_cookie_domain = '.phpBB';
no this is not the setting, cookie domain need to refer to the domain you are on, not to the folder where you've install phpBB!
If on localhost it need to be:

Code: Select all

$w3reset_cookie_domain = 'localhost';
if it isn't already, the same setting you need to put into your cookie domain setting in phpBB ACP-> Server configuration -> Cookie setting -> Cookie domain:
set cookie domain value as localhost if it isn't, and cookie path as single / (slash)
Save. Logout, Clean cookies, login now.
71Corvette
User w
User w
Posts: 14
Joined: Sat Oct 14, 2017 2:31 am

Re: Need a bit of help with my install

Post by 71Corvette »

Success!!! It looks like it was the cookie setting that was wrong. I updated it in phpBB and everything is working perfectly.

Thanks so much for your help, and I hope you're feeling better!
Post Reply