Update from 3.2.2 to 3.2.3 not working

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Banisher
Registered User
Posts: 18
Joined: Fri Aug 01, 2008 3:23 pm

Update from 3.2.2 to 3.2.3 not working

Post 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."
User avatar
Marc
Development Team Leader
Development Team Leader
Posts: 5657
Joined: Tue Oct 30, 2007 10:57 pm
Location: Munich, Germany
Name: Marc
Contact:

Re: Update from 3.2.2 to 3.2.3 not working

Post by Marc »

Sounds like there is an issue with your webserver setup. What type of webserver and what version of it are you using?
Banisher
Registered User
Posts: 18
Joined: Fri Aug 01, 2008 3:23 pm

Re: Update from 3.2.2 to 3.2.3 not working

Post by Banisher »

nginx/1.14.0
User avatar
</Solidjeuh>
Registered User
Posts: 1788
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

Re: Update from 3.2.2 to 3.2.3 not working

Post 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.
Banisher
Registered User
Posts: 18
Joined: Fri Aug 01, 2008 3:23 pm

Re: Update from 3.2.2 to 3.2.3 not working

Post 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.
User avatar
Marc
Development Team Leader
Development Team Leader
Posts: 5657
Joined: Tue Oct 30, 2007 10:57 pm
Location: Munich, Germany
Name: Marc
Contact:

Re: Update from 3.2.2 to 3.2.3 not working

Post by Marc »

Have you checked your nginx config against our sample configuration?
https://github.com/phpbb/phpbb/blob/3.2 ... ample.conf
Banisher
Registered User
Posts: 18
Joined: Fri Aug 01, 2008 3:23 pm

Re: Update from 3.2.2 to 3.2.3 not working

Post 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;
    }
}
Heo32
Registered User
Posts: 207
Joined: Sat Jan 07, 2017 10:08 pm

Re: Update from 3.2.2 to 3.2.3 not working

Post 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
stevemaury wrote: Sun May 20, 2018 8:16 pm I went to your board and looked for an hour or so, but did not see the women without underwear.
Allow using Content-Security-Policy without unsafe-inline • Content-Security-Policy
User avatar
Maxoom
Registered User
Posts: 58
Joined: Tue Jun 02, 2009 1:07 am

Re: Update from 3.2.2 to 3.2.3 not working

Post by Maxoom »

Just go to /install and NOT /install.php

I made the same mistake.
Banisher
Registered User
Posts: 18
Joined: Fri Aug 01, 2008 3:23 pm

Re: Update from 3.2.2 to 3.2.3 not working

Post 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
User avatar
dio33
Registered User
Posts: 85
Joined: Tue Jan 04, 2011 9:02 pm
Contact:

Re: Update from 3.2.2 to 3.2.3 not working

Post 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. ;)
User avatar
Marc
Development Team Leader
Development Team Leader
Posts: 5657
Joined: Tue Oct 30, 2007 10:57 pm
Location: Munich, Germany
Name: Marc
Contact:

Re: Update from 3.2.2 to 3.2.3 not working

Post 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.
Banisher
Registered User
Posts: 18
Joined: Fri Aug 01, 2008 3:23 pm

Re: Update from 3.2.2 to 3.2.3 not working

Post by Banisher »

added `root /;` to my server field, still no bueno :(
User avatar
Marc
Development Team Leader
Development Team Leader
Posts: 5657
Joined: Tue Oct 30, 2007 10:57 pm
Location: Munich, Germany
Name: Marc
Contact:

Re: Update from 3.2.2 to 3.2.3 not working

Post 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.
Banisher
Registered User
Posts: 18
Joined: Fri Aug 01, 2008 3:23 pm

Re: Update from 3.2.2 to 3.2.3 not working

Post by Banisher »

I had tried `root /var/www/xxxx/;` that did not work either
Post Reply

Return to “[3.2.x] Support Forum”