0

I have created a very simple module. I can see it listed as disabled when I check via cli php bin/magento module:status, but when I go to admin panel Advanced -> Advanced I do not see it listed there. How should I enable the module? (other than cli, via admin panel)

1
  • Accept the answer If you find it helpful, so it helps other community members.
    – Keyur Shah
    Commented Nov 22, 2016 at 8:32

2 Answers 2

1

please run command,

php bin/magento setup:upgrade

After Run above command,do deployment,

php bin/magento setup:static-content:deploy

Remove var folder content from root.

Now you can check your changes in adminpanel.

3
  • What does this command do? Commented Nov 16, 2016 at 10:04
  • This command do unable your module. Commented Nov 16, 2016 at 10:05
  • I am searching for a non-cli way. Becuase I might not have access to SSH (which I probably would not) in a real project. Commented Nov 16, 2016 at 10:06
1

I think system() function will be your friend, if you don't have permission of CLI or If you don't want to use CLI.

To use this function , just simple create new file in your root server(Let's call it custom.php), then write below code in this file

system('php bin/magento module:status'); // you can change it to your command

And run this script with http://your base url/custom.php

It will gives you resulted output.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.