インストールガイド · 4 min read · Nov 10, 2025
CentOS 8にwebERPをインストールする方法

webERPは、無料でオープンソースの完全なウェブベースの会計およびビジネスマネジメントシステムです。webERPを使用するには、ウェブブラウザとPDFリーダーが必要です。webERPを使用すると、購入注文、ウェブストア、製造、販売、一般元帳、出荷など、多くのことを管理できます。これはPHPで書かれており、データベースバックエンドとしてMariaDBを使用しています。このチュートリアルでは、CentOS 8にApacheとLet’s Encrypt SSLを使用してwebERPをインストールする方法を示します。
前提条件
- CentOS 8を実行しているサーバー。
- サーバーIPにポイントされた有効なドメイン名。
- サーバーに設定されたrootパスワード。
LAMPサーバーのインストール
まず、次のコマンドを使用してApache、MariaDB、PHP、およびその他のPHP拡張機能をインストールします:
dnf install httpd mariadb-server php php-mysqli php-curl php-json php-cgi php-xmlrpc php-gd php-mbstring unzip -yすべてのパッケージがインストールされたら、次のコマンドを使用してApacheとMariaDBサービスを開始し、システム再起動時に自動的に開始するように設定します:
systemctl start httpd mariadb
systemctl enable httpd mariadb完了したら、次のステップに進むことができます。
MariaDBの設定
次に、MariaDBのrootパスワードを設定し、MariaDBのインストールを保護する必要があります。次のコマンドで行うことができます:
mysql_secure_installation以下のようにすべての質問に答えてください:
Enter current password for root (enter for none):
Set root password? [Y/n] Y
New password:
Re-enter new password:
Remove anonymous users? [Y/n] Y
Disallow root login remotely? [Y/n] Y
Remove test database and access to it? [Y/n] Y
Reload privilege tables now? [Y/n] Y
All done! If you've completed all of the above steps, your MariaDB
installation should now be secure.
Thanks for using MariaDB!次に、次のコマンドでMariaDBシェルにログインします:
mysql -u root -p接続したら、次のコマンドでwebERP用のデータベースとユーザーを作成します:
MariaDB [(none)]> create database weberp;
MariaDB [(none)]> create user weberp@localhost identified by 'password';次に、次のコマンドでwebERPデータベースにすべての権限を付与します:
MariaDB [(none)]> grant all privileges on weberp.* to weberp@localhost identified by 'password';次に、権限をフラッシュし、次のコマンドでMariaDBから退出します:
MariaDB [(none)]> flush privileges;
MariaDB [(none)]> exit;完了したら、次のステップに進むことができます。
webERPのインストール
まず、次のコマンドでwebERPの最新バージョンをダウンロードします:
wget https://sourceforge.net/projects/web-erp/files/webERP_4.15.zipダウンロードが完了したら、次のコマンドを使用してダウンロードしたファイルをApacheのウェブルートディレクトリに抽出します:
unzip webERP_4.15.zip -d /var/www/html次に、次のコマンドで適切な権限と所有権を設定します:
chown -R apache:apache /var/www/html/webERP
chmod -R 755 /var/www/html/webERP完了したら、次のステップに進むことができます。
webERPのためのApacheの設定
次に、webERPをホストするための新しいApache仮想ホスト設定ファイルを作成する必要があります。次のコマンドを使用して作成できます:
nano /etc/httpd/conf.d/weberp.conf以下の行を追加します:
ServerAdmin [email protected]
DocumentRoot /var/www/html/webERP
ServerName weberp.example.com
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
ErrorLog /var/log/httpd/weberp.org-error_log
CustomLog /var/log/httpd/weberp.org-access_log common
完了したら、ファイルを保存して閉じます。次に、次のコマンドでApacheサービスを再起動して変更を適用します:
systemctl restart httpd次のコマンドでApacheのステータスを確認します:
systemctl status httpd次の出力が得られるはずです:
? httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/httpd.service.d
??php-fpm.conf
Active: active (running) since Sat 2021-05-01 05:57:27 EDT; 13s ago
Docs: man:httpd.service(8)
Main PID: 4896 (httpd)
Status: "Running, listening on: port 80"
Tasks: 213 (limit: 25014)
Memory: 24.8M
CGroup: /system.slice/httpd.service
??4896 /usr/sbin/httpd -DFOREGROUND
??4898 /usr/sbin/httpd -DFOREGROUND
??4899 /usr/sbin/httpd -DFOREGROUND
??4900 /usr/sbin/httpd -DFOREGROUND
??4901 /usr/sbin/httpd -DFOREGROUND
May 01 05:57:27 centos8 systemd[1]: Stopped The Apache HTTP Server.
May 01 05:57:27 centos8 systemd[1]: Starting The Apache HTTP Server...この時点で、ApacheウェブサーバーはwebERPをホストするように設定されています。次のステップに進むことができます。
Let’s Encrypt SSLでwebERPを保護する
次に、webERPのためにLet’s Encrypt SSLをインストールするためにCertbotクライアントをインストールする必要があります。次のコマンドでインストールできます:
dnf install letsencrypt python3-certbot-apache次に、次のコマンドでドメインのSSL証明書を取得してインストールします:
certbot --apache -d weberp.example.comメールアドレスを提供し、利用規約に同意するように求められます:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Enter email address (used for urgent renewal and security notices)
(Enter 'c' to cancel): [email protected]
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must
agree in order to register with the ACME server. Do you agree?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: Y
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Would you be willing, once your first certificate is successfully issued,
to share your email address with the Electronic Frontier Foundation, a founding
partner of the Let's Encrypt project and the non-profit organization that
develops Certbot? We'd like to send you email about our work encrypting the web,
EFF news, campaigns, and ways to support digital freedom.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: Y
Account registered.
Requesting a certificate for weberp.example.com
Performing the following challenges:
http-01 challenge for weberp.example.com
Waiting for verification.
Cleaning up challenges
Deploying Certificate to VirtualHost /etc/httpd/conf.d/weberp.conf
Redirecting all traffic on port 80 to ssl in /etc/httpd/conf.d/weberp.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Congratulations! You have successfully enabled https://weberp.example.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Subscribe to the EFF mailing list (email: [email protected]).
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/weberp.example.com/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/weberp.example.com/privkey.pem
Your certificate will expire on 2021-06-09. To obtain a new or
tweaked version of this certificate in the future, simply run
certbot again with the "certonly" option. To non-interactively
renew *all* of your certificates, run "certbot renew"
- If you like Certbot, please consider supporting our work by:
Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-leこれで、URL https://weberp.example.comを使用して安全にウェブサイトにアクセスできます。
ファイアウォールの設定
次に、ファイアウォールを通過するポート80と443を許可する必要があります。次のコマンドで許可できます:
firebase-cmd --permanent --add-service=http
firebase-cmd --permanent --add-service=https次に、次のコマンドでファイアウォールを再読み込みして変更を適用します:
firebase-cmd --reloadwebERPウェブインターフェースにアクセス
今、ウェブブラウザを開いて、URL https://weberp.example.comを使用してwebERPウェブインターフェースにアクセスします。次のページが表示されるはずです:

言語を選択し、次のステップをクリックします。次のページが表示されるはずです:

データベース名、ユーザー、パスワードを提供し、次のステップをクリックします。次のページが表示されるはずです:


会社名、タイムゾーン、管理者ユーザー名、パスワードを提供し、インストールボタンをクリックします。インストールが完了すると、次のページが表示されるはずです:

管理者ユーザー名、パスワードを提供し、ログインボタンをクリックします。webERPダッシュボードにリダイレクトされます:

結論
おめでとうございます!CentOS 8にApacheとLet’s Encrypt SSLを使用してwebERPを正常にインストールしました。これで、webERPのさらなる機能を探索し、プロダクション環境に実装できます。
新しい投稿を受信箱で受け取る
スパムはありません。いつでも購読を解除できます。