Skip to content

Instantly share code, notes, and snippets.

@cljk
Last active August 24, 2017 10:10
Show Gist options
  • Save cljk/a299537a89ec6857ec561286f25c073f to your computer and use it in GitHub Desktop.
Save cljk/a299537a89ec6857ec561286f25c073f to your computer and use it in GitHub Desktop.
Install orocrm @ ubuntu 16.04
###
# install OroCRM on Ubuntu 16.04
#
# installed 2017-08 on Ubuntu 16.04.3 LTS
###
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get install -y php-mbstring php-gd php-xml php-mcrypt php-curl php-intl php-zip php-soap php-tidy
sudo apt-get install -y build-essential
sudo apt-get install -y nodejs
sudo apt-get install -y openjdk-8-jdk supervisor
service apache2 restart
# set "date.timezone" - see http://php.net/manual/de/timezones.php
nano /etc/php/7.0/cli/php.ini
# and
nano /etc/php/7.0/apache2/php.ini
cd /var/www/html
mkdir orocrm
cd orocrm
git clone -b 2.3.1 http://github.com/orocrm/crm-application.git
# git clone https://github.com/orocrm/crm.git
cd crm-application
sudo su
# create database and user
mysql -p
### mysql>
create database oro_crm;
CREATE USER 'oro_crm'@'localhost' IDENTIFIED BY 'YOUR_RANDOM_PW';
GRANT ALL PRIVILEGES ON oro_crm.* TO 'oro_crm'@'localhost';
FLUSH PRIVILEGES;
quit
### <mysql
###
# compare https://github.com/oroinc/crm-application/blob/master/README.md
###
composer install --prefer-dist --no-dev
## when asked enter your mysql connection preferences
php app/console oro:install --env=prod
chown -R www-data:www-data *
ln -s /var/www/html/orocrm/crm-application/ /opt/orocrm/
# oro console usable with
# php /opt/orocrm/app/console
## add to crontab
# crontab -e
*/1 * * * * php /opt/orocrm/app/console oro:cron --env=prod
## add supervisor config - compare to README.md
service supervisor restart
# su -s /bin/bash www-data
### continue with installing cronjobs etc.
### app is startable
### http://{IPofHost}/orocrm/crm-application/web/app.php/
### perhaps it´s a good idea to create a custom apache site
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment