---
# System prepended metadata

title: joomla!安裝

---

# joomla!安裝
* 設定mariadb資料庫
`mysql -u root -p`
* 建立Joomla database和使用者
```
CREATE DATABASE joomladb;

CREATE USER joomlauser@localhost;

SET PASSWORD FOR joomlauser@localhost= PASSWORD("joomlapassword");
```

* 給予權限
```
GRANT ALL  ON `joomladb`.* TO `joomlauser`@`localhost` IDENTIFIED BY 'joomlapassword';
```
* 我遇到error 1574

處理很簡單
`mysql_upgrade -u root -p`
`service mysqld restart`
* 下載 Joomla
`wget https://downloads.joomla.org/zh/cms/joomla3/3-9-10/Joomla_3-9-10-Stable-Full_Package.zip`

* 創建 Joomla 的安裝目錄
`mkdir /var/www/html/Joomla`

* 將下載的 Joomla 移動到上個步驟的目錄
`mv Joomla_3-9-10-Stable-Full_Package.zip /var/www/html/Joomla/`

* 切換到上述的目錄
`cd /var/www/html/Joomla/`
* 解壓縮 Joomla
`unzip Joomla_3-9-10-Stable-Full_Package.zip`
* 開瀏覽器http: ip/Joomla
![](https://i.imgur.com/yjdk2H8.jpg)
![](https://i.imgur.com/FI9SJzp.jpg)
