OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – How do I? Questions How to install OroCRM from SSH for Noobs

This topic contains 1 reply, has 2 voices, and was last updated by  mmiasnikov 6 years, 4 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #29479

    Jochen
    Participant

    If you are reading this you are probably Googling on how to install OroCRM on your Server, but don’t know where to start. Luckily I wasted 4 days of my life finding out. Tl;dr: Don’t install this if you are looking for Magento2 integration – this is not available yet. If you just want to use this for case management its fine. However we were unable to configure the full cron job (automating of e-mail sync etc) while this is simply put impossible if you are a noob in coding. So good luck, and hopefully someone with more sense of coding can edit this logfile to something everybody can use:

    OroCRM 2.5 install log v2.0

    Server install for example on DigitalOcean Droplet (Ubuntu 16.04)

    sudo apt-get -y install vim

    sudo apt-get install unzip

    Set up localisation file:

    sudo vim /etc/default/locale

    Add:
    LC_ALL=en_US.UTF-8
    LANGUAGE=en_US.UTF-8

    sudo apt-get update
    sudo apt-get upgrade

    Apache

    sudo apt-get -y install apache2

    sudo vim /etc/apache2/apache2.conf

    Add:
    ServerName ipaddressofyourserver

    sudo apache2ctl configtest
    (should say Syntax OK)

    sudo a2enmod rewrite

    sudo service apache2 restart

    Firewall

    sudo ufw allow in “Apache Full”

    (go to IP address in browser and it should say ‘It works’)

    MySQL

    sudo apt-get install mysql-server

    mysql_secure_installation

    PHP

    sudo apt-get -y update

    sudo apt-get -y install software-properties-common python-software-properties

    sudo add-apt-repository ppa:ondrej/php

    sudo apt-get -y install php libapache2-mod-php php-mcrypt php-mysql php-cli php-ctype php-curl php-fileinfo php-gd php-intl php-json php-mbstring php-simplexml php-tokenizer php-xml php-zip php-tidy php-soap

    sudo apt-get -y install libpcre3 libpcre3-dev

    sudo vim /etc/php/7.0/apache2/php.ini

    date.timezone Europe/Amsterdam
    detect_unicode = disabled
    memory_limit = 512M

    sudo php -v

    Supervisor

    sudo apt-get -y install supervisor

    JSEngine:

    sudo apt-get -y install nodejs

    Composer

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

    composer

    OroCRM

    sudo vim /etc/apache2/sites-available/000-default.conf

    Add between <VirtualHost></VirtualHost>:
    SetEnv COMPOSER_HOME “/usr/local/bin”

    Add below <VirtualHost>:
    <Directory “/var/www/html/orocrm/web”>
    AllowOverride All
    </Directory>
    change the one between VirtualHost to /orocrm/web as well

    sudo vim /etc/apache2/apache2.conf

    and replace this code :

    <Directory /var/www/>
    Options Indexes FollowSymLinks
    AllowOverride none
    Require all granted

    with

    <Directory /var/www/>
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted

    sudo service apache2 restart

    mysql -u root -p

    CREATE DATABASE orocrm_db;
    CREATE USER ‘orocrm’ IDENTIFIED BY ‘<password>’; (aanhalingstekens opnieuw typen)
    GRANT ALL PRIVILEGES ON orocrm_db.* TO ‘orocrm’;
    quit

    mysql -u orocrm -p

    quit

    sudo apt-get update
    sudo apt-get upgrade

    Install via Composer:

    cd /var/www/html/

    git clone -b 2.4 https://github.com/orocrm/crm-application.git orocrm

    cd orocrm

    composer install —prefer-dist —no-dev

    vim app/config/parameters.yml

    (Parameter explanation: https://oroinc.com/orocrm/documentation/2.3/book/installation)

    vim /etc/hosts

    Add:

    127.0.0.1 ipadres

    cd /var/www/html/orocrm

    php app/console oro:install —env=prod

    php app/console oro:api:doc:cache:clear

    Privileges

    sudo useradd orocrm
    sudo usermod -g www-data orocrm

    cd /var/www/html/orocrm

    sudo chown -R www-data:www-data /var/www/html/orocrm

    sudo chmod -R 755 /var/www/html/orocrm

    sudo systemctl restart apache2

    CRON

    crontab -e -u www-data

    Add:

    * * * * * cd /var/www/html/orocrm; /usr/bin/php app/console oro:cron:imap-sync > /dev/null 2>&1

    sudo systemctl restart apache2

    ######### IT WORKS – except for cron (while its impossible to figure out how this works from the basic OroCRM knowledge base articles) – After many trial and error the above CRON is the best we could figure out. The whole messagequeue system Oro uses is only for wizards and coding guru’s ###########

    By the way; THERE IS NO INTEGRATION WITH MAGENTO2 AVAILABLE. So Skip this whole thing if you are looking for that (we found out after installing and taking 4 days of SSH failure :D :D :D)

    We hope this helps you, because we had to figure this out by reading 100 pages. Too bad it doesnt work for us in the end while we need Magento2 support. #fml

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #29480

    mmiasnikov
    Participant

    Hello, Jochen.

    Thank you very much for sharing your experience.

    As Artem Liubeznyi answered you in topic How to integrate OroCRM and Magento2 – at the moment, indeed, we don’t support Magento2 integration out-of-the-box.

    Taking into account your experience we’ve planned to add more clear notes about the current situation with Magento 2 integration to OroCRM documentation.

    Also, I want to attract your attention that besides the way, described in the OroCRM Installation Guide, there are additional ways to set up an Oro application, described it the thread List of alternative ways to install Oro applications with environment if you want to get a working Oro application quickly.

Viewing 1 replies (of 1 total)

The forum ‘OroCRM – How do I? Questions’ is closed to new topics and replies.

Back to top