phpBB

For topics beyond KeyHelp. / Für Themen jenseits von KeyHelp.
Post Reply
User avatar
24unix
Posts: 1560
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

phpBB

Post by 24unix »

Nutzt hier jemand phpBB (normal installiert, mit den Apps auf KeyHelp habe ich noch keine Erfahrung)?

Mir war das Update nach Anleitung bei phpBB.com immer viel zu umständlich, hatte dann ein Script geschrieben, das jetzt noch mal überarbeitet.

Das Update ist nun ein Einzeiler:

Code: Select all

% ./update.php
Installed version: phpBB 3.3.5
Current Version: 3.3.7
Downloading phpBB-3.3.7.tar.bz2
Downloading language phpBB_lang_de-3.3.7.tar.bz2
Downloading language phpBB_lang_de_x_sie-3.3.7.tar.bz2
Do you want to proceed with the update now? (y/N): y
Disable Message set …
Board disabled …
Extensions state already stored. Remove extensions.txt if you wish to recreate it.
Stored styles state.
Disabled all styles except prosilver.
Moved the update in place.
Check file owner
You might need to perform 'chown -R tracer:www-data /home/users/tracer/www/rchelifan.org/'
prepare config.yml.
/home/users/tracer/www/rchelifan.org


       0/0   ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░    0%

      0/8   ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░    0%

      0/8   ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░    0%


      1/8   ▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░   12%

      0/8   ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░    0%


      2/8   ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░   25%

      0/8   ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░    0%


      3/8   ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░   37%

      0/8   ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░    0%


      4/8   ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░   50%

      0/8   ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░    0%


      5/8   ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░   62%

      0/8   ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░    0%


      6/8   ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░   75%

      0/8   ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░    0%


      7/8   ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░   87%

      0/8   ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░    0%


      8/8   ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓  100%


 [OK] The database update was successful.




      8/8   ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓  100%
             Update database

 [OK] The installer has finished successfully




      8/8   ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓  100%
             Update database

      8/8   ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓  100%
             Update database
The database has been updated
Board reenabled …
Enable extensions: .......................done.
Enable styles: ....done.
Your board should now be up and running.
Gibt es hier Leute, die da Interesse dran haben?

Code ist hier: https://git.24unix.net/tracer/phpbb_updates

Einizges Problem (noch): Nach dem Durchlauf muss man einmal manuell den Cache leeren, das fixe ich diese Woche noch …
mfg Micha
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
User avatar
max78
Posts: 53
Joined: Fri 21. Feb 2020, 16:54

Re: phpBB

Post by max78 »

Super, vielen Dank für deine Arbeit. ;)
User avatar
24unix
Posts: 1560
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

Re: phpBB

Post by 24unix »

Danke für das feedback.

Läuft es ohne Probleme?

Die aktuelle Version läuft nur unter KeyHelp mit installiertem phpBB 8.1 oder mit einem Symlink von php 8.1 auf /usr/bin/keyhelp-php81.

Da will ich noch eine schönere Lösung finden.
mfg Micha
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
User avatar
max78
Posts: 53
Joined: Fri 21. Feb 2020, 16:54

Re: phpBB

Post by max78 »

Habe es bisher noch nicht getestet, da die Installation aktuell ist. Werde es allerdings gerne testen, da es sicher ein wenig zeit spart :-)
User avatar
24unix
Posts: 1560
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

Re: phpBB

Post by 24unix »

Ich habe es jetzt auf drei Live-Systemen getestet.

Eine Zeile eingeben, dann ca. 1 Minute, je nachdem wie lange der Download dauert. Datenbanken rattern durch, das war es.

Ich werde noch eine Änderung machen, und zwar erwartet das Teil dann /usr/local/bin/php81 auf dem System.
Den als Symlink anlegen, bei einem KeyHelp-System auf /usr/bin/keyhelp-php81.
Eine bessere Lösung ist mir noch nicht eingefallen.
Bei KeyHelp kann man kein normales 8.1 installieren.

Man kann es zwar mit php update.php aufrufen, wenn der default CLI-interpreter 8.1 ist, aber den Shebang für den Aufruf via ./update.php muss ich hardcodieren.
mfg Micha
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
User avatar
24unix
Posts: 1560
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

