Поиск по сайту:

Как установить EPESI CRM на Ubuntu 18.04 LTS


На этой странице

  1. Требования
  2. Начало работы
  3. Установить сервер LAMP
  4. Настройка MariaDB
  5. Установить EPESI CMS
  6. Настройка Apache для EPESI
  7. Доступ к веб-интерфейсу EPESI CRM

EPESI — это бесплатное веб-приложение с открытым исходным кодом и одно из самых сложных многопользовательских решений для управления бизнес-информацией, например CRM. Это полнофункциональное приложение CRM, которое можно использовать для хранения, организации, доступа и обмена бизнес-записями. Он построен на базе PHP/Ajax, поэтому вы можете изменять его и развивать по своему усмотрению.

Функции

  • Простой, легкий и быстрый.
  • Интуитивно понятный пользовательский веб-интерфейс.
  • Неограниченное количество заметок и вложенных файлов.
  • Интегрированный почтовый клиент Roundcube.
  • Отслеживание телефонов и проектов.
  • Общие контакты, календарь, задачи, телефонные звонки.

В этом руководстве мы узнаем, как установить EPESI на сервер Ubuntu 18.04.

Требования

  • Сервер под управлением Ubuntu 18.04.
  • Пользователь без полномочий root с привилегиями sudo.

Начиная

Перед запуском вам нужно будет обновить вашу систему до последней версии. Вы можете сделать это, выполнив следующую команду:

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

После обновления вашей системы перезапустите систему, чтобы изменения вступили в силу.

Установить LAMP-сервер

Во-первых, вам нужно будет установить веб-сервер 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

Эта команда установит пароль root, удалит анонимного пользователя, запретит удаленный вход root и удалит тестовую базу данных, как показано ниже:

    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

Введите пароль 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

Во-первых, вам нужно скачать последнюю версию EPESI из репозитория Git.

Перейдите в каталог /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

Настройте Apache для 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 в производственной среде.