Install Oro Platform on Wins 10 WAMP

2 Ways to Install

Actually, there are more than 2 ways to download the source codes. But the common ways are

  1. Git Clone
  2. Composer

Git Clone

  1. Fork the repository from oroinc Archive .
    1. For running the applications, fork from one of the pinned repositories
    2. For contributing to the code, fork the repo without suffix -application
  2. Git clone the fork with TortoiseGit.
  3. Composer to get the dependencies.
kiat@win10 MINGW64 /d/Work/wamp64/www/oro/crm-application (master)
$ composer install --prefer-dist --no-dev
Loading composer repositories with package information
Updating dependencies

Fatal error: Allowed memory size of 4294967296 bytes exhausted (tried to allocate 268435456 bytes) in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/DependencyResolver/Solver.php on line 220

Check https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors for more info on how to handle out of memory errors.
kiat@win10 MINGW64 /d/Work/wamp64/www/oro/crm-application (master)
$ php -r "echo ini_get('memory_limit').PHP_EOL;"
4G

Increase the memory_limit to 5G in D:\Work\wamp64\bin\php\php7.1.26\php.ini to satisfy the memory.

Retry:

kiat@win10 MINGW64 /d/Work/wamp64/www/oro/crm-application2 ((4.0.0-beta))
$ pcomposer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 232 installs, 0 updates, 0 removals
  - Installing ocramius/package-versions (1.4.0): Loading from cache
  ...
> Incenteev\ParameterHandler\ScriptHandler::buildParameters
Creating the "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): orocrm
...

Get the Source Code with composer

Launch Git Bash:

kiat@win10 MINGW64 /d/Work/wamp64/www/oro
$ composer create-project oro/platform-application platform --repository=https://satis.oroinc.com

...

Creating the "config/parameters.yml" file
Some parameters are missing. Please provide them.
database_driver (pdo_mysql):
database_host (127.0.0.1):
database_port (null): 3306
database_name (bap_standard): oroplatform
database_user (root):
database_password (null):
database_driver_options ({  }):
mailer_transport (mail):
mailer_host (127.0.0.1):
mailer_port (null): 465
mailer_encryption (null):
mailer_user (null): kiat
mailer_password (null):
websocket_bind_address (0.0.0.0):
websocket_bind_port (8080):
websocket_frontend_host ('*'):
websocket_frontend_port (8080):
websocket_frontend_path (''):
websocket_backend_host ('*'):
websocket_backend_port (8080):
websocket_backend_path (''):
websocket_backend_transport (tcp):
websocket_backend_ssl_context_options ({  }):
session_handler (session.handler.native_file):
locale (en):
secret (ThisTokenIsNotSoSecretChangeIt): kiatsupersecrettoken
installed (null):
assets_version (null):
assets_version_strategy (time_hash):
message_queue_transport (dbal):
message_queue_transport_config (null):

Configure DBAL Parameters

See this guide Archive

Launch VSCode:

kiat@win10 MINGW64 /d/Work/wamp64/www/oro
$ cd platform

kiat@win10 MINGW64 /d/Work/wamp64/www/oro/platform
$ code .

Add the following to the end of config\config.yml

doctrine:
    dbal:
        charset: utf8mb4
        default_table_options:
            charset: utf8mb4
            collate: utf8mb4_unicode_ci

Create DB in PHPMyAdmin

In pma, create a DB called oroplatform with collation utf8mb4_general_ci.

Install OroPlatform Application

The “–env=prod” parameter must be defined, as otherwise the development environment will be installed.

kiat@win10 MINGW64 /d/Work/wamp64/www/oro/platform
$ php ./bin/console oro:install --env=prod --timeout=900

...

