웹사이트 검색

Ubuntu 18.04 LTS에 EPESI CRM을 설치하는 방법


이 페이지에서

  1. 요구 사항\n
  2. 시작하기\n
  3. LAMP 서버 설치
  4. MariaDB 구성
  5. EPESI CMS 설치
  6. EPESI용 Apache 구성
  7. EPESI CRM 웹 인터페이스 액세스

EPESI는 무료 오픈 소스 웹 애플리케이션이며 CRM과 같은 비즈니스 정보를 관리하기 위한 가장 정교한 다중 사용자 솔루션 중 하나입니다. 비즈니스 기록을 저장, 구성, 액세스 및 공유하는 데 사용할 수 있는 완전한 기능을 갖춘 CRM 애플리케이션입니다. PHP/Ajax 프레임워크를 기반으로 하여 원하는 대로 변경하여 개발할 수 있습니다.

특징

  • 간단하고 가볍고 빠릅니다.\n
  • 직관적인 웹 기반 사용자 인터페이스.
  • 무제한 메모 및 파일 첨부.\n
  • 통합된 Roundcube 이메일 클라이언트.\n
  • 전화 및 프로젝트 추적기.\n
  • 연락처, 일정, 작업, 전화 통화를 공유합니다.\n

이 튜토리얼에서는 Ubuntu 18.04 서버에 EPESI를 설치하는 방법을 배웁니다.

요구 사항

  • Ubuntu 18.04를 실행하는 서버.\n
  • sudo 권한이 있는 루트가 아닌 사용자.\n

시작하기

시작하기 전에 시스템을 최신 버전으로 업데이트해야 합니다. 다음 명령을 실행하여 이를 수행할 수 있습니다.

sudo apt-get update -y
sudo apt-get upgrade -y

시스템이 업데이트되면 시스템을 다시 시작하여 변경 사항을 적용하십시오.

램프 서버 설치

먼저 Apache 웹 서버, MariaDB 서버, PHP 및 기타 필수 PHP 모듈을 시스템에 설치해야 합니다. 다음 명령을 실행하여 모두 설치할 수 있습니다.

sudo apt-get install apache2 mariadb-server php7.2 libapache2-mod-php7.2 php7.2-common php7.2-mbstring php7.2-xmlrpc php7.2-soap php7.2-gd php7.2-xml php7.2-intl php7.2-mysql php7.2-cli php7.2-ldap php7.2-zip php7.2-curl php7.2-imap unzip -y

다음으로 PHP 기본 구성 파일을 일부 변경해야 합니다.

sudo nano /etc/php/7.2/apache2/php.ini

다음과 같이 변경합니다.

memory_limit = 256M
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 30
max_input_vars = 1500
date.timezone = Asia/Kolkata

파일을 저장하고 닫습니다. 그런 다음 Apache 및 MariaDB 서비스를 시작하고 다음 명령을 사용하여 부팅 시 시작하도록 활성화합니다.

sudo systemctl start apache2
sudo systemctl enable apache2
sudo systemctl start mariadb
sudo systemctl enable mariadb

MariaDB 구성

기본적으로 MariaDB는 보안되지 않습니다. 따라서 먼저 보안을 유지해야 합니다. 다음 명령을 실행하여 보안을 설정할 수 있습니다.

sudo mysql_secure_installation

이 명령은 아래와 같이 루트 암호를 설정하고, 익명 사용자를 제거하고, 원격 루트 로그인을 허용하지 않고, 테스트 데이터베이스를 제거합니다.

    Enter current password for root (enter for none):
    Set root password? [Y/n]: N
    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

MariaDB가 보호되면 MariaDB 셸에 로그인합니다.

sudo mysql -u root

프롬프트가 표시되면 루트 비밀번호를 입력하십시오. 그런 다음 다음 명령을 사용하여 EPESI에 대한 데이터베이스 및 사용자를 생성합니다.

