install php8.3 for joomla 5 最精簡紀錄
以下實作是安裝在 Google Cloud VM instance Debian 12.
install php8.3 for joomla 5 最精簡紀錄
以下實作是安裝在 Google Cloud VM instance Debian 12.
先安裝最沒問題的 apache2 & mariadb
sudo apt install apache2 sudo apt install mariadb-server sudo systemctl status apache2
因Debian 12 apt內建的php太舊(可透過apt-cache show php 查詢新舊),所以增加第三方的DPA儲存庫
sudo apt install apt-transport-https sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg echo “deb https://packages.sury.org/php/ $(lsb_release -sc) main” | sudo tee /etc/apt/sources.list.d/php.list
更新一下apt
udo apt update sudo apt upgrade
開始安裝php8.3,這邊會直接安裝php8.3-fpm,apt會同時安裝相關需要的packages
sudo apt install php8.3-fpm
讓fpm在apache2上生效
sudo a2enmod proxy_fcgi setenvif sudo a2enconf php8.3-fpm sudo systemctl reload apache2
安裝joomla5會用到的其他packages,參考文件為:https://manual.joomla.org/docs/next/get-started/technical-requirements/
sudo apt install php8.3-gd php8.3-mbstring php8.3-xml php8.3-mysql
以上完成後,joomla5在apache2上第一個安裝頁面就可正常顯示,下面的package在joomla5設定時會跳出來說需要,安裝起來
sudo apt install php8.3-zip php8.3-intl
參考資料:https://www.kjnotes.com/devtools/82
Joomla5設定時,上面沒有談到的部分:
- 放置到www的joomla檔案,擁有者要設定正確,譬如 sudo chown -R www-data:www-data joomla5_folder
- mariadb需要開立一個空白的database讓Joomla5可以使用,可參考: https://www.howtoforge.com/how-to-install-joomla-on-debian-12/
메타데이터
- post_id
- 563f813cecbe
- slug
- install-php8-3-for-joomla-5-最精簡紀錄-563f813cecbe
- url
- https://medium.com/@bravesheng/install-php8-3-for-joomla-5-%E6%9C%80%E7%B2%BE%E7%B0%A1%E7%B4%80%E9%8C%84-563f813cecbe
- canonical_url
- https://medium.com/@bravesheng/install-php8-3-for-joomla-5-%E6%9C%80%E7%B2%BE%E7%B0%A1%E7%B4%80%E9%8C%84-563f813cecbe
- author_url
- https://medium.com/@bravesheng
- status
- ok
- fetched_at
- 2026-06-27 23:56:40