cancel
Showing results for 
Search instead for 
Did you mean: 

problemas com bin/magento

SOLVED

problemas com bin/magento

pessoal estou tendo problemas para executar o mesmo via terminal ao qual ocorre o seguinte erro:

 

pac@pac-VirtualBox:/opt/lampp/htdocs/code/slv$ ls
app bin composer.json COPYING.txt generated Gruntfile.js.sample lib LICENSE.txt package.json.sample pub SECURITY.md SLV.mwb update vendor
auth.json.sample CHANGELOG.md composer.lock dev grunt-config.json.sample index.php LICENSE_AFL.txt nginx.conf.sample phpserver README.md setup SLV.mwb.bak var


pac@pac-VirtualBox:/opt/lampp/htdocs/code/slv$ bin/magento
/usr/bin/env: ‘php’: No such file or directory


pac@pac-VirtualBox:/opt/lampp/htdocs/code/slv$

 

estou acessando o mesmo via bowser normalmente

 

o xampp e o ideal para rodar o magento no linux???

1 ACCEPTED SOLUTION

Accepted Solutions

Re: problemas com bin/magento


@Bhanu Periwal wrote:

Hi @artur01via91aa 

To resolve issue just check what is current php path by run below command on terminal:

which php

You will get response like "/usr/bin/php"
Now for run Magento commands you should use this like :

/usr/bin/php bin/magento setup:upgrade

It may help you to run commands.
If issue resolve, please click on 'Kudos' & Accept as Solution!


I was using xampp I moved to the separate apache, php, mysql and phpmyadmin modules and I had no more problems

View solution in original post

3 REPLIES 3

Re: problemas com bin/magento

Hello @artur01via91aa 

 

This seems issue with your PHP installation, run this command in your terminal :

 

sudo ln -s /usr/bin/php73 /usr/bin/php

(if your php version is 7.3)

 

 

XAMPP fulfils all the requirements needed to run Magento, so it is recommendable.

If you have any other cross-platform web server solution stack package which fulfils Magento requirement than that's fine also.

Requirements to run Magento on your Machine :

https://devdocs.magento.com/guides/v2.3/install-gde/system-requirements-tech.html

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy

Re: problemas com bin/magento

Hi @artur01via91aa 

To resolve issue just check what is current php path by run below command on terminal:

which php

You will get response like "/usr/bin/php"
Now for run Magento commands you should use this like :

/usr/bin/php bin/magento setup:upgrade

It may help you to run commands.
If issue resolve, please click on 'Kudos' & Accept as Solution!

Problem solved? Click Accept as Solution!

Re: problemas com bin/magento


@Bhanu Periwal wrote:

Hi @artur01via91aa 

To resolve issue just check what is current php path by run below command on terminal:

which php

You will get response like "/usr/bin/php"
Now for run Magento commands you should use this like :

/usr/bin/php bin/magento setup:upgrade

It may help you to run commands.
If issue resolve, please click on 'Kudos' & Accept as Solution!


I was using xampp I moved to the separate apache, php, mysql and phpmyadmin modules and I had no more problems