MariaDB [(none)]> CREATE DATABASE epesidb;
MariaDB [(none)]> CREATE USER 'epesi'@'localhost' IDENTIFIED BY 'mypassword';

문자열 mypassword를 보안 암호로 바꿉니다. 그런 다음 다음 명령을 사용하여 EPESI 데이터베이스에 권한을 부여합니다.

MariaDB [(none)]> GRANT ALL PRIVILEGES ON epesidb.* TO 'epesi'@'localhost' IDENTIFIED BY 'mypassword';

문자열 mypassword를 보안 암호로 바꿉니다. 다음으로 다음 명령을 사용하여 권한을 플러시합니다.

MariaDB [(none)]> FLUSH PRIVILEGES;

그런 다음 다음 명령을 사용하여 MariaDB 콘솔을 종료합니다.

MariaDB [(none)]> exit

EPESI CMS 설치

먼저 Git 저장소에서 최신 버전의 EPESI를 다운로드해야 합니다.

/tmp 디렉토리로 이동합니다.

cd /tmp

다음 명령으로 다운로드할 수 있습니다.

git clone https://github.com/Telaxus/EPESI.git

그런 다음 다음 명령을 사용하여 EPESI 디렉터리를 Apache 루트 디렉터리에 복사합니다.

sudo cp -r EPESI /var/www/html/epesi

다음으로 Composer를 시스템에 설치해야 합니다. 다음 명령을 실행하여 설치할 수 있습니다.

curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer

다음으로 디렉터리를 epesi로 변경하고 Composer를 사용하여 필요한 종속성을 설치합니다.

cd /var/www/html/epesi
sudo composer install

산출:

