MyBB Community Forums

Full Version: Login Issue After Installation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello everybody, please I am having a login issue after installation on a test subdomain. Whenever I login in I will get a successful login message and then be redirect to the page and without being logged in. I've tried both Chrome and Firefox browser and experienced the same problem.

I am running the test forum on PHP7 , the newly installed 1.8.7 test forum = http://mybb2.techngr.com

Thanks.
Have you checked your cookie settings?

https://community.mybb.com/thread-126359.html
(2016-10-12, 10:23 AM)day-day Wrote: [ -> ]Have you checked your cookie settings?

https://community.mybb.com/thread-126359.html

The Cookies settings is ok.
I don't know if it has any bug with php7 ???

Tornado Mitr

(2016-10-12, 10:30 AM)wanchope Wrote: [ -> ]
(2016-10-12, 10:23 AM)day-day Wrote: [ -> ]Have you checked your cookie settings?

https://community.mybb.com/thread-126359.html

The Cookies settings is ok.
I don't know if it has any bug with php7 ???

I'm using PHP 7.0.x on all of my forums and I have no issues, which specific version of PHP do you use? For example: 7.0.11 (latest version).
@Tornado Mitr
I am using PHP 7.0.10.
This is the output from the php -v
PHP 7.0.10-1+deb.sury.org~trusty+1 (cli) ( NTS )
Copyright © 1997-2016 The PHP Group
..........................................................
Which Web Server are you using? Nginx?

Tornado Mitr

(2016-10-12, 12:51 PM)wanchope Wrote: [ -> ]@Tornado Mitr
I am using PHP 7.0.10.
This is the output from the php -v
PHP 7.0.10-1+deb.sury.org~trusty+1 (cli) ( NTS )
Copyright © 1997-2016 The PHP Group
..........................................................
Which Web Server are you using? Nginx?

Yes, I am.
(2016-10-12, 01:01 PM)Tornado Mitr Wrote: [ -> ]
(2016-10-12, 12:51 PM)wanchope Wrote: [ -> ]@Tornado Mitr
I am using PHP 7.0.10.
This is the output from the php -v
PHP 7.0.10-1+deb.sury.org~trusty+1 (cli) ( NTS )
Copyright © 1997-2016 The PHP Group
..........................................................
Which Web Server are you using? Nginx?

Yes, I am.

Can you please send me your server block config, I need to make sure it is not causing the cookies problem.

Tornado Mitr

(2016-10-12, 01:06 PM)wanchope Wrote: [ -> ]
(2016-10-12, 01:01 PM)Tornado Mitr Wrote: [ -> ]
(2016-10-12, 12:51 PM)wanchope Wrote: [ -> ]@Tornado Mitr
I am using PHP 7.0.10.
This is the output from the php -v
PHP 7.0.10-1+deb.sury.org~trusty+1 (cli) ( NTS )
Copyright © 1997-2016 The PHP Group
..........................................................
Which Web Server are you using? Nginx?

Yes, I am.

Can you please send me your server block config, I need to make sure it is not causing the cookies problem.

My forum URL is in my signature.
Not your Url, your Nginx Server blocks config.
Here is mine -

server {
        listen 80;
        listen [::]:80;

        root *******************;
        index index.php index.html index.htm;

        server_name mybb2.techngr.com;

        location / {
                try_files $uri $uri/ /index.php?$query_string;
        }

        
        location ~ \.php$ {
                try_files $uri =404;
                fastcgi_split_path_info ^(.+\.php)(/.+)$;
                fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
                fastcgi_index index.php;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_nam$
                include fastcgi_params;
        }
                 
                # Mybb Default rewrite
        rewrite ^/thread-([0-9]+).html$ /showthread.php?tid=$1 last;
        rewrite ^/thread-([0-9]+)-page-([0-9]+).html$ /showthread.php?tid=$1&pa$
        rewrite ^/thread-([0-9]+)-lastpost.html$ /showthread.php?tid=$1&action=$
        rewrite ^/thread-([0-9]+)-nextnewest.html$ /showthread.php?tid=$1&actio$
        rewrite ^/thread-([0-9]+)-nextoldest.html$ /showthread.php?tid=$1&actio$
        rewrite ^/thread-([0-9]+)-newpost.html$ /showthread.php?tid=$1&action=n$
        rewrite ^/thread-([0-9]+)-post-([0-9]+).html$ /showthread.php?tid=$1&pi$
        rewrite ^/post-([0-9]+).html$ /showthread.php?pid=$1 last;
        rewrite ^/announcement-([0-9]+).html$ /announcements.php?aid=$1 last;
        rewrite ^/user-([0-9]+).html$ /member.php?action=profile&uid=$1 last;
        rewrite ^/calendar-([0-9]+).html$ /calendar.php?calendar=$1 last;
        rewrite ^/calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+).html$ /calenda$
        rewrite ^/calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)-day-([0-9]+).h$
        rewrite ^/calendar-([0-9]+)-week-(n?[0-9]+).html$ /calendar.php?action=$
        rewrite ^/event-([0-9]+).html$ /calendar.php?action=event&eid=$1 last;

}
cookie domain can be set to mybb2.techngr.com & cookie path can be /
or
cookie domain => .mybb2.techngr.com & cookie path => /mybb2/

cookie settings can be first changed in ~/inc/settings.php file and then
immediately at
Site Details of configuration section in forum admin panel
Pages: 1 2