skip to Main Content

I logged in to my terminal for run the magento command,after login to ssh on my command prompt and hit the command,and its not returning anything.

here is the command

[root@new-mt5 dev.ia****nce.com]# php bin/magento indexer:reindex
[root@new-mt5 dev.ia****nce.com]#

after hitting the command it not returning anything, I am using this command to my magento root dir.

how to solve this issue?

3

Answers


  1. are you on the right directory? check if the magento binary is there. you can do this by listing bin directory (ls bin/)

    Login or Signup to reply.
  2. Follow this steps:

    1. Try to check the env.php file . check if all the environment settings are correct. make sure your SQL server is running.
    2. try to check the files permission check this docs -> Filesystem permissions
    3. Make sure you PHP version are compatible with your M2 version.
    4. Try to remove cache rm -rf var/cache var/page_cache generated/code generated/metadata
    Login or Signup to reply.
  3. I know this is old, but this can help someone else

    Check your php.ini for memory limits.

    You can put something like 6g for a better performance or event -1 for maximum available memory.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search