GNU/Linux >> Linux の 問題 >  >> Cent OS

DolibarrERPCRMをaCentOS7にインストールする方法

このステップバイステップのチュートリアルでは、 CentOS7VPSにDolibarrERPCRMをインストールする方法を紹介します。 Apache、PHP、PostgreSQLがインストールされています。 Dolibarrは、ビジネスオペレーションの管理に使用できるオープンソースのWebベースのERPおよびCRMソフトウェアです。
このチュートリアルは、CentOS 7 VPS用にテストおよび作成されていますが、RPMベースのLinuxディストリビューションで動作するはずです。


このチュートリアルの執筆時点では、Dolibarr ERP CRMの最新の安定バージョンは3.8.2であり、次のものが必要です。

  • ユーザーセッションが有効になっているPHP5.3以降。
  • Apache Web Server> =2.0は、mod_rewriteモジュールを使用してコンパイルされ、次のディレクティブが許可されています:RewriteEngine、RewriteBase、RewriteCond、およびRewriteRule。;
  • Linux VPSにインストールされているPostgreSQL、MariaDB、またはMySQL(MySQLバージョン5.5.40または5.5.51は使用しないでください)。

インストールから始めましょう。 http://www.dolibarr.orgで入手可能な最新バージョンのDolibarrをサーバーにダウンロードし、次のコマンドを使用して解凍します。

cd /var/www/html/
wget http://www.dolibarr.org/files/dolibarr.tgz
tar xvfz dolibarr.tgz
mv dolibarr-* dolibarr
chown -R apache:apache /var/www/html/dolibarr

PostgreSQLデータベースを使用するようにDollibarを構成するため、MariaDBが既にインストールされている場合は削除します。

yum remove mariadb*

PHP、Apache Webサーバー、およびその他の前提条件パッケージをインストールします。

yum install php php-common php-cli php-gd php-pgsql httpd sudo openssl mod_ssl

PostgreSQLのインストール:

yum install postgresql postgresql-server postgresql-libs

PostgreSQLをインストールしたら、PostgreSQLサービスを初めて開始する前にPostgreSQLデータベースを初期化する必要があります。

postgresql-setup initdb

「/var/lib/pgsql/data/pg_hba.conf」構成ファイルを編集します

vi /var/lib/pgsql/data/pg_hba.conf

変更:

local   all             all                                     peer
host    all             all             127.0.0.1/32            ident
host    all             all             ::1/128                 ident

宛先:

local   all             all                                     trust
host    all             all             127.0.0.1/32            trust
host    all             all             ::1/128                 trust

PostgreSQLを起動し、起動時に起動できるようにします:

systemctl start postgresql
systemctl enable postgresql

次に、コマンドラインから次のコマンドを実行します。

sudo -s -u postgres
createuser dolibarruser
psql -h localhost -d template1 -c "alter user postgres with password 'postgespAssW0Rd'"
psql -h localhost -d template1 -c "alter user dolibarruser with password 'Y0uRpAssW0Rd'"
psql
create database dolibarr encoding 'UTF8' owner dolibarruser;
exit

'postgespAssW0Rd'と'Y0uRpAssW0Rd'を変更し、'postgres'と'dolibarruser'PostgreSQLユーザーアカウントにそれぞれ強力なパスワードを使用することを忘れないでください。
'/var/lib/pgsql/data/pg_hba.confを編集してください'構成ファイル:

vi /var/lib/pgsql/data/pg_hba.conf

次の行を追加/変更します:

local   all             dolibarruser                            md5
local   all             postgres                                md5
host    all             all             127.0.0.1/32            ident
host    all             all             ::1/128                 ident

変更を有効にするには、PostgreSQLサービスを再起動します。

systemctl restart postgresql.service

次のコマンドを使用して、「dolibarruser」ユーザーとの接続をテストできます。

psql -d postgres -U dolibarruser -W

dolibarrユーザーのパスワードをパスワードとして入力し、\ qと入力して、接続に問題がない場合は終了します。
Apacheを起動し、起動時に起動できるようにします。

systemctl start httpd
systemctl enable httpd

「/etc/httpd/conf.d/vhosts.conf」構成ファイルを作成します:

vi /etc/httpd/conf.d/vhosts.conf

次の行を追加します:

IncludeOptional vhosts.d/*.conf

すべての仮想ホストを配置する新しい「/etc/httpd/vhosts.d」ディレクトリを作成します。

mkdir /etc/httpd/vhosts.d

ドメイン名の仮想ホストを作成します:

cd /etc/httpd/vhosts.d
vi your-domain.conf

次のコンテンツを追加します:


ServerAdmin [email protected]
DocumentRoot“ / var / www / html / dolibarr”
ServerName your-domain.com
ServerAliaswww。 your-domain.com
ErrorLog“ /var/log/httpd/your-domain.com-error_log”
CustomLog“ /var/log/httpd/your-domain.com-access_log”の組み合わせ


DirectoryIndexindex.php
オプションFollowSymLinks
AllowOverride All
すべての許可が必要

変更を有効にするには、systemctlを使用してApacheを再起動します。

systemctl restart httpd

お気に入りのWebブラウザーを開き、http://your-domain.com/htdocs/install/に移動して、簡単な手順に従います。 Dolibarrデータベースに関する次の情報を設定します。

Database name: dolibarr
Database type: pgsql
Server: localhost
Port: 5432
Login: dolibarruser
Password: Y0uRpAssW0Rd

次のページ「Dolibarrのインストールまたはアップグレード–管理者ログインの作成」で、新しい管理者アカウントを作成します。

Dolibarr admin login :    admin
Password : y0urAdm1npassw0rd
Retype password a second time : y0urAdm1npassw0rd

セキュリティ上の理由から、悪意のある使用を避けるために、install.lockというファイルをDolibarrドキュメントのルートディレクトリに追加する必要があります。

touch /var/www/html/dolibarr/htdocs/install/install.lock
chown apache:apache /var/www/html/dolibarr/htdocs/install/install.lock

http://your-domain.com/htdocs/admin/でDolibarr管理バックエンドにログインし、必要に応じてDolibarrを構成します。

以上です。これで、Dolibarrのインストールが完了しました。
もちろん、CentOS最適化ホスティングサービスのいずれかを使用している場合は、これを行う必要はありません。その場合は、専門のLinux管理者にインストールを依頼するだけです。 Dolibarr ERP CRM あなたのためのソフトウェア。 24時間年中無休でご利用いただけます。リクエストはすぐに処理されます。

PS。 この投稿が気に入った場合は、左側のボタンを使用してソーシャルネットワーク上の友達と共有するか、下に返信を残してください。ありがとう。


Cent OS
  1. CentOS7にPostgreSQLをインストールする方法

  2. CentOS 6 /RHEL6にPostgreSQL10をインストールする方法

  3. CentOS 7 /RHEL7にPostgreSQLをインストールする方法

  1. RHEL 8 /CentOS8にPostgreSQLサーバーをインストールする方法

  2. CentOS7にPostgreSQLをインストールする方法

  3. CentOS8にPostgreSQLをインストールする方法

  1. Ubuntu18.04LTSにDolibarrERP+CRMシステムをインストールする方法

  2. CentOS8にOdooERP13をインストールする方法

  3. CentOS7にphpPgAdminをインストールする方法