Page 1 of 2

Update from 3.2.2 to 3.2.3 not working

Posted: Thu Sep 13, 2018 4:13 pm
by Banisher
I uploaded the automatic upgrade package and went to /install/app.php, when I then click on the "update" tab, I get redirected to /install/app.php/update which is my forum root that says "Please delete, move or rename the install directory before you use your board. If this directory is still present, only the Administration Control Panel (ACP) will be accessible."

Re: Update from 3.2.2 to 3.2.3 not working

Posted: Thu Sep 13, 2018 4:26 pm
by Marc
Sounds like there is an issue with your webserver setup. What type of webserver and what version of it are you using?

Re: Update from 3.2.2 to 3.2.3 not working

Posted: Thu Sep 13, 2018 4:43 pm
by Banisher
nginx/1.14.0

Re: Update from 3.2.2 to 3.2.3 not working

Posted: Thu Sep 13, 2018 4:43 pm
by </Solidjeuh>
Do u have a rederict in .htaccess for portal?
Remove that line then, add it back after the update.
I had the same issue.

Re: Update from 3.2.2 to 3.2.3 not working

Posted: Thu Sep 13, 2018 4:57 pm
by Banisher
</Solidjeuh> wrote:
Thu Sep 13, 2018 4:43 pm
Do u have a rederict in .htaccess for portal?
Remove that line then, add it back after the update.
I had the same issue.
Nope, no .htaccess here, that's for apache anyway.

Re: Update from 3.2.2 to 3.2.3 not working

Posted: Thu Sep 13, 2018 5:05 pm
by Marc
Have you checked your nginx config against our sample configuration?
https://github.com/phpbb/phpbb/blob/3.2 ... ample.conf

Re: Update from 3.2.2 to 3.2.3 not working

Posted: Thu Sep 13, 2018 5:12 pm
by Banisher
Marc wrote:
Thu Sep 13, 2018 5:05 pm
Have you checked your nginx config against our sample configuration?
https://github.com/phpbb/phpbb/blob/3.2 ... ample.conf
Yeah that is super outdated and does not really work anymore. Can't have http directives in per-site config files.

My config looks like this now:

Code: Select all

server { 
    location ~ \.php(/|$) {
        # Unmodified fastcgi_params from nginx distribution.
        include fastcgi_params;
        # Necessary for php.
        fastcgi_split_path_info ^(.+\.php)(/.*)$;
        fastcgi_param PATH_INFO $fastcgi_path_info;
        fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
        fastcgi_param DOCUMENT_ROOT $realpath_root;
        try_files $uri $uri/ /app.php$is_args$args;
        fastcgi_pass unix:/run/php/php7.2-fpm.sock;
    }

    # Correctly pass scripts for installer
    location /install/ {
        # phpBB uses index.htm
        try_files $uri $uri/ @rewrite_installapp;

        # Pass the php scripts to fastcgi server specified in upstream declaration.
        location ~ \.php(/|$) {
            # Unmodified fastcgi_params from nginx distribution.
            include fastcgi_params;
            # Necessary for php.
            fastcgi_split_path_info ^(.+\.php)(/.*)$;
            fastcgi_param PATH_INFO $fastcgi_path_info;
            fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
            fastcgi_param DOCUMENT_ROOT $realpath_root;
            try_files $uri $uri/ /install/app.php$is_args$args;
            fastcgi_pass unix:/run/php/php7.2-fpm.sock;
        }
    }

    location @rewrite_installapp {
        rewrite ^(.*)$ /install/app.php/$1 last;
    }

    # Deny access to version control system directories.
    location ~ /\.svn|/\.git {
        deny all;
        internal;
    }
}

Re: Update from 3.2.2 to 3.2.3 not working

Posted: Fri Sep 14, 2018 4:37 am
by Heo32
My setup is Windows 10, Nginx, PHP, phpMyAdmin, MySQL, WordPress, along with CloudFlare and TLS.

