Can't upgrade from 3.2.5 to latest, manual update?

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
jerrry
Registered User
Posts: 53
Joined: Mon Jan 02, 2006 9:40 pm

Can't upgrade from 3.2.5 to latest, manual update?

Post by jerrry »

Hello, I am trying to upgrade my phpBB3 forum (right now version 3.2.5) to the latest one. But when I run installation page on url https://mysite.com/forum/install/app.php and click to Update mark at the top, I am redirected to url https://mysite.com/forum/install/app.php/update, but this url doesn't work and shows me the 404 error page. On my main domain mysite.com (just an example) I am using Wordpress and forum is running on mysite.com/forum url, but when I try to run the installation script, I am redirected to the Wordpress 404 error page (so basically Wordpress is handling this url). I think this must be some server-setting issues with redirects, but I can' change it.

My question is, is there any way, how to manually update the database for phpBB3, because I can't run the Update script via classic install/update page. If I am getting this right, update script will only update the DB and files are updated by me manually via FTP, right?
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 5871
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.
Contact:

Re: Can't upgrade from 3.2.5 to latest, manual update?

Post by thecoalman »

Under server settings is URL rewriting enabled or disabled?

If it is enabled you can try turning it off, optionally you can look into how to edit Worpress's .htaccess file so it ignores requests for /forum/ *
jerrry wrote: Tue Jul 26, 2022 12:04 pm If I am getting this right, update script will only update the DB and files are updated by me manually via FTP, right?
Correct.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
jerrry
Registered User
Posts: 53
Joined: Mon Jan 02, 2006 9:40 pm

Re: Can't upgrade from 3.2.5 to latest, manual update?

Post by jerrry »

thecoalman: thanks for fast reply. I've checked the .htaccess file for WP and it contains these lines:

Code: Select all

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Do you think the lines RewriteRule ^index\.php$ - [L] and RewriteRule . /index.php [L] should affect the update script, because this one ends by …/app.php/update?
User avatar
warmweer
Jr. Extension Validator
Posts: 11234
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium
Contact:

Re: Can't upgrade from 3.2.5 to latest, manual update?

Post by warmweer »

Which PHP version are you using?
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
jerrry
Registered User
Posts: 53
Joined: Mon Jan 02, 2006 9:40 pm

Re: Can't upgrade from 3.2.5 to latest, manual update?

Post by jerrry »

version 7.4.25
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 5871
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.
Contact:

Re: Can't upgrade from 3.2.5 to latest, manual update?

Post by thecoalman »

Open phpBB's .htaccess file:

Find:

Code: Select all

#RewriteBase /
Replace with:

Code: Select all

RewriteBase /forum/
If that doesn't help report back but leave the new line.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
jerrry
Registered User
Posts: 53
Joined: Mon Jan 02, 2006 9:40 pm

Re: Can't upgrade from 3.2.5 to latest, manual update?

Post by jerrry »

Thanks a lot, I did that, uploaded new files for update and run the Update. But results are still same (I am redirected back to Wordpress 404 error page). Is there any way how I can for example execute the DB update manually and not via the update script?
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26502
Joined: Fri Aug 29, 2008 9:49 am

Re: Can't upgrade from 3.2.5 to latest, manual update?

Post by Mick »

When you say you’re using WP what do you mean? Is that WP proper as in a blog or a WP Website Builder? phpBB is a standalone program in it’s own directory, it has it’s own .htaccess file(s) and index files etc. As such there should be no interaction between WP & phpBB. I would suggest there is something possibly wrong in the server settings to give you these issues. As a test temporarily rename the WP .htaccess and try again, that will prove if it’s that giving you the problem or not.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 5871
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.
Contact:

Re: Can't upgrade from 3.2.5 to latest, manual update?

Post by thecoalman »

Mick wrote: Wed Jul 27, 2022 10:25 am As such there should be no interaction between WP & phpBB. .
Worpress or whatever is typically installed in the root and since it does "pretty URL's" any URL can be handled by it.

What you can also try is adding rules to WP .htaccess to ignore forum/, Untested:


Code: Select all

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteCond %{REQUEST_URI} "/forum/" 
RewriteRule (.*) $1 [L]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
jerrry
Registered User
Posts: 53
Joined: Mon Jan 02, 2006 9:40 pm

Re: Can't upgrade from 3.2.5 to latest, manual update?

Post by jerrry »

Thanks for your support, I will try it next week and let you know :-)
jerrry
Registered User
Posts: 53
Joined: Mon Jan 02, 2006 9:40 pm

Re: Can't upgrade from 3.2.5 to latest, manual update?

Post by jerrry »

Hello again, I've tested this edit for WP's .htaccess file, but without any changes. Is there any way how to execute manualy DB upgrade, for example commands for mysql admin? Or if I create my own .php file with exact (copied) commands for update database? :-)
User avatar
janus_zonstraal
Registered User
Posts: 6418
Joined: Sat Aug 30, 2014 1:30 pm

Re: Can't upgrade from 3.2.5 to latest, manual update?

Post by janus_zonstraal »

Try to rename the wp htaccess .
Sorry! My English is bat ;) !!!
User avatar
warmweer
Jr. Extension Validator
Posts: 11234
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium
Contact:

Re: Can't upgrade from 3.2.5 to latest, manual update?

Post by warmweer »

If your board was working normally and it's only the update which doesn't start: a quick solution would be to upgrade your board using a personal webserver.
Once upgraded, take a database backup, and then restore that to your live board (which already has the 3.3.8 files).

Another way (perhaps try that first) would be upgrade using CLI

Since you've previously tried to upgrade, you might need to remove the following files from the server:
store/install_config.php
store/io_lock.lock
also delete /installer and /production from /cache

Code: Select all

php bin/phpbbcli.php -vvv db:migrate  --safe-mode
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
Post Reply

Return to “[3.2.x] Support Forum”