把 wordpress 用到的 php 弄到 8.2.x, 紀錄遇到的問題及解決方法
問題1:
Too few arguments to function WP_Widget::__construct(), 0 passed in /usr/share/nginx/html/wp-includes/class-wp-widget-factory.php on line 62 and at least 2 expected
11 月
15
問題1:
Too few arguments to function WP_Widget::__construct(), 0 passed in /usr/share/nginx/html/wp-includes/class-wp-widget-factory.php on line 62 and at least 2 expected
7 月
10
在 P 社, 曾利用 ansible + cobbler 弄了自動重灌, 但想把它 改為 shell script 直接處理, 結果差不多被我弄出來, 完成度大概 90%
6 月
4
維護 Debian 主機時, 常需要接 KVM/IPKVM, 但若 KVM/IPKVM 有這樣狀況, 無法讓 console 畫面顯示正常, 唯有更改解析度
5 月
7
5 月
7
4 月
21
雖然已經有 wordpress dockerhub offical image, 但就算用 alpine 版本, 差不多要 290MB, 真的覺得大了點
# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
php 7.4-fpm-alpine-cytseng.ibb.tw-custom 82b6ca953c77 2 hours ago 108MB
php 7.4-fpm-alpine-origin-custom 292aff464569 2 hours ago 49.5MB
wordpress php7.4-fpm-alpine 5ecc056e48e2 2 days ago 290MB
alpine 3.15 0ac33e5f5afa 2 weeks ago 5.57MB
我自己做的只要 108MB, 少了超過 150MB, 覺得很有成就感, 有需要的就自己撿去用
花了一些時間, 大概 2,3 天吧, 為了 wordpress 優化 php74-fpm docker container
直接把結果貼上來
2 月
1
原本在 github 就有好用的 awk script ipmitool
但不管 FreeBSD, Linux 都要再另外裝 gawk 才能正常運作, 所以就決定寫一個以 bourne shell script 弄一個萬用版本