Deprecation warning: require.phpFastCache/phpFastCache is invalid, it should not contain uppercase characters. Please use phpfastcache/phpfastcache instead. Make sure you fix this as Composer 2.0 will error.
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 84 installs, 0 updates, 0 removals
  - Installing enyo/dropzone (v5.5.0): Downloading (100%)         
  - Installing ezyang/htmlpurifier (v4.10.0): Downloading (100%)         
  - Installing fzaninotto/faker (v1.8.0): Downloading (100%)         
  - Installing ifsnop/mysqldump-php (dev-master 3c5ccfe): Cloning 3c5ccfea31 from cache
  - Installing jakub-onderka/php-console-color (v0.2): Downloading (100%)         
  - Installing memio/model (2.0.4): Downloading (100%)         
  - Installing memio/validator (v2.0.3): Downloading (100%)         
  - Installing symfony/polyfill-ctype (v1.10.0): Downloading (100%)         
  - Installing twig/twig (v1.36.0): Downloading (100%)         
  - Installing memio/pretty-printer (2.0.3): Downloading (100%)         
  - Installing memio/twig-template-engine (v2.0.3): Downloading (100%)         
  - Installing memio/linter (v2.0.3): Downloading (100%)         
  - Installing memio/memio (v2.0.0): Downloading (100%)         
  - Installing moneyphp/money (v3.2.0): Downloading (100%)         
  - Installing phpdocumentor/reflection-docblock (2.0.5): Downloading (100%)         
  - Installing psr/cache (1.0.1): Downloading (100%)         
  - Installing predis/predis (v1.1.1): Downloading (100%)         
  - Installing phpfastcache/phpssdb (1.0.1): Downloading (100%)         
  - Installing phpfastcache/phpfastcache (5.0.21): Downloading (100%)         
  - Installing psr/container (1.0.0): Downloading (100%)         
  - Installing pimple/pimple (v3.2.3): Downloading (100%)         
  - Installing symfony/polyfill-php72 (v1.10.0): Downloading (100%)         
  - Installing symfony/polyfill-mbstring (v1.10.0): Downloading (100%)         
  - Installing symfony/var-dumper (v4.0.15): Downloading (100%)         
  - Installing psr/log (1.1.0): Downloading (100%)         
  - Installing symfony/debug (v3.0.9): Downloading (100%)         
  - Installing symfony/console (v2.8.49): Downloading (100%)         
  - Installing nikic/php-parser (v3.1.5): Downloading (100%)         
  - Installing jakub-onderka/php-console-highlighter (v0.4): Downloading (100%)         
  - Installing dnoegel/php-xdg-base-dir (0.1): Downloading (100%)         
  - Installing psy/psysh (v0.9.9): Downloading (100%)         
  - Installing ircmaxell/password-compat (v1.0.4): Downloading (100%)         
  - Installing symfony/polyfill-php55 (v1.10.0): Downloading (100%)         
  - Installing symfony/polyfill-php54 (v1.10.0): Downloading (100%)         
  - Installing symfony/http-foundation (v2.8.49): Downloading (100%)         
  - Installing tecnickcom/tcpdf (6.2.26): Downloading (100%)         
  - Installing symfony/finder (v4.2.1): Downloading (100%)         
  - Installing sebastian/version (2.0.1): Downloading (100%)         
  - Installing sebastian/resource-operations (2.0.1): Downloading (100%)         
  - Installing sebastian/recursion-context (3.0.0): Downloading (100%)         
  - Installing sebastian/object-reflector (1.1.1): Downloading (100%)         
  - Installing sebastian/object-enumerator (3.0.3): Downloading (100%)         
  - Installing sebastian/global-state (2.0.0): Downloading (100%)         
  - Installing sebastian/exporter (3.1.0): Downloading (100%)         
  - Installing sebastian/environment (4.0.1): Downloading (100%)         
  - Installing sebastian/diff (3.0.1): Downloading (100%)         
  - Installing sebastian/comparator (3.0.2): Downloading (100%)         
  - Installing phpunit/php-timer (2.0.0): Downloading (100%)         
  - Installing phpunit/php-text-template (1.2.1): Downloading (100%)         
  - Installing phpunit/php-file-iterator (2.0.2): Downloading (100%)         
  - Installing theseer/tokenizer (1.1.0): Downloading (100%)         
  - Installing sebastian/code-unit-reverse-lookup (1.0.1): Downloading (100%)         
  - Installing phpunit/php-token-stream (3.0.1): Downloading (100%)         
  - Installing phpunit/php-code-coverage (6.1.4): Downloading (100%)         
  - Installing doctrine/instantiator (1.1.0): Downloading (100%)         
  - Installing phpspec/prophecy (1.8.0): Downloading (100%)         
  - Installing phar-io/version (2.0.1): Downloading (100%)         
  - Installing phar-io/manifest (1.0.3): Downloading (100%)         
  - Installing myclabs/deep-copy (1.8.1): Downloading (100%)         
  - Installing phpunit/phpunit (7.5.1): Downloading (100%)         
  - Installing jakubledl/dissect (v1.0.1): Downloading (100%)         
  - Installing goaop/parser-reflection (1.4.1): Downloading (100%)         
  - Installing doctrine/cache (v1.8.0): Downloading (100%)         
  - Installing doctrine/lexer (v1.0.1): Downloading (100%)         
  - Installing doctrine/annotations (v1.6.0): Downloading (100%)         
  - Installing goaop/framework (2.2.0): Downloading (100%)         
  - Installing codeception/aspect-mock (3.0.2): Downloading (100%)         
  - Installing symfony/yaml (v3.3.18): Downloading (100%)         
  - Installing symfony/contracts (v1.0.2): Downloading (100%)         
  - Installing symfony/event-dispatcher (v4.2.1): Downloading (100%)         
  - Installing symfony/dom-crawler (v4.2.1): Downloading (100%)         
  - Installing symfony/css-selector (v4.2.1): Downloading (100%)         
  - Installing symfony/browser-kit (v4.2.1): Downloading (100%)         
  - Installing ralouphie/getallheaders (2.0.5): Downloading (100%)         
  - Installing psr/http-message (1.0.1): Downloading (100%)         
  - Installing guzzlehttp/psr7 (1.5.2): Downloading (100%)         
  - Installing guzzlehttp/promises (v1.3.1): Downloading (100%)         
  - Installing guzzlehttp/guzzle (6.3.3): Downloading (100%)         
  - Installing symfony/process (v4.2.1): Downloading (100%)         
  - Installing facebook/webdriver (1.6.0): Downloading (100%)         
  - Installing codeception/stub (2.0.4): Downloading (100%)         
  - Installing codeception/phpunit-wrapper (7.6.0): Downloading (100%)         
  - Installing behat/gherkin (v4.5.1): Downloading (100%)         
  - Installing codeception/codeception (2.5.2): Downloading (100%)         