Re: phpBB

Post by 24unix »

Ich habe heute eine bug festgestellt.
Wenn man das Update fahren will, deutsche Sprachpakete hat, die aber noch nicht in der aktuellen Version verfügbar sind steigt das Update mit einem Fehler aus und hinterlässt das Bord im Wartungsmodus.

Werde ich morgen fixen.

Edit:

Bugfix: https://git.24unix.net/tracer/phpbb_updates/releases
mfg Micha
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
marco
Posts: 198
Joined: Thu 26. Oct 2017, 18:23

Re: phpBB

Post by marco »

Wo muss man denn die Dateien hin machen und mit welchem User wird es denn ausgeführt? Wenn ich es per ssh starte dann wird es ja als root ausgeführt oder nicht?
User avatar
24unix
Posts: 1560
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

Re: phpBB

Post by 24unix »

marco wrote: Sun 10. Jul 2022, 15:04 Wo muss man denn die Dateien hin machen und mit welchem User wird es denn ausgeführt? Wenn ich es per ssh starte dann wird es ja als root ausgeführt oder nicht?
Im phpBB root das Git clonen, und dann, wenn möglich mit dem User einloggen, dem das Forum gehört.

Also su - <forenuser>

Wenn der keinen Shell-Zugang hat kannst Du das ganze auch als root machen, solltest aber danach präventiv ein chown -R <forenuser>:www-data machen.
mfg Micha
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
User avatar
24unix
Posts: 1560
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

Re: phpBB

Post by 24unix »

Das sind solche Stümper …

Ich weiß nicht, was die gezaubert haben, aber sie haben es verkackt.

Heute drei Boards aktualisiert. Eins, was ewig ohne Probleme mit 8.2 lief geht nach dem Update nicht mehr:

Code: Select all

[Wed Feb 07 20:12:50.365712 2024] [proxy_fcgi:error] [pid 2692338:tid 140465361909504] [remote 2a03:7847::xx::50269] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to protected method phpbb\\di\\container_builder::get_cache_dir() from global scope in /home/users/tracer/www/rchelifan.org/common.php:119\nStack trace:\n#0 /home/users/tracer/www/rchelifan
Ich habe auch gar keine Lust, mich damit auseinanderzusetzen, ein Downgrade auf 7.4 hat geholfen, aber die Methode ist public:

Code: Select all

        /**
         * Returns the path to the cache directory (default: root_path/cache/environment).
         *
         * @return string Path to the cache directory.
         */
        public function get_cache_dir()
        {
                return $this->cache_dir ?: $this->phpbb_root_path . 'cache/' . $this->get_environment() . '/';
        }
Ich sag nur so viel:

Code: Select all

grep symfony composer.json
		"symfony/config": "~3.4",
		"symfony/console": "~3.4",
		"symfony/debug": "~3.4",
		"symfony/dependency-injection": "~3.4",
		"symfony/event-dispatcher": "~3.4",
		"symfony/filesystem": "~3.4",
		"symfony/finder": "~3.4",
		"symfony/http-foundation": "~3.4",
		"symfony/http-kernel": "~3.4",
		"symfony/polyfill-intl-normalizer": "^1.23",
		"symfony/polyfill-mbstring": "^1.23",
		"symfony/polyfill-php72": "^1.23",
		"symfony/process": "^3.4",
		"symfony/proxy-manager-bridge": "~3.4",
		"symfony/routing": "~3.4",
		"symfony/twig-bridge": "~3.4",
		"symfony/yaml": "~3.4",
		"symfony/browser-kit": "~3.4",
		"symfony/css-selector": "~3.4",
		"symfony/dom-crawler": "~3.4"
		
SCR-20240207-rrta.png
Dabei ist symfony so leicht updatebar. Ich habe heute erst ne Kiste von 6.4 auf 7.0.3 gebracht.

Also, langer Rede, kurzer Sinn: Wer nach dem Update auf 3.3.11 Probleme hat, mit ne PHP-Version aus dem Mittelalter aktivieren.
mfg Micha
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
Post Reply