Administration setup.
Application URL (http://localhost): http://oro2.nks
Organization name (ORO): Celera
Username (admin):
Email: kiatsiong.ng@gmail.com
First name: kiat
Last name: ng
Password:
Formatting Code (en):
Language (en):
Load sample data (y/n): y
Loading "demo" data fixtures ...

...

Oro Application has been successfully installed in prod mode.
Please run oro:api:doc:cache:clear command to warm-up API documentation cache
Ensure that at least one consumer service is running. Use the oro:message-queue:
consume command to launch a consumer service instance. See https://oroinc.com/or
ocrm/doc/current/install-upgrade/post-install-steps#activate-background-tasks fo
r more information.


kiat@win10 MINGW64 /d/Work/wamp64/www/oro/platform
$ php bin/console oro:api:doc:cache:clear

It'll take a while, so be patient while the setup is in progress.

Then restart WAMP and go to browser.

Image

If Error During Installation

All tables in the DB must be dropped before this:

kiat@win10 MINGW64 /d/Work/wamp64/www/oro/crm-application2 ((4.0.0-beta))
$  php ./bin/console oro:install --timeout=1200
Installing Oro Application.

Check system requirements
...
The application meets all mandatory requirements
Setting up database.
Process migrations...
  > Oro\Bundle\EntityExtendBundle\Migration\LoadEntityConfigStateMigration
...
 > Oro\Bundle\EntityConfigBundle\Migration\WarmUpEntityConfigCacheMigration
Loading permissions...
  > VIEW
  > CREATE
  > EDIT
  > DELETE
  > ASSIGN
  > CONFIGURE
  > MANAGE_API_KEY
  > TRANSLATE
  > SHARE
All configurable permissions successfully loaded into cache.
Removing all previously loaded commands...
Processing command "oro:cron:message-queue:cleanup": setting up schedule..
...
Processing command "oro:cron:import-clean-up-storage": setting up schedule..
Loading workflow definitions...
  > orocrm_contact_us_contact_request
  > task_flow
  > b2b_flow_lead
  > b2b_flow_sales_funnel
  > opportunity_flow
  > b2c_flow_abandoned_shopping_cart
  > b2c_flow_order_follow_up

Please run command 'oro:translation:load' to load translations.
[info] > process definition: "sync_email_flag_after_changed" - created
...
[info] >> process triggers modifications stored in DB
Loading "main" data fixtures ...
  > loading [-240] Oro\Bundle\OrganizationBundle\Migrations\Data\ORM\LoadOrganiz
ationAndBusinessUnitData
  > loading [-230] Oro\Bundle\CalendarBundle\Migrations\Data\ORM\UpdateCalendarW
ithOrganization
...
Administration setup.
Application URL (http://localhost): orocrm.nks
Organization name (OroCRM):
Username (admin):
Email: kiatsiong.ng@gmail.com
First name: kiat
Last name: ng
Password:
Formatting Code (en):
Language (en):
Load sample data (y/n): y
Loading "demo" data fixtures ...
  > loading Oro\Bundle\OrganizationBundle\Migrations\Data\Demo\ORM\LoadAcmeOrgan
izationAndBusinessUnitData
...
Running full re-indexation with "oro:search:reindex" command
Started reindex task for all mapped entities
Reindex finished successfully.

Preparing application.
Processing language "English" ...
No available translations found for "English".
Processing language "German (Germany)" ...
Installation completed for "German (Germany)" language.
...
Loading translations [es_AR] (0) ...
All messages successfully processed.
Rebuilding cache ... Done.

 // Clearing the cache for the dev environment with debug
 // false

 [OK] Cache for the "dev" environment (debug=false) was successfully cleared.

05:07:05 [file+] en.json
...
Assets has been installed successfully
Dumping exposed routes.

[file+] D:\Work\wamp64\www\oro\crm-application2\public\media\js\routes.json
04:52:37 [file+] oro.locale_data.js
...
Oro Application has been successfully installed in dev mode.
To run application in prod mode, please run cache:clear command with --env=prod
parameter
Ensure that at least one consumer service is running. Use the oro:message-queue:
consume command to launch a consumer service instance. See https://oroinc.com/or
ocrm/doc/current/install-upgrade/post-install-steps#activate-background-tasks fo
r more information.

kiatng over 3 years ago
This website uses short-lived cookies to improve usability.
Accept or learn more