WebERP是一款功能強(qiáng)大的開源ERP系統(tǒng),在CentOS 8上安裝WebERP需要遵循正確的步驟。本文將詳細(xì)介紹安裝過(guò)程,確保您能順利部署WebERP系統(tǒng)。
更新系統(tǒng)
開始安裝前,建議更新CentOS 8系統(tǒng)至最新版本。使用以下命令進(jìn)行更新:
sudo dnf update -y
安裝LAMP環(huán)境
WebERP需要LAMP(Linux, Apache, MySQL, PHP)環(huán)境。按照以下步驟安裝各組件:
安裝Apache
sudo dnf install httpd -y
sudo systemctl start httpd
sudo systemctl enable httpd
安裝MySQL
sudo dnf install mysql-server -y
sudo systemctl start mysqld
sudo systemctl enable mysqld
sudo mysql_secure_installation
安裝PHP
sudo dnf install php php-mysqlnd php-json php-gd php-mbstring -y
sudo systemctl restart httpd
創(chuàng)建WebERP數(shù)據(jù)庫(kù)
登錄MySQL并創(chuàng)建WebERP所需的數(shù)據(jù)庫(kù):
mysql -u root -p
CREATE DATABASE weberp;
CREATE USER 'weberpuser'@'localhost' IDENTIFIED BY 'your_password';
GRANT ALL PRIVILEGES ON weberp.* TO 'weberpuser'@'localhost';
FLUSH PRIVILEGES;
EXIT;
下載并配置WebERP
下載WebERP源碼并解壓到Apache的根目錄:
cd /var/www/html
sudo wget https://sourceforge.net/projects/web-erp/files/latest/download -O weberp.zip
sudo unzip weberp.zip
sudo mv web-erp-4.xx weberp
sudo chown -R apache:apache weberp
配置Apache虛擬主機(jī)
創(chuàng)建WebERP的虛擬主機(jī)配置文件:
sudo nano /etc/httpd/conf.d/weberp.conf
添加以下內(nèi)容:
<VirtualHost *:80>
ServerName your_domain.com
DocumentRoot /var/www/html/weberp
<Directory /var/www/html/weberp>
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
完成安裝
重啟Apache服務(wù):
sudo systemctl restart httpd
在瀏覽器中訪問(wèn) http://your_domain.com/weberp 或 http://your_server_ip/weberp,按照WebERP安裝向?qū)瓿勺詈蟮呐渲貌襟E。
安全設(shè)置
安裝完成后,請(qǐng)及時(shí)刪除安裝文件并設(shè)置適當(dāng)?shù)奈募?quán)限,以增強(qiáng)系統(tǒng)安全性。
通過(guò)以上步驟,您應(yīng)該已經(jīng)成功在CentOS 8上安裝了WebERP。請(qǐng)記得定期更新系統(tǒng)和WebERP,以獲得最新的功能和安全補(bǔ)丁。