ssossossossosso

Forums

Forums OroCommerce Could not open input file: /path/to/app/console

This topic contains 5 replies, has 3 voices, and was last updated by  icilisten 1 month ago.

  • Creator
    Topic
  • #33295

    icilisten
    Participant

    After I installed orocommerce, I run the command “php /path/to/app/console clank:server –env=prod”, but got the error message “Could not open input file: /path/to/app/console”. Can anybody kindly let me know where I did wrong and how to solve this problem?

    [root@ip-172-31-86-xxx orocommerce-application]# php /path/to/app/console clank:server –env=prod
    Could not open input file: /path/to/app/console

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • #33308

    Hi, icilisten.

    This error will show in case if file not exist. To check this case please run next shell command:

    It might be an issue with access to the file or directory, please check the doc File permissions.

    #33313

    Michael
    Participant

    And just to make sure we all have the same understanding, the “/path/to/” portion should be replaced with the actual path to the directory where OroCommerce code was deployed.
    For example, when you are currently in the directory where OroCommerce was deployed, it will be empty –

    , or it could be something like

    when you adding it to a cron schedule.

    #33319

    icilisten
    Participant

    Hi Michael,

    Thanks for the reminder. I did include “/path/to/…” in my command. Since I am a newbie, I guess I can laugh off my stupid mistake. πŸ™‚

    I run the correct command this time, but got the permission error message (as shown below). Any guidance to solve the problem? Also, should I move orocommerce-application to the html folder?

    [ec2-user@ip-172-31-86-xxx ~]$ php orocommerce-application/app/console oro:message-queue:consume –env=prod

    [Symfony\Component\Filesystem\Exception\IOException]
    Failed to create “/home/ec2-user/orocommerce-application/app/cache/prod”: mkdir(): Permission denied.

    Thanks so much,
    Gary

    #33320

    icilisten
    Participant

    Thank you Aleksandr for your help!

    #33328

    icilisten
    Participant

    For newbies like me, you just need to be in the correct directory/folder/path – orocommerce-application, then run this command:

    php app/console clank:server –env=prod

    Thanks to Michael again!

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

You must be logged in to reply to this topic.