chemex安裝
centos7.9 2009 mini
關閉selinux
sed -i '/SELINUX/s/enforcing/disabled/' /etc/selinux/config
setenforce 0
關閉firewall
systemctl stop firewalld.service
systemctl disable firewalld.service
修改mirrors到阿里云
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
yum makecache
安裝寶塔
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
進入寶塔頁面
安裝 php8.1 mysql8.0 nginx1.22 phpmyadmin5.2四個
php 安裝擴展 fileinfo和ldap
刪除禁用的函數 exec和symlink
網站-添加站點
image.png
數據庫
修改root密碼
添加數據庫
image.png
上傳chemex包到站點目錄
解壓
設置storage目錄權限
image.png
修改env
重命名.env.example為.env
修改
DB_DATABASE=chemex # 數據庫名稱
DB_USERNAME=chemex # 數據庫用戶名
DB_PASSWORD=chemex # 數據庫密碼
設置網站的運行目錄和偽靜態
站點運行目錄設置為/public,偽靜態選擇laravel5
終端進入/www/wwwroot/chemex目錄,執行安裝命令
php artisan chemex:install
http://192.168.8.133/