cancel
Showing results for 
Search instead for 
Did you mean: 

bash: bin/magento: /usr/bin/env: bad interpreter: No such file or directory After moving domain

SOLVED

bash: bin/magento: /usr/bin/env: bad interpreter: No such file or directory After moving domain

Have Moved m2 from development to production domain, (moved webfiles and database etc.)

 

On trying to run the normal bin/magento commands I get this error: bash: bin/magento: /usr/bin/env: bad interpreter: No such file or directory

This is logged into the domain space as the user.

 

If I login as root user I can run the commands successfully, however think this causes some permission issues with files that are generated...

 

Store can see sql database, everything is mostly running as expected, just a few issues

 

What have I missed ?

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: bash: bin/magento: /usr/bin/env: bad interpreter: No such file or directory After moving domain

Solved

Webspace ssh access was set to bin/bash (chrooted)

should just have been set to bin/bash

 

View solution in original post

1 REPLY 1

Re: bash: bin/magento: /usr/bin/env: bad interpreter: No such file or directory After moving domain

Solved

Webspace ssh access was set to bin/bash (chrooted)

should just have been set to bin/bash