Hallo Community,
ich würde gerne eine Testmodul "enablen" bei Eingabe bin/magent module:enable ** kommt die Meldung
app@xxx-xxx-xxx-cmbl:/$ bin/magento module:enable Thisisastart_HelloWorld
bash: bin/magento: No such file or directory
Habe schon mehrere Anläufe unternommen, ich muss in ein bestehendes System springen deswegen könnte die Ordnungerstruktur komplexer sein wie bei einer Neuinstallation...
Bitte um Hilfe, danke und Gruß
Solved! Go to Solution.
Hi @racexwebde2b71 ,
Es scheint, dass Sie den Befehl nicht aus dem richtigen Verzeichnis auf dem Server ausführen.
Sie müssen zunächst in das Root-Verzeichnis Ihrer Magento-Installation wechseln und dann denselben Befehl ausführen.
Beispiel:
cd /var/www/html/magento2
bin/magento module:enable Thisisastart_HelloWorld
Problem gelöst? Als Lösung akzeptieren!
Thanks
Ankit
Ill get this message when I try to get to root folder:
app@levfl5-capalus2dev-magweb-cmbl:/var/www$ dir
dir: cannot open directory '.': Permission denied
Hi @racexwebde2b71 ,
You need to confirm about server user and path where magento 2 folder structure available (root folder for magento2)
After that only I suggest to execute any commands as it can affect whole website if you are not aware about permissions and proper user before executing commands.
MOI Qatar (Ministry of Interior Qatar), established in 1970, is the main government department responsible for keeping the country safe and secure. I
That issue usually happens when the Magento CLI path isn’t set correctly or permissions are missing. Running the command from the project root or checking file execution rights often fixes it. In a similar way, platforms like MOI Qatar focus on smooth functionality and accessibility — making complex processes easier for users.