Skip to content

Commit 5c129b9

Browse files
committed
Update
1 parent bea0754 commit 5c129b9

File tree

2 files changed

+13
-36
lines changed

2 files changed

+13
-36
lines changed

technology/server/server-setup.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ sudo apt install -y \
5454
python3-pip \
5555
python3-venv
5656

57+
# sudo apt install -y composer
58+
5759
# sudo apt install -y \
5860
# docker.io \
5961
# docker-compose
@@ -434,6 +436,11 @@ Now "Create Virtual Server".
434436

435437
[Configuring Multiple PHP Versions](https://www.virtualmin.com/docs/server-components/configuring-multiple-php-versions/)
436438

439+
```.sh
440+
php_version_current="8.4"
441+
sudo apt install php${php_version_current}-sqlite3
442+
```
443+
437444
```.sh
438445
# Remove older PHP Versions
439446
php_version_old="8.3"
@@ -442,11 +449,6 @@ sudo apt autoremove
442449
sudo apt clean
443450
```
444451

445-
```.sh
446-
php_version_current="8.4"
447-
sudo apt install php${php_version_current}-sqlite3
448-
```
449-
450452
### Packages
451453

452454
```.sh
@@ -1063,7 +1065,7 @@ pm.process_idle_timeout = 10s
10631065
# touch /home/$domain/logs/php_slow.log
10641066
# chown $system_user:$system_user /home/$domain/logs/php_slow.log
10651067
# chmod 664 /home/$domain/logs/php_slow.log
1066-
# sudo systemctl restart php8.3-fpm
1068+
# sudo systemctl restart php8.4-fpm
10671069
```
10681070

10691071
### SSL Certificate

technology/web-development/wordpress/woocommerce/woocommerce-shipping-box-best-fit.php

Lines changed: 5 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
// WooCommerce - Selects the best-fitting shipping box using BoxPacker (https://github.com/dvdoug/BoxPacker) for a WooCommerce order based on item dimensions and weight, and displays this information in the order details
4-
// Last update: 2025-09-28
4+
// Last update: 2025-12-27
55

66

77
// Add best package fit inside WooCommerce orders using a custom field - run action once (run on WP Console)
@@ -20,35 +20,10 @@
2020
// }
2121

2222

23-
// Requires BoxPacker 4.1.1 (https://github.com/dvdoug/BoxPacker) to be installed in the "wp-content" folder (no Composer needed)
24-
require_once WP_CONTENT_DIR . '/boxpacker/src/Box.php';
25-
require_once WP_CONTENT_DIR . '/boxpacker/src/BoxList.php';
26-
require_once WP_CONTENT_DIR . '/boxpacker/src/BoxSorter.php';
27-
require_once WP_CONTENT_DIR . '/boxpacker/src/DefaultBoxSorter.php';
28-
require_once WP_CONTENT_DIR . '/boxpacker/src/Item.php';
29-
require_once WP_CONTENT_DIR . '/boxpacker/src/ItemList.php';
30-
require_once WP_CONTENT_DIR . '/boxpacker/src/ItemSorter.php';
31-
require_once WP_CONTENT_DIR . '/boxpacker/src/DefaultItemSorter.php';
32-
require_once WP_CONTENT_DIR . '/boxpacker/src/LayerPacker.php';
33-
require_once WP_CONTENT_DIR . '/boxpacker/src/LayerStabiliser.php';
34-
require_once WP_CONTENT_DIR . '/boxpacker/src/OrientatedItem.php';
35-
require_once WP_CONTENT_DIR . '/boxpacker/src/OrientatedItemFactory.php';
36-
require_once WP_CONTENT_DIR . '/boxpacker/src/OrientatedItemSorter.php';
37-
require_once WP_CONTENT_DIR . '/boxpacker/src/PackedBox.php';
38-
require_once WP_CONTENT_DIR . '/boxpacker/src/PackedBoxList.php';
39-
require_once WP_CONTENT_DIR . '/boxpacker/src/PackedBoxSorter.php';
40-
require_once WP_CONTENT_DIR . '/boxpacker/src/DefaultPackedBoxSorter.php';
41-
require_once WP_CONTENT_DIR . '/boxpacker/src/PackedItem.php';
42-
require_once WP_CONTENT_DIR . '/boxpacker/src/PackedItemList.php';
43-
require_once WP_CONTENT_DIR . '/boxpacker/src/PackedLayer.php';
44-
require_once WP_CONTENT_DIR . '/boxpacker/src/Packer.php';
45-
require_once WP_CONTENT_DIR . '/boxpacker/src/Rotation.php';
46-
require_once WP_CONTENT_DIR . '/boxpacker/src/VolumePacker.php';
47-
require_once WP_CONTENT_DIR . '/boxpacker/src/WeightRedistributor.php';
48-
require_once WP_CONTENT_DIR . '/boxpacker/src/WorkingVolume.php';
49-
require_once WP_CONTENT_DIR . '/boxpacker/src/Exception/NoBoxesAvailableException.php';
50-
// require_once WP_CONTENT_DIR . '/boxpacker/tests/Test/TestBox.php';
51-
// require_once WP_CONTENT_DIR . '/boxpacker/tests/Test/TestItem.php';
23+
// Requires BoxPacker 4.1.1 (https://github.com/dvdoug/BoxPacker) installed via Composer:
24+
// cd /home/website.com/public_html/wp-content/
25+
// composer require dvdoug/boxpacker
26+
require_once WP_CONTENT_DIR . '/vendor/autoload.php';
5227

5328
use DVDoug\BoxPacker\Box;
5429
use DVDoug\BoxPacker\DefaultItemSorter;

0 commit comments

Comments
 (0)