commands are not working even i tried to give permissions

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
1
down vote

favorite












I am trying to run commands through ssh but commands are not working please check the screenshot . enter image description here










share|improve this question







New contributor




samair ali is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • what is your project folder path ?
    – Naveed Asim
    1 hour ago










  • web/shops/htdocs . i am currently in my project folder
    – samair ali
    1 hour ago










  • check this, it would be php path issue stackoverflow.com/questions/43009623/php-command-not-found/…
    – Naveed Asim
    1 hour ago
















up vote
1
down vote

favorite












I am trying to run commands through ssh but commands are not working please check the screenshot . enter image description here










share|improve this question







New contributor




samair ali is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • what is your project folder path ?
    – Naveed Asim
    1 hour ago










  • web/shops/htdocs . i am currently in my project folder
    – samair ali
    1 hour ago










  • check this, it would be php path issue stackoverflow.com/questions/43009623/php-command-not-found/…
    – Naveed Asim
    1 hour ago












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I am trying to run commands through ssh but commands are not working please check the screenshot . enter image description here










share|improve this question







New contributor




samair ali is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I am trying to run commands through ssh but commands are not working please check the screenshot . enter image description here







magento2 command-line ssh






share|improve this question







New contributor




samair ali is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




samair ali is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




samair ali is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 1 hour ago









samair ali

424




424




New contributor




samair ali is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





samair ali is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






samair ali is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











  • what is your project folder path ?
    – Naveed Asim
    1 hour ago










  • web/shops/htdocs . i am currently in my project folder
    – samair ali
    1 hour ago










  • check this, it would be php path issue stackoverflow.com/questions/43009623/php-command-not-found/…
    – Naveed Asim
    1 hour ago
















  • what is your project folder path ?
    – Naveed Asim
    1 hour ago










  • web/shops/htdocs . i am currently in my project folder
    – samair ali
    1 hour ago










  • check this, it would be php path issue stackoverflow.com/questions/43009623/php-command-not-found/…
    – Naveed Asim
    1 hour ago















what is your project folder path ?
– Naveed Asim
1 hour ago




what is your project folder path ?
– Naveed Asim
1 hour ago












web/shops/htdocs . i am currently in my project folder
– samair ali
1 hour ago




web/shops/htdocs . i am currently in my project folder
– samair ali
1 hour ago












check this, it would be php path issue stackoverflow.com/questions/43009623/php-command-not-found/…
– Naveed Asim
1 hour ago




check this, it would be php path issue stackoverflow.com/questions/43009623/php-command-not-found/…
– Naveed Asim
1 hour ago










2 Answers
2






active

oldest

votes

















up vote
2
down vote



accepted










This mean the php not set as a global variable.

So must tried with full path with php



/opt/lammp/bin/php





share|improve this answer




















  • no such file or directory found ... prntscr.com/ky5ct1
    – samair ali
    1 hour ago










  • @samairali it is example not the correct path you have to find yours.
    – PROGOSTECH
    1 hour ago

















up vote
0
down vote













Run this in SSH:



which php



And then provide the full path e.g.:



/usr/bin/php bin/magento



Replace the /usr/bin/php with the result of which php command






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "479"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );






    samair ali is a new contributor. Be nice, and check out our Code of Conduct.









     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f243568%2fcommands-are-not-working-even-i-tried-to-give-permissions%23new-answer', 'question_page');

    );

    Post as a guest






























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    2
    down vote



    accepted










    This mean the php not set as a global variable.

    So must tried with full path with php



    /opt/lammp/bin/php





    share|improve this answer




















    • no such file or directory found ... prntscr.com/ky5ct1
      – samair ali
      1 hour ago










    • @samairali it is example not the correct path you have to find yours.
      – PROGOSTECH
      1 hour ago














    up vote
    2
    down vote



    accepted










    This mean the php not set as a global variable.

    So must tried with full path with php



    /opt/lammp/bin/php





    share|improve this answer




















    • no such file or directory found ... prntscr.com/ky5ct1
      – samair ali
      1 hour ago










    • @samairali it is example not the correct path you have to find yours.
      – PROGOSTECH
      1 hour ago












    up vote
    2
    down vote



    accepted







    up vote
    2
    down vote



    accepted






    This mean the php not set as a global variable.

    So must tried with full path with php



    /opt/lammp/bin/php





    share|improve this answer












    This mean the php not set as a global variable.

    So must tried with full path with php



    /opt/lammp/bin/php






    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered 1 hour ago









    PROGOSTECH

    5387




    5387











    • no such file or directory found ... prntscr.com/ky5ct1
      – samair ali
      1 hour ago










    • @samairali it is example not the correct path you have to find yours.
      – PROGOSTECH
      1 hour ago
















    • no such file or directory found ... prntscr.com/ky5ct1
      – samair ali
      1 hour ago










    • @samairali it is example not the correct path you have to find yours.
      – PROGOSTECH
      1 hour ago















    no such file or directory found ... prntscr.com/ky5ct1
    – samair ali
    1 hour ago




    no such file or directory found ... prntscr.com/ky5ct1
    – samair ali
    1 hour ago












    @samairali it is example not the correct path you have to find yours.
    – PROGOSTECH
    1 hour ago




    @samairali it is example not the correct path you have to find yours.
    – PROGOSTECH
    1 hour ago












    up vote
    0
    down vote













    Run this in SSH:



    which php



    And then provide the full path e.g.:



    /usr/bin/php bin/magento



    Replace the /usr/bin/php with the result of which php command






    share|improve this answer
























      up vote
      0
      down vote













      Run this in SSH:



      which php



      And then provide the full path e.g.:



      /usr/bin/php bin/magento



      Replace the /usr/bin/php with the result of which php command






      share|improve this answer






















        up vote
        0
        down vote










        up vote
        0
        down vote









        Run this in SSH:



        which php



        And then provide the full path e.g.:



        /usr/bin/php bin/magento



        Replace the /usr/bin/php with the result of which php command






        share|improve this answer












        Run this in SSH:



        which php



        And then provide the full path e.g.:



        /usr/bin/php bin/magento



        Replace the /usr/bin/php with the result of which php command







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 1 hour ago









        Bare Feet

        1,1611625




        1,1611625




















            samair ali is a new contributor. Be nice, and check out our Code of Conduct.









             

            draft saved


            draft discarded


















            samair ali is a new contributor. Be nice, and check out our Code of Conduct.












            samair ali is a new contributor. Be nice, and check out our Code of Conduct.











            samair ali is a new contributor. Be nice, and check out our Code of Conduct.













             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f243568%2fcommands-are-not-working-even-i-tried-to-give-permissions%23new-answer', 'question_page');

            );

            Post as a guest













































































            Comments

            Popular posts from this blog

            Long meetings (6-7 hours a day): Being “babysat” by supervisor

            Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

            Confectionery