This works for me. Give it a try:

viewtopic.php?f=556&t=2399956&p=14612651#p14612651

Re: Update from 3.2.2 to 3.2.3 not working

Posted: Fri Sep 14, 2018 6:04 pm
by Maxoom
Just go to /install and NOT /install.php

I made the same mistake.

Re: Update from 3.2.2 to 3.2.3 not working

Posted: Fri Sep 14, 2018 9:53 pm
by Banisher
Maxoom wrote:
Fri Sep 14, 2018 6:04 pm
Just go to /install and NOT /install.php

I made the same mistake.
I did that actually

Re: Update from 3.2.2 to 3.2.3 not working

Posted: Sat Sep 15, 2018 9:17 am
by dio33
</Solidjeuh> wrote:
Thu Sep 13, 2018 4:43 pm
Do u have a rederict in .htaccess for portal?
Remove that line then, add it back after the update.
I had the same issue.
I've got the Portal and that happen to me too.

Thanks. ;)

Re: Update from 3.2.2 to 3.2.3 not working

Posted: Sat Sep 15, 2018 10:47 am
by Marc
Banisher wrote:
Thu Sep 13, 2018 5:12 pm
Marc wrote:
Thu Sep 13, 2018 5:05 pm
Have you checked your nginx config against our sample configuration?
https://github.com/phpbb/phpbb/blob/3.2 ... ample.conf
Yeah that is super outdated and does not really work anymore. Can't have http directives in per-site config files.

My config looks like this now:

Code: Select all

server { 
    location ~ \.php(/|$) {
        # Unmodified fastcgi_params from nginx distribution.
        include fastcgi_params;
        # Necessary for php.
        fastcgi_split_path_info ^(.+\.php)(/.*)$;
        fastcgi_param PATH_INFO $fastcgi_path_info;
        fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
        fastcgi_param DOCUMENT_ROOT $realpath_root;
        try_files $uri $uri/ /app.php$is_args$args;
        fastcgi_pass unix:/run/php/php7.2-fpm.sock;
    }

    # Correctly pass scripts for installer
    location /install/ {
        # phpBB uses index.htm
        try_files $uri $uri/ @rewrite_installapp;

        # Pass the php scripts to fastcgi server specified in upstream declaration.
        location ~ \.php(/|$) {
            # Unmodified fastcgi_params from nginx distribution.
            include fastcgi_params;
            # Necessary for php.
            fastcgi_split_path_info ^(.+\.php)(/.*)$;
            fastcgi_param PATH_INFO $fastcgi_path_info;
            fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
            fastcgi_param DOCUMENT_ROOT $realpath_root;
            try_files $uri $uri/ /install/app.php$is_args$args;
            fastcgi_pass unix:/run/php/php7.2-fpm.sock;
        }
    }

    location @rewrite_installapp {
        rewrite ^(.*)$ /install/app.php/$1 last;
    }

    # Deny access to version control system directories.
    location ~ /\.svn|/\.git {
        deny all;
        internal;
    }
}
It looks like you're not specifying your root directory, similar to here:
https://github.com/phpbb/phpbb/blob/mas ... e.conf#L52

That can prevent nginx from correctly handling your install directory.

Re: Update from 3.2.2 to 3.2.3 not working

Posted: Sat Sep 15, 2018 1:42 pm
by Banisher
added `root /;` to my server field, still no bueno :(

Re: Update from 3.2.2 to 3.2.3 not working

Posted: Sat Sep 15, 2018 3:15 pm
by Marc
But that shouldn't be the path your forum is located at. What's the absolute path to your index.php? Use that absolute path and remove index.php and you should have the proper root path.

Re: Update from 3.2.2 to 3.2.3 not working

Posted: Sat Sep 15, 2018 10:20 pm
by Banisher
I had tried `root /var/www/xxxx/;` that did not work either