OroCRM is an open source customer relationship management system used for managing a company’s interaction with current and future customers. It will capture everything you need to know about each customer in a complete 360° view. With OroCRM you’re able to get information from 5 years ago and create reports that will show you who your top customers were of your store at that time. Shopping cart abandonment is a huge concern, It has a feature that allows you to have access to the items and the customers who have discarded them. Also, giving you the tools that you need to correct the situation.
With the few easy steps you can install OroCRM on your system and enjoy the facilities provided by it.
*OS: UBUNTU 14.04 LTS*
INSTALL APACHE SERVER AND MYSQL-SERVER:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
sudo su apt-get update apt-get install apache2 apt-get install mysql-server mysql -V apache2 -v apt-get install nodejs |
OroCRM requires PHP 5.5.9 and above.
INSTALL PHP 7:
1 2 3 4 5 6 7 8 9 10 11 |
sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get install python-software-properties sudo apt-get update sudo apt-get install php7.0 php7.0 -v |
Also ensure that following PHP extensions are installed.
1 |
ctype, fileinfo, GD 2.0 and above, intl, JSON, Mcrypt, PCRE 8.0 and above, SimpleXML, Tokenizer, curl, mbstring, soap, xsl |
And ensure the following PHP settings
- date.timezone must be set.
- memory_limit should be at least 512M.
- xdebug.scream must be disabled in php.ini.
- xdebug.show_exception_trace must be disabled in php.ini.
- Node.js (for JS minification).
- PHP-XML module installed.
- Uncomment extension=pdo.so, extension=pdo_mysql.so, extension=pdo_mysqli.so {Only if installer shows PDO drivers unavailable}
CREATING A DATABASE:
1 2 3 4 5 6 7 8 9 |
mysql -u root -p > CREATE DATABASE oro_crm; > GRANT ALL PRIVILEGES ON oro_crm.* TO 'oro_crm'@'localhost' IDENTIFIED BY 'oro_crm'; >FLUSH PRIVILEGES; > quit |
DOWNLOAD COMPOSER:
1 2 3 4 5 6 7 |
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php -r "if (hash_file('SHA384', 'composer-setup.php') === 'e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196ae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" php composer-setup.php php -r "unlink('composer-setup.php');" |
Make sure that /usr/local/bin
is in your $PATH
1 2 3 |
echo $PATH mv composer.phar /usr/local/bin/composer |
CLONE THE GITHUB REPOSITORY:
1 2 3 |
cd /var/www/html git clone -b 1.9.0 https://github.com/orocrm/crm-application.git orocrm |
Here we are using composer tool to install orocrm.
INSTALL BY COMPOSER:
1 2 3 4 5 |
apt-get install unzip cd orocrm composer install --prefer-dist --no-dev |
Now if all the required php extensions are not installed, you will receive errors. Check for the missing php extensions and install them. If everything goes right, then at the end of the composer install
command, you will be asked to enter some configuration parameters in the console. The parameters are required to bootstrap the application.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
Creating the "app/config/parameters.yml" file Some parameters are missing. Please provide them. database_driver (pdo_mysql): database_host (127.0.0.1): database_port (null): database_name (oro_crm): database_user (oro_crm): database_password (null): mailer_transport (smtp): mailer_host (127.0.0.1): mailer_port (null): mailer_encryption (null): mailer_user (null): mailer_password (null): websocket_bind_address (0.0.0.0): websocket_bind_port (8080): websocket_frontend_host ('*'): websocket_frontend_port (8080): websocket_backend_host ('*'): websocket_backend_port (8080): session_handler (session.handler.native_file): locale (en): secret (ThisTokenIsNotSoSecretChangeIt): installed (null): assets_version (null): assets_version_strategy: time_hash |
Enter your database credentials or you can change the parameters in the “app/config/parameters.yml” file.
CREATING THE VIRTUAL HOST:
1 |
nano /etc/apache2/sites-available/orocrm.conf |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
<VirtualHost *:80> ServerName orocrm.example.com DirectoryIndex app.php DocumentRoot /var/www/html/orocrm/web <Directory /var/www/html/orocrm/web> # enable the .htaccess rewrites AllowOverride All Order allow,deny Allow from All </Directory> ErrorLog /var/log/apache2/orocrm_error.log CustomLog /var/log/apache2/orocrm_access.log combined </VirtualHost> |
GRANT OWNERSHIP AND PERMISSIONS:
1 2 3 4 5 |
chown -R www-data:www-data /var/www/html/ find /var/www/html/ -type f -exec chmod 644 {} \; find /var/www/html/ -type d -exec chmod 755 {} \; |
Now enable this configuration.
1 |
a2ensite orocrm.conf |
To enable URL rewrite
1 |
a2enmod rewrite |
For multiple PHP versions,
1 2 3 |
nano /etc/apache2/apache2.conf SetEnv ORO_PHP_PATH /usr/bin/php7.0 |
Ensuring OroCRM compatibility with php-7.0,
1 2 3 4 5 6 7 8 9 10 |
cd /var/www/html/orocrm/vendor/oro/platform/ find . -type f -exec sed -i 's/Condition\\False()/Condition\\FalseCompatible()/g' {} + find . -type f -exec sed -i 's/Condition\\True()/Condition\\TrueCompatible()/g' {} + find . -type f -exec sed -i 's/Condition\\False$/Condition\\FalseCompatible/g' {} + find . -type f -exec sed -i 's/Condition\\True$/Condition\\TrueCompatible/g' {} + mv src/Oro/Component/ConfigExpression/Condition/True.php src/Oro/Component/ConfigExpression/Condition/TrueCompatible.php mv src/Oro/Component/ConfigExpression/Condition/False.php src/Oro/Component/ConfigExpression/Condition/FalseCompatible.php sed -i 's/class True/class TrueCompatible/g' src/Oro/Component/ConfigExpression/Condition/TrueCompatible.php sed -i 's/class False/class FalseCompatible/g' src/Oro/Component/ConfigExpression/Condition/FalseCompatible.php |
Add orocrm.example.com to your hosts,
1 |
127.0.0.1 orocrm.example.com |
RESTART APACHE AND MYSQL SERVER:
1 2 3 |
service apache2 restart service mysql restart |
Hit the URL “http://orocrm.example.com/install.php”
- Now click on Begin installation.
- The installation wizard will check the system configuration.
- Enter your database credentials and setup database connection.
- Database gets initialized.
- Enter the credentials in Administrative Setup and click on install button.
- Now finish the process.
- Click on Launch application button.
Now you are all set to explore the world of OroCRM. Enter your login credentials and facilitate yourself with the interactive services provided by it.
IN CASE OF ANY QUERY,CONTACT US