如何在 Ubuntu 22.04 LTS 上安装 WebERP

Linux命令 Edge插件网 1年前 (2023-09-18) 376次浏览 已收录 0个评论

WebERP是一个强大的开源基于Web的会计和业务管理系统,可以为各种规模的企业简化财务和运营流程。

如何在 Ubuntu 22.04 LTS 上安装 WebERP

在 Ubuntu 22.04 LTS Jammy Jellyfish 上安装 WebERP

第 1 步。首先,通过在终端中运行以下命令,确保所有系统软件包都是最新的。apt

<span class="pln">sudo apt update
sudo apt upgrade</span>

第 2 步。安装 LAMP 堆栈。

LAMP堆栈(Linux,Apache,MariaDB,PHP)为运行WebERP提供了基础。让我们逐步设置它:

  • 安装阿帕奇:
<span class="pln">sudo apt update
sudo apt install apache2</span>
  • 安装 MariaDB:
<span class="pln">sudo apt install mysql</span><span class="pun">-</span><span class="pln">server</span>

在安装过程中,系统将提示您设置 MySQL 根密码。确保它坚固且安全。

  • 安装 PHP:
<span class="pln">sudo apt install php libapache2</span><span class="pun">-</span><span class="pln">mod</span><span class="pun">-</span><span class="pln">php php</span><span class="pun">-</span><span class="pln">mysql</span>

第 3 步。在 Ubuntu 22.04 上安装 WebERP

前往官方网站WebERP网站并下载最新版本。您可以使用以下命令直接在服务器上执行此操作:wget

<span class="pln">cd </span><span class="pun">/</span><span class="kwd">var</span><span class="pun">/</span><span class="pln">www</span><span class="pun">/</span><span class="pln">html
sudo wget https</span><span class="pun">:</span><span class="com">//sourceforge.net/projects/web-erp/files/webERP4.16.zip</span>

解压缩包:

<span class="pln">sudo unzip webERP4</span><span class="pun">.</span><span class="lit">16.zip</span>

为方便起见,重命名 WebERP 目录:

<span class="pln">sudo mv webERP</span><span class="pun">-</span><span class="lit">4.16</span><span class="pun">/</span><span class="pln"> weberp</span>

第 4 步。创建一个 MariaDB 数据库。

以根用户身份登录 MariaDB:

<span class="pln">mysql </span><span class="pun">-</span><span class="pln">u root </span><span class="pun">-</span><span class="pln">p</span>

为 WebERP 创建一个新数据库:

<span class="typ">MariaDB</span> <span class="pun">[(</span><span class="pln">none</span><span class="pun">)]></span><span class="pln"> CREATE DATABASE weberpdb</span><span class="pun">;</span> 
<span class="typ">MariaDB</span> <span class="pun">[(</span><span class="pln">none</span><span class="pun">)]></span><span class="pln"> CREATE USER </span><span class="str">'weberpuser'</span><span class="pun">@</span><span class="str">'localhost'</span><span class="pln"> IDENTIFIED BY </span><span class="str">'your-strong-password'</span><span class="pun">;</span> 
<span class="typ">MariaDB</span> <span class="pun">[(</span><span class="pln">none</span><span class="pun">)]></span><span class="pln"> GRANT ALL PRIVILEGES ON weberpdb</span><span class="pun">.*</span><span class="pln"> TO </span><span class="str">'weberpuser'</span><span class="pun">@</span><span class="str">'localhost'</span><span class="pun">;</span> 
<span class="typ">MariaDB</span> <span class="pun">[(</span><span class="pln">none</span><span class="pun">)]></span><span class="pln"> FLUSH PRIVILEGES</span><span class="pun">;</span> 
<span class="typ">MariaDB</span> <span class="pun">[(</span><span class="pln">none</span><span class="pun">)]></span><span class="pln"> EXIT</span>

第5步。配置阿帕奇。

为 WebERP 创建虚拟主机配置:

<span class="pln">sudo nano </span><span class="pun">/</span><span class="pln">etc</span><span class="pun">/</span><span class="pln">apache2</span><span class="pun">/</span><span class="pln">sites</span><span class="pun">-</span><span class="pln">available</span><span class="pun">/</span><span class="pln">weberp</span><span class="pun">.</span><span class="pln">conf</span>

添加以下内容,根据需要调整路径和域名:

<span class="tag"><VirtualHost</span><span class="pln"> *:80</span><span class="tag">></span><span class="pln">
ServerAdmin webmaster@example.com
DocumentRoot /var/www/html/weberp
ServerName yourdomain.com
ServerAlias www.yourdomain.com

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

</span><span class="tag"><Directory</span> <span class="pun">/</span><span class="atn">var</span><span class="pun">/</span><span class="atn">www</span><span class="pun">/</span><span class="atn">html</span><span class="pun">/</span><span class="atn">weberp</span><span class="tag">></span><span class="pln">
Options FollowSymLinks
AllowOverride All
Require all granted
</span><span class="tag"></Directory></span>
<span class="tag"></VirtualHost></span>

启用虚拟主机并禁用默认配置:

<span class="pln">sudo a2ensite weberp</span><span class="pun">.</span><span class="pln">conf
sudo a2dissite </span><span class="lit">000</span><span class="pun">-</span><span class="kwd">default</span><span class="pun">.</span><span class="pln">conf</span>

第 6 步。使用“让我们加密”启用 SSL。

使用“让我们加密”使用SSL保护您的WebERP安装:

<span class="pln">sudo apt install certbot python3</span><span class="pun">-</span><span class="pln">certbot</span><span class="pun">-</span><span class="pln">apache</span>

运行 Certbot 以获取和配置域的 SSL 证书:

<span class="pln">sudo certbot </span><span class="pun">--</span><span class="pln">apache</span>

按照提示操作,Certbot 将自动配置 Apache 以使用 SSL。

步骤 7.通过HTTPS访问WebERP。

打开 Web 浏览器并导航到 。您现在应该与 WebERP 实例建立了安全连接。https://yourdomain.com

感谢您使用本教程在 Ubuntu 系统上安装 WebERP。有关其他帮助或有用信息,我们建议您查看官方网站WebERP网站


Edge插件网 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:如何在 Ubuntu 22.04 LTS 上安装 WebERP
喜欢 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址