Petter
Trusted Members-
Posts
58 -
Joined
-
Last visited
-
Days Won
5
Petter last won the day on November 23
Petter had the most liked content!
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Petter's Achievements
-
https://forum.thirtybees.com/topic/8884-update-juurino-demo-now-on-php-86-—-patches-and-config-shared-on-github/
-
Hi all, Picking up where I left off in the performance testing thread: the juuri.no demo store that was running thirty bees 1.7.0 on PHP 8.3 on an Orange Pi 5 has now been migrated to PHP 8.6.0 -- the latest PHP stable, released a week ago. The site is running clean (zero deprecations, zero warnings under load), still passing a perfect Lighthouse 100/100/100/100 on desktop, and the full upgrade process plus all patches are documented on GitHub: https://github.com/petter5/orangepi5-config What was needed to get thirty bees 1.7.0 running clean on PHP 8.6 Five small core/module patches (10-30 lines each), plus bumping Smarty and Guzzle to current versions. All patches are backwards compatible to PHP 7.4 -- i.e. safe to apply even if you stay on 8.3. Core (thirtybees/thirtybees) classes/db/Db.php -- PHP 8.5 moved PDO::MYSQL_ATTR_* to the Pdo\Mysql namespace. The old constants trigger a deprecation on every DB connection. Patch uses class_exists('\Pdo\Mysql', false) so PHP 8.3 and older keep working with the old constants. classes/Dispatcher.php -- a $routeId variable could be null when used as an array offset. PHP 8.6 deprecates null array offsets. Fix moves the existing trim($routeId ?? '') line up before the isset check. classes/Customer.php -- same pattern in Customer::getGroupsStatic($idCustomer). Added a one-line $idCustomer = (int) $idCustomer at function entry. Modules thirtybees/blockbestsellers -- three (double) casts replaced with (float). PHP 8.5 deprecated the (double) and (real) syntax. thirtybees/homeslider -- HomeSlide::__construct() had Context $context = null; PHP 8.4 deprecates implicit nullable, so changed to ?Context $context = null. Niara theme -- WCAG accessibility fixes Newsletter input field had color: #777777 on #121212 background -- contrast 4.18:1, below WCAG AA (4.5:1). Bumped to #c8c8c8 (11.20:1, AAA), added explicit ::placeholder rule. Newsletter template used value="Enter your e-mail" as a pseudo-placeholder -- anti-pattern that both triggers the contrast check and sends the placeholder text as an actual email if the user doesn't clear the field. Switched to HTML5 placeholder attribute. Blog post cards on the homepage used <h5> directly after an <h2> section heading -- skipping h3 and h4, which fails WCAG 1.3.1 (info and relationships). Changed to <h3>. Vendor bumps Standard composer update operations against the existing TB composer config: smarty/smarty: 4.4.1 -> 4.6.0 (fixes template-injection CVE in the {extends} cache path from 4.5.8, adds PHP 8.4-8.6 support) guzzlehttp/guzzle: 7.9.2 -> 7.17.0 (fixes 9 CVEs including host-bypass, cookie disclosure, silent HTTPS-to-cleartext proxy downgrade) guzzlehttp/psr7: 2.7.0 -> 2.13.6 (fixes 4 CVEs including CRLF injection in start-line and URI host) After the bumps: composer audit -> "No security vulnerability advisories found". Verified clean on PHP 8.3.37 (previous production) PHP 8.4.28 (parallel test stack) PHP 8.6.0 (current production) Test method: full crawl of 41 routes on each stack (home, categories, products, cart POST, admin login, API, contact form, etc.) with aggressive error_reporting, zero cache, and a warm 100-request parallel load test. Under PHP 8.6 after patches: 0 deprecations, 0 warnings, 0 errors, 0 fatals. Everything is on GitHub The repo contains: patches/ -- 10 unified-diff patches, ready to git apply in each target thirty bees repo. One PR per module/theme/core. thirtybees/themes/niara/ -- full drop-in file copies of the modified Niara theme files for users who prefer s wapping files over patches. nginx/, php/, mariadb/, unattended-upgrades/ -- sanitized configuration templates. Placeholders (example.com, yoursite) make them easy to adapt to any site. docs/deployment.md -- step-by-step for applying all of this to a standard thirty bees installation (not just Orange Pi). I'll be opening pull requests against the relevant thirty bees repos over the coming days, one at a time. If any maintainer wants to review or has concerns before I do, grab me here or in the GitHub discussions on the orangepi5-config repo. Still relevant from the original thread Orange Pi 5 (8GB NVMe, ~$80 hardware) peaks at ~93 000 req/sec through nginx fastcgi_cache with wrk -t8 -c200 on juuri.no -- details and benchmarks still accurate in nginx-thirtybees-oppsett.md. PHP-FPM worker count, OPcache size, MariaDB buffer pool tuning: all in the repo. CrowdSec + unattended-upgrades for security, Debian-security-only to avoid auto-restarting Immich/thirty bees stacks. Happy to answer questions. The best part of the move to 8.6 isn't the speed -- the site was already fast -- it's that the stack is now clean through the next major PHP release cycle (8.6 EOL is November 2029), with composer audit showing a clean bill of health. Cheers, Petter
-
- 1
-
-
PHP8. 3 is end of life in one week, any realistic plans for PHP8.4 support ?
-
I have set up a test site, just to demonstrate Thirtybees running a demo shop with 500 demo products. The site is running Thirybees on Orangepi 5, 8gb with M.2 ssd nginx-1.31.4 and also HTTP/3 - Quite impressing performance in a tiny Armboard. https://juuri.no/
-
Just a cheap KingSpec 128GB M.2 NVMe SSD
-
https://mship.no running in catalog mode, migrated from Prestashop 1.6-24. Running Debian Trixie. NGINX / HTTP/3
-
Optimized configuration for Thirtybees on Orangepi 5 , using Brotli compression: orangepi5config Nginx configuration and documentation for thirty bees e-commerce store on Orange Pi 5. Testing done with 500 test products in database. Hardware Component Specification Machine Orange Pi 5 RAM 8GB Storage NVMe OS Armbian 26.2.0 Bookworm (Debian 12, aarch64) Stack Component Version / Details Nginx 1,31.2 (recompiled with ngx_brotli) PHP 8.3-FPM, 24 workers Database MariaDB, 256MB indob_buffer_pool Cache fastcgi_cache (1GB RAM) + Valkey/Redis Compression Brotli + Gzip Opcache 256MB HTTP/3 Ready in binary, activated in production Performance Apache Benchmark — ab -n 10000 -c 100 -k Configuration Req/sec Latency Failed Baseline (no cache) 271 176ms 0 fastcgi_cache 8 025 12.5ms 0 fastcgi_cache + Brotli 9 630 10.4ms 0 Optimized for 8GB 10 593 9.4ms 0
-
orangepi5-thirtybees-setup.md orangepi5-thirtybees-setup.md
-
ab -n 10000 -c 100 -k https/XXXX.XX/index.php 2>&1 | grep "Requests per second\|Time per request\|Failed" Failed requests: 0 Requests per second: 8402.12 [#/sec] (mean) Time per request: 11.902 [ms] (mean) Time per request: 0.119 [ms] (mean, across all concurrent requests) root@orangepi5:/var/www/thirtybees# 8400 requests per second at 100 concurrent users with zero failures! That's an absolutely remarkable result for an ~$80 ARM board. To put it in perspective: 8400 req/s — would handle massive traffic spikes 0.119ms per request across concurrent users Zero failed requests Pure nginx serving from memory cache, no PHP, no database This Orange Pi 5 with NVMe + nginx fastcgi_cache could handle a serious production thirtybees store. Most small/medium e-commerce sites see maybe 10-50 req/s peak traffic. Final stack summary: ✅ Nginx 1.29 with fastcgi_cache ✅ PHP 8.3-FPM (80 workers) ✅ MariaDB with 2GB buffer pool ✅ Valkey (Redis-compatible) for DB query cache ✅ Thirtybees page cache as fallback ✅ OPcache enabled noatime — in fstab with commit=600 (batches writes every 600 seconds) zram swap — running with 3.9GB lzo-rle compressed swap zram /var/log — logs are in RAM (50MB), reducing disk writes cat /etc/os-release uname -a PRETTY_NAME="Armbian 26.2.0-trunk.811 bookworm" NAME="Debian GNU/Linux" VERSION_ID="12" VERSION="12 (bookworm)" VERSION_CODENAME=bookworm ID=debian HOME_URL="https://www.armbian.com/" SUPPORT_URL="https://forum.armbian.com" BUG_REPORT_URL="https://www.armbian.com/bugs" ARMBIAN_PRETTY_NAME="Armbian 26.2.0-trunk.811 bookworm" Linux orangepi5 6.1.115-vendor-rk35xx #1 SMP Sat Apr 25 16:15:42 UTC 2026 aarch64 GNU/Linux root@orangepi5:/var/www/thirtybees#
-
Hi! Are there any experienced Thiry bees developers here who can undertake paid work with upgrading to Thirybees from Prestasop 1.6.24?
-
Quite good results using pagespeed insights for checking this site https://pagespeed.web.dev/analysis/https-www-promopro-se-101793-elektronik-mobil/ubrwmy844p?form_factor=mobile
-
I'm using Nginx and Nginx do not use .htaccess file. Can't the same be done using fail2ban ?
-
mod_xx mostly refers Apache. I normally use Nginx and have very good experience using https, brotli and pagespeed so my recommendation will be to combine these three. I think brotli will do the compression for you so you don't need mod_deflate,,,, but I might be wrong. mod_http2 mod_brotli mod_pagespeed
-
Can Google Ads webhook integration be done with Thirtybees ? Google: Set up a webhook integration for a lead form extension
-
When testing a default installation of Thirty Bees, using Google Chrome Lighthouse, there are 9 warnings regarding Trust and safety: [email protected] - 5 medium Vulnerabilities [email protected] - 4 medium Vulnerabilities. Please see attached screenshot. Any recomandations ?