cancel
Showing results for 
Search instead for 
Did you mean: 

Magento2 Error while running commands

Magento2 Error while running commands

Hello All,

I am getting error while running php bin/magento deploy:mode:set production 

Screenshot from 2018-11-02 17-57-33.png

Please give me proper solution.

 

Certified Magento 2 Developer
Vivek Singh
2 REPLIES 2

Re: Magento2 Error while running commands

Hi @Vivek Singh

 

I understand the error you are facing - but we are not able to see your screenshots - kindly share the error log which you are able to see  - its help us to troubleshoot the issue !

 

if issue solved,Click Kudos & Accept as Solution

Re: Magento2 Error while running commands

Hello @Manthan Dave

 

I am facing these issues 

 

php bin/magento deploy:mode:set production 
Enabling maintenance mode
Starting compilation
Something went wrong while compiling generated code. See the error log for details.
Disabling maintenance mode
Command returned non-zero exit code:
`/usr/bin/php -f /var/www/html/bin/magento setup:di:compile`

And when i see error log its an error of memory limit. I increase the memory limit in php.ini file but i think this is not the right solution.
 
Can u suggest me any better solution for this?
Certified Magento 2 Developer
Vivek Singh