moneyphp/money suggests installing ext-bcmath (Calculate without integer limits)
moneyphp/money suggests installing ext-gmp (Calculate without integer limits)
moneyphp/money suggests installing florianv/exchanger (Exchange rates library for PHP)
moneyphp/money suggests installing florianv/swap (Exchange rates library for PHP)
moneyphp/money suggests installing psr/cache-implementation (Used for Currency caching)
phpdocumentor/reflection-docblock suggests installing dflydev/markdown (~1.0)
phpdocumentor/reflection-docblock suggests installing erusev/parsedown (~1.0)
predis/predis suggests installing ext-phpiredis (Allows faster serialization and deserialization of the Redis protocol)
phpfastcache/phpfastcache suggests installing ext-apc (*)
phpfastcache/phpfastcache suggests installing ext-memcache (*)
phpfastcache/phpfastcache suggests installing ext-memcached (*)
phpfastcache/phpfastcache suggests installing ext-predis (*)
phpfastcache/phpfastcache suggests installing ext-redis (*)
phpfastcache/phpfastcache suggests installing ext-sqlite (*)
symfony/console suggests installing psr/log-implementation (For using the console logger)
psy/psysh suggests installing ext-pdo-sqlite (The doc command requires SQLite to work.)
psy/psysh suggests installing hoa/console (A pure PHP readline implementation. You'll want this if your PHP install doesn't already support readline or libedit.)
sebastian/global-state suggests installing ext-uopz (*)
phpunit/php-code-coverage suggests installing ext-xdebug (^2.6.0)
phpunit/phpunit suggests installing ext-xdebug (*)
phpunit/phpunit suggests installing phpunit/php-invoker (^2.0)
doctrine/cache suggests installing alcaeus/mongo-php-adapter (Required to use legacy MongoDB driver)
symfony/contracts suggests installing symfony/cache-contracts-implementation
symfony/contracts suggests installing symfony/service-contracts-implementation
symfony/contracts suggests installing symfony/translation-contracts-implementation
symfony/event-dispatcher suggests installing symfony/dependency-injection
symfony/event-dispatcher suggests installing symfony/http-kernel
facebook/webdriver suggests installing ext-SimpleXML (For Firefox profile creation)
codeception/codeception suggests installing aws/aws-sdk-php (For using AWS Auth in REST module and Queue module)
codeception/codeception suggests installing codeception/phpbuiltinserver (Start and stop PHP built-in web server for your tests)
codeception/codeception suggests installing codeception/specify (BDD-style code blocks)
codeception/codeception suggests installing codeception/verify (BDD-style assertions)
codeception/codeception suggests installing flow/jsonpath (For using JSONPath in REST module)
codeception/codeception suggests installing league/factory-muffin (For DataFactory module)
codeception/codeception suggests installing league/factory-muffin-faker (For Faker support in DataFactory module)
codeception/codeception suggests installing phpseclib/phpseclib (for SFTP option in FTP Module)
codeception/codeception suggests installing stecman/symfony-console-completion (For BASH autocompletion)
codeception/codeception suggests installing symfony/phpunit-bridge (For phpunit-bridge support)
Generating autoload files
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 1 install, 0 updates, 0 removals
  - Installing tedivm/fetch (v0.7.1): Downloading (100%)         
