Forums › Forums › OroCRM › OroCRM – Installation/Technical Issues or Problems › Installation out of memory >2G memory limit
This topic contains 11 replies, has 4 voices, and was last updated by bojan050 7 years, 9 months ago.
Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.
- CreatorTopic
- June 14, 2016 at 7:23 am #27184
Hi,
I’m trying to install OroCRM with this guide: https://oroinc.com/orocrm/doc/current/book/installation
I have set my php memory limit to 2G. When I execute composer install –prefer-dist –no-dev, after a while I get an out of memory error. Is it normal that this process takes up more than 2 gigs of memory?
Any idea how to proceed?
- CreatorTopic
- AuthorReplies
- June 14, 2016 at 2:48 pm #27185
Hi Bojan050,
Maybe try to download OroCRM with vendor directory, go to https://oroinc.com/orocrm/download and download OroCRM as ZIP
June 15, 2016 at 1:36 am #27186Hi, thanks for the suggestion. I tried that too yesterday. Now my install is failing at the step: Clear cache before database initialization. It fails.
The log says [Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException]
The file “The PHP executable could not be found.” does not existI am on CENTOS. WHM / Cpanel is running on it too.
Any ideas?
June 15, 2016 at 1:40 am #27187Hi bojan050,
regarding the issue with memory limit, could you please check is the composer.lock in place after the clone?June 15, 2016 at 2:01 am #27188Hi Ivan,
Yes the .lock file is in place.
June 15, 2016 at 5:53 am #27189Okay, with lots of workaround I got OroCRM installed (I used app/console oro:install –env prod –drop-database –force).
Now when I navigate I get this error in the Chrome-console en the page keeps loading until I manually refresh the page:
Uncaught Error: The route “_wdt” does not exist.
Something to do with the WebProfilerBundle?
June 16, 2016 at 7:52 am #27190Hi,
Do you have enabled xdebug when you run composer install? Anyway please follow these steps to repair your composer. Regarding to the issue with “Uncaught Error: The route “_wdt” does not exist”, do you have these lines in app/config/routing_dev.yml file?
YAML1234567891011_wdt:resource: "@WebProfilerBundle/Resources/config/routing/wdt.xml"prefix: /_wdtoptions:expose: true_profiler:resource: "@WebProfilerBundle/Resources/config/routing/profiler.xml"prefix: /_profileroptions:expose: trueJune 16, 2016 at 8:06 am #27191No, I don’t have Xdebug running. I have tried a memory_limit of 3GB and -1 in php.ini. Both to no avail.
Also, I had to change this in app.php:
PHP1$kernel = new AppKernel('prod', false);to
PHP1$kernel = new AppKernel('prod', true);otherwise I get an php executable not found error.
I guess that’s the problem.
June 16, 2016 at 8:28 am #27192Did you run for example http://orocrm-application.local/ and got 404 ?
June 16, 2016 at 8:48 am #27193When I set prod to false I get this:
Fatal error: Uncaught exception ‘Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException’ with message ‘The file “The PHP executable could not be found.” does not exist’ in /home/oerweb/public_html/oro/vendor/oro/platform/src/Oro/Bundle/InstallerBundle/CommandExecutor.php:322 Stack trace: #0 /home/oerweb/public_html/oro/vendor/oro/platform/src/Oro/Bundle/EntityExtendBundle/OroEntityExtendBundle.php(172): Oro\Bundle\InstallerBundle\CommandExecutor::getPhpExecutable() #1 /home/oerweb/public_html/oro/vendor/oro/platform/src/Oro/Bundle/EntityExtendBundle/OroEntityExtendBundle.php(97): Oro\Bundle\EntityExtendBundle\OroEntityExtendBundle->getPhpExecutable() #2 /home/oerweb/public_html/oro/vendor/oro/platform/src/Oro/Bundle/EntityExtendBundle/OroEntityExtendBundle.php(84): Oro\Bundle\EntityExtendBundle\OroEntityExtendBundle->checkConfigs() #3 /home/oerweb/public_html/oro/vendor/oro/platform/src/Oro/Bundle/EntityExtendBundle/OroEntityExtendBundle.php(62): Oro\Bundle\EntityExtendBundle\OroEntityExtendBundle->ensureIn in /home/oerweb/public_html/oro/vendor/oro/platform/src/Oro/Bundle/InstallerBundle/CommandExecutor.php on line 322
June 16, 2016 at 8:59 am #27194Here is my virtual host for apache, please set right path to PHP executable file in ORO_PHP_PATH:
INI1234567891011121314151617<VirtualHost *:80>ServerAdmin test@test.comDocumentRoot "/Library/WebServer/www/symfony/orocrm-application/web"ServerName orocrm-application.localServerAlias orocrm-application.localSetEnv ORO_PHP_PATH /opt/local/bin/php<Directory "/Library/WebServer/www/symfony/orocrm-application/web"># enable the .htaccess rewritesAllowOverride AllOrder allow,denyAllow from all</Directory>ErrorLog "logs/orocrm-application-error.log"CustomLog "logs/orocrm-application-access.log" common</VirtualHost>June 16, 2016 at 12:03 pm #27195Ha, I added the right ORO_PHP_PATH en set $kernel = new AppKernel(‘prod’, false); It’s seems to be working now!
- AuthorReplies
The forum ‘OroCRM – Installation/Technical Issues or Problems’ is closed to new topics and replies.