OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

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 6 years, 4 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #32499

    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
  • #32500

    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.

    #32501

    Michael
    Keymaster

    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.

    #32502

    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

    #32503

    icilisten
    Participant

    Thank you Aleksandr for your help!

    #32504

    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)

The forum ‘OroCommerce’ is closed to new topics and replies.

Back to top