Generating autoload files
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 1 install, 0 updates, 0 removals
  - Installing phpoffice/phpexcel (1.8.1): Downloading (100%)         
Generating autoload files
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Writing lock file
Generating autoload files
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Generated autoload files containing 14 classes

필요한 종속성을 모두 설치했으면 다음 명령을 사용하여 epesi 디렉터리에 적절한 권한을 부여합니다.

sudo chown -R www-data:www-data /var/www/html/epesi
sudo chmod -R 775 /var/www/html/epesi

EPESI용 Apache 구성

다음으로 EPESI용 아파치 가상 호스트 파일을 생성해야 합니다. epesi.conf 파일을 생성하여 이를 수행할 수 있습니다.

sudo nano /etc/apache2/sites-available/epesi.conf

다음 줄을 추가합니다.

<VirtualHost *:80>
     ServerAdmin 
     DocumentRoot /var/www/html/epesi
     ServerName example.com
ServerAlias www.example.com <Directory /var/www/html/epesi/> Options +FollowSymlinks AllowOverride All Require all granted </Directory> ErrorLog ${APACHE_LOG_DIR}/epesi_error.log CustomLog ${APACHE_LOG_DIR}/epesi_access.log combined </VirtualHost>

파일을 저장하고 닫습니다. 그런 다음 다음 명령을 사용하여 EPESI 가상 호스트 파일을 활성화합니다.

sudo a2ensite epesi

다음으로 Apache 재작성 모듈을 활성화하고 Apache 웹 서버를 다시 시작하여 모든 변경 사항을 적용합니다.

sudo a2enmod rewrite
sudo systemctl restart apache2

완료되면 다음 단계로 진행할 수 있습니다.

EPESI CRM 웹 인터페이스에 액세스

이제 EPESI CRM이 설치 및 구성되었습니다. 이제 EPESI CRM 웹 인터페이스에 액세스할 차례입니다.

웹 브라우저를 열고 URL http://example.com을 입력합니다. 다음 페이지로 리디렉션됩니다.

언어를 선택하면 다음 페이지가 표시됩니다.

이제 사용권 계약에 동의하고 다음 버튼을 클릭합니다. 다음 페이지가 표시됩니다.

이제 오류를 무시하고 확인 버튼을 클릭합니다. 다음 페이지가 표시됩니다.

이제 데이터베이스 이름, 데이터베이스 사용자 이름 및 비밀번호와 같은 모든 필수 세부 정보를 제공하십시오. 그런 다음 다음 버튼을 클릭합니다. 다음 페이지가 표시됩니다.

이제 설치 계속 버튼을 클릭하십시오. 다음 페이지가 표시됩니다.

이제 관리자 사용자 이름과 비밀번호를 제공하십시오. 그런 다음 다음 버튼을 클릭합니다. 다음 페이지가 표시됩니다.

이제 메일 설정을 선택하고 다음 버튼을 클릭하십시오. 다음 페이지가 표시됩니다.

이제 다음 버튼을 클릭합니다. 다음 페이지가 표시됩니다.

이제 날짜 및 시간 형식과 국가를 제공하십시오. 그런 다음 확인 버튼을 클릭합니다. 다음 페이지가 표시됩니다.

이제 회사 이름, 이름과 주소, 국가 및 도시를 입력하십시오. 그런 다음 확인 버튼을 클릭합니다. 일단 설치가 성공적으로 완료되었습니다. 다음 페이지가 표시됩니다.

축하합니다! 서버에 EPESI CRM을 성공적으로 설치했습니다. 이제 프로덕션 환경에서 자체 EPESI CRM을 쉽게 호스팅할 수 있습니다.