Upgrade from 2.9.9 to 2.9.13 and to 3.2x

All about webserver configurations, PHP and databases.

Moderator: Thorsten

Post Reply
clemenz
Posts: 8
Joined: Fri Oct 06, 2023 2:50 pm

Upgrade from 2.9.9 to 2.9.13 and to 3.2x

Post by clemenz »

I upgraded from 2.9.9 to 2.9.13, which worked.
But then I can't get any further.
If I have 3.0.0. or 3.0.1, the entire page will no longer be accessed.
Neither does /setup/update.php

What do I have to do to get the current version?
I'm thinking first on version 3.x and then on the current 3.2.x, right?

But where did I get the error?
Thorsten
Posts: 15565
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Upgrade from 2.9.9 to 2.9.13 and to 3.2x

Post by Thorsten »

Hi,

you have to update from 2.9.13 to 3.1 first.

Which error do you get? Did you update PHP to at least PHP 7.4?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
clemenz
Posts: 8
Joined: Fri Oct 06, 2023 2:50 pm

Re: Upgrade from 2.9.9 to 2.9.13 and to 3.2x

Post by clemenz »

Yes PHP is 7.4.X
I will try to upgrade from 2.9.13 to 3.1.
Thank you in advance.
clemenz
Posts: 8
Joined: Fri Oct 06, 2023 2:50 pm

Re: Upgrade from 2.9.9 to 2.9.13 and to 3.2x

Post by clemenz »

Unfortunately it didn't work.
This message comes.




Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.
Thorsten
Posts: 15565
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Upgrade from 2.9.9 to 2.9.13 and to 3.2x

Post by Thorsten »

Hi,

when does this message occur?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
clemenz
Posts: 8
Joined: Fri Oct 06, 2023 2:50 pm

Re: Upgrade from 2.9.9 to 2.9.13 and to 3.2x

Post by clemenz »

I transferred all files from version 3.1.0 and overwrote all from 2.9.13.

Then I wanted to start the setup.
/setup/update.php

And then the message came on a white browser window.

When I access the homepage itself I get the same message:
Thorsten
Posts: 15565
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Upgrade from 2.9.9 to 2.9.13 and to 3.2x

Post by Thorsten »

Hi,

please enable the debug mode in src/Bootstrap.php to get more errors.

Thanks in advance!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
clemenz
Posts: 8
Joined: Fri Oct 06, 2023 2:50 pm

Re: Upgrade from 2.9.9 to 2.9.13 and to 3.2x

Post by clemenz »

So it's already activated, that's true, right?
Then I didn't have to change anything.


// Debug mode:
// - false debug mode disabled
// - true debug mode enabled
const DEBUG = true;



This comes via the error log of the web server.


[Sun Oct 08 08:38:34.316945 2023] [ssl:warn] [pid 2227:tid 140084853675904] AH01909: download.MeineDomain.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Oct 08 08:38:35.567002 2023] [core:alert] [pid 1527643:tid 140084368103104] [client 2003:e6:471e:0:e095:fb3e:fa98:95be:52865] /var/www/pweb5/htdocs/faq-online-fragesystem/.htaccess: Option FollowSymlinks not allowed here
[Sun Oct 08 08:38:35.699204 2023] [core:alert] [pid 1527643:tid 140084351317696] [client 2003:e6:471e:0:e095:fb3e:fa98:95be:52866] /var/www/pweb5/htdocs/faq-online-fragesystem/.htaccess: Option FollowSymlinks not allowed here, referer: http://faq.MeineDomain.com/
Thorsten
Posts: 15565
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Upgrade from 2.9.9 to 2.9.13 and to 3.2x

Post by Thorsten »

Hi,

the

Code: Select all

+FollowSymlinks
isn't allowed on your machine, that's strange, because it was there in 2.9 as well.

https://github.com/thorsten/phpMyFAQ/bl ... access#L17

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
clemenz
Posts: 8
Joined: Fri Oct 06, 2023 2:50 pm

Re: Upgrade from 2.9.9 to 2.9.13 and to 3.2x

Post by clemenz »

OK, and how can I allow this?


This is already in my htaccess.


# @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
# @link https://www.phpmyfaq.de
# @since 2004-11-13

# always follow the symlinks
Options +FollowSymlinks -MultiViews -Indexes

# X-Frame-Options to prevent clickjacking
Header always append X-Frame-Options SAMEORIGIN
clemenz
Posts: 8
Joined: Fri Oct 06, 2023 2:50 pm

Re: Upgrade from 2.9.9 to 2.9.13 and to 3.2x

Post by clemenz »

This file is in version 2.9.13
_.htaccess

This is in version 3.1
.htaccess

So without the dash “_”.

If I now change the 3.1 from ".htaccess" to "_.htaccess", then this message comes up:
----------------------------

Uncaught exception: 'Error'

Message: 'Call to a member function fetch_assoc() on bool'

Stack trace:

#0 /var/www/pweb5/htdocs/faq-online-fragesystem/src/phpMyFAQ/Category.php(397): phpMyFAQ\Database\Mysqli->fetchArray(false)
#1 /var/www/pweb5/htdocs/faq-online-fragesystem/startpage.php(41): phpMyFAQ\Category->getHomeCategories()
#2 /var/www/pweb5/htdocs/faq-online-fragesystem/index.php(742): require('/var/www/pweb5/...')
#3 {main}
Thrown in '/var/www/pweb5/htdocs/faq-online-fragesystem/src/phpMyFAQ/Database/Mysqli.php' on line 132
Thorsten
Posts: 15565
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Upgrade from 2.9.9 to 2.9.13 and to 3.2x

Post by Thorsten »

Hi,

now you have to open the update with your browser and run the update.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
clemenz
Posts: 8
Joined: Fri Oct 06, 2023 2:50 pm

Re: Upgrade from 2.9.9 to 2.9.13 and to 3.2x

Post by clemenz »

Yes, thanks, that was it, the wrong name for the htaccess file.
I now have version 3.1 and have also installed version 3.2.1. Switched to PHP 8.1 and installed an update.
Thank you for the great support.
Thorsten
Posts: 15565
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Upgrade from 2.9.9 to 2.9.13 and to 3.2x

Post by Thorsten »

Awesome!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply