OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums OroCommerce ORO Commerce and windows 10

This topic contains 10 replies, has 3 voices, and was last updated by Andrey Yatsenko Andrey Yatsenko 1 week, 3 days ago.

  • Creator
    Topic
  • #38724

    kis.salem
    Participant

    Hello,

    I’m new in Orocommerce and I think I found the right solution for my future project. But to start I want to install OroCommerce, OroCRM amd OroPlatform on my local windows machine in a dev environment. After some weeks of trials I managed to install orocommerce 3.1.5, orocrm 3.1.6 and oroplatform 3.1.6 under xampp3.2.3

    All of them (three) in different directories:
    C:\Data\tools\xampp-7.2.16\htdocs\oroco3t
    C:\Data\tools\xampp-7.2.16\htdocs\orocrm316
    C:\Data\tools\xampp-7.2.16\htdocs\oropla316

    Same prodedure
    2) start windows command prompt
    3) set PATH=C:\Data\tools\xampp-7.2.16\php\;%PATH%
    4) change to the source directory, e.g C:\Data\tools\xampp-7.2.16\htdocs\orocom3.1.6
    5) run: composer install –dry-run (check if something is missing)
    6) create empty database in mysql with phpmyadmin
    7) update database name in config/parameters.yml
    8) run: composer install –prefer-dist –no-dev
    9) run: php bin/console oro:install –env=dev –timeout=24000

    eventually run
    php bin/console oro:assets:install –timeout=24000
    to install assets
    10) run: php bin/console oro:message-queue:consume

    All of them installed successfully, output information:

    ….
    ….
    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/orocrm/doc/current/install-upgrade/post-install-steps#activate-background-tasks for more information.

    My Problem:

    how can I start the web frontend to start the application ? The URL: ‘http://localhost/oropla316’ I have mentioned during the installation


    Administration setup.
    Application URL (http://localhost): http://localhost/oropla316
    Organization name (ORO):

    is not accessible even the webserver on Xampp is running and the databases are accessible. What the next steps after Installation ?

    Thank you

Viewing 10 replies - 1 through 10 (of 10 total)
  • Author
    Replies
  • #38735
    Andrey Yatsenko
    Andrey Yatsenko
    Moderator

    the url “http://localhost/oropla316” must be configured as an apache virtual host.
    See https://symfony.com/doc/current/setup/web_server_configuration.html#apache-with-mod-php-php-cgi

    #38736

    kis.salem
    Participant

    Hi Andrey,

    thank you very much. As I do not have admin rights on my laptop (to be able to change the hosts file), I have added these lines to …xampp-7.2.16\apache\conf\extra\http-vhosts.conf instead and restarted appache:

    <Directory c:/data/tools/xampp-7.2.16/htdocs>
    Require all granted
    </Directory>

    NameVirtualHost *.80

    <VirtualHost *:80>
    ServerName orocom315.example.com

    DirectoryIndex index.php
    DocumentRoot c:/data/tools/xampp-7.2.16/htdocs/orocom315/public
    <Directory c:/data/tools/xampp-7.2.16/htdocs/orocom315/public>
    # enable the .htaccess rewrites
    AllowOverride All
    Require all granted
    </Directory>

    ErrorLog c:/data/tools/xampp-7.2.16/htdocs/orocom315/orocom315_error.log
    CustomLog c:/data/tools/xampp-7.2.16/htdocs/orocom315/orocom315_access.log combined
    </VirtualHost>

    and in c:/data/tools/xampp-7.2.16/htdocs/orocom315/public/.htaccess I have added this line

    php_value max_execution_time 480

    Unfortunately I get this error message if I try to access http://localhost/orocom315.example.com

    Warning: require(C:\Data\Tools\xampp-7.2.16\htdocs\orocom315\var\cache\prod/doctrine/orm/Proxies\__CG__OroBundleOrganizationBundleEntityBusinessUnit.php): failed to open stream: No such file or directory in C:\Data\Tools\xampp-7.2.16\htdocs\orocom315\vendor\doctrine\common\lib\Doctrine\Common\Proxy\AbstractProxyFactory.php on line 206

    Fatal error: require(): Failed opening required ‘C:\Data\Tools\xampp-7.2.16\htdocs\orocom315\var\cache\prod/doctrine/orm/Proxies\__CG__OroBundleOrganizationBundleEntityBusinessUnit.php’ (include_path=’\Data\Tools\xampp-7.2.16\php\PEAR’) in C:\Data\Tools\xampp-7.2.16\htdocs\orocom315\vendor\doctrine\common\lib\Doctrine\Common\Proxy\AbstractProxyFactory.php on line 206

    Warning: require(C:\Data\Tools\xampp-7.2.16\htdocs\orocom315\var\cache\prod/doctrine/orm/Proxies\__CG__OroBundleTranslationBundleEntityLanguage.php): failed to open stream: No such file or directory in C:\Data\Tools\xampp-7.2.16\htdocs\orocom315\vendor\doctrine\common\lib\Doctrine\Common\Proxy\AbstractProxyFactory.php on line 206

    Fatal error: require(): Failed opening required ‘C:\Data\Tools\xampp-7.2.16\htdocs\orocom315\var\cache\prod/doctrine/orm/Proxies\__CG__OroBundleTranslationBundleEntityLanguage.php’ (include_path=’\Data\Tools\xampp-7.2.16\php\PEAR’) in C:\Data\Tools\xampp-7.2.16\htdocs\orocom315\vendor\doctrine\common\lib\Doctrine\Common\Proxy\AbstractProxyFactory.php on line 206

    Did I forgot to start on install something else ?

    Thx in advance

    #38737

    kis.salem
    Participant

    Hi Andrey,

    The file C:\Data\Tools\xampp-7.2.16\htdocs\orocom315\var\cache\prod/doctrine/orm/Proxies\__CG__OroBundleWorkflowBundleEntityWorkflowStep.php

    mentioned in the error message is not available, do you know why it was not created ?

    Best regards

    #38738

    kis.salem
    Participant

    Warning: require(C:\Data\Tools\xampp-7.2.16\htdocs\orocom315\var\cache\prod/doctrine/orm/Proxies\__CG__OroBundleWorkflowBundleEntityWorkflowStep.php): failed to open stream: No such file or directory in C:\Data\Tools\xampp-7.2.16\htdocs\orocom315\vendor\doctrine\common\lib\Doctrine\Common\Proxy\AbstractProxyFactory.php on line 206

    Fatal error: require(): Failed opening required ‘C:\Data\Tools\xampp-7.2.16\htdocs\orocom315\var\cache\prod/doctrine/orm/Proxies\__CG__OroBundleWorkflowBundleEntityWorkflowStep.php’ (include_path=’\Data\Tools\xampp-7.2.16\php\PEAR’) in C:\Data\Tools\xampp-7.2.16\htdocs\orocom315\vendor\doctrine\common\lib\Doctrine\Common\Proxy\AbstractProxyFactory.php on line 206

    Warning: require(C:\Data\Tools\xampp-7.2.16\htdocs\orocom315\var\cache\prod/doctrine/orm/Proxies\__CG__OroBundleTranslationBundleEntityLanguage.php): failed to open stream: No such file or directory in C:\Data\Tools\xampp-7.2.16\htdocs\orocom315\vendor\doctrine\common\lib\Doctrine\Common\Proxy\AbstractProxyFactory.php on line 206

    Fatal error: require(): Failed opening required ‘C:\Data\Tools\xampp-7.2.16\htdocs\orocom315\var\cache\prod/doctrine/orm/Proxies\__CG__OroBundleTranslationBundleEntityLanguage.php’ (include_path=’\Data\Tools\xampp-7.2.16\php\PEAR’) in C:\Data\Tools\xampp-7.2.16\htdocs\orocom315\vendor\doctrine\common\lib\Doctrine\Common\Proxy\AbstractProxyFactory.php on line 206

    #38739

    kis.salem
    Participant

    Hi Andrey,

    I have managed to solve it. I have started this command to create the classes:

    php bin/console cache:warmup –env=prod

    The page is reachable but I get this error message in the middle of the page:

    404 Not Found

    The page you requested could not be found. Please make sure the path you used is correct.

    Click to go back

    BTW: what is really the difference between the prod and dev environment ?. I would like to work on the code and make ome customisation with eclipse. Which one should I install ?
    Thx

    #38741
    Andrey Yatsenko
    Andrey Yatsenko
    Moderator
    #38742

    kis.salem
    Participant

    Thank you

    #38760

    kis.salem
    Participant

    I could now install procommerce and orocrm and login into the backend as admin

    #40370

    smohan
    Participant

    Hi kis.salem

    As per steps mentioned above I was trying to install orocommerce application on my windows 10 pc using xampp v3.2.4.
    Your instructions was very helpful, but I have some issues on final stages.

    tried to get the app using the url: http://localhost/app_dev.php

    So I got this error:
    Warning: require(E:\xampp\htdocs\orocm\var\cache\prod/doctrine/orm/Proxies\__CG__OroBundleWorkflowBundleEntityWorkflowStep.php): failed to open stream: No such file or directory in E:\xampp\htdocs\orocm\vendor\doctrine\common\lib\Doctrine\Common\Proxy\AbstractProxyFactory.php on line 206

    After that I tried to run the command: php bin/console cache:warmup –env=prod

    got the same error, please help

    thanks in advance

    #40382
    Andrey Yatsenko
    Andrey Yatsenko
    Moderator

    Hi Smohan,

    Usually, when you have an error about not loaded class in the cache you have to clear the cache folder manually with rm -rf var/cache/* command and rerun the cache warm up again.

    If it doesn’t help, please specify in what exact step it is failing.

Viewing 10 replies - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No