Any reason why my custom module's route would work on local, but not in production? I've nuked caches, upgraded, compiled, etc. Is there something I'm not considering?


<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
 <router id="standard">
    <route id="seeinstore" frontName="seeinstore">
      <module name="Ibex_Seeinstore" />


<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
    <module name="Ibex_Seeinstore" setup_version="0.0.1"/>




namespace Ibex\Seeinstore\Controller\Index;

use Magento\Framework\App\Action\Context;

class Index extends \Magento\Framework\App\Action\Action
    protected $_resultPageFactory;

    public function __construct(Context $context, \Magento\Framework\View\Result\PageFactory $resultPageFactory)
        $this->_resultPageFactory = $resultPageFactory;

    public function execute()
        $resultPage = $this->_resultPageFactory->create();
        return $resultPage;

New info: In my nginx error log, this is the only error that seems potentially relevant:

464045 access forbidden by rule, client: [redacted], server: [redacted], request: "POST /app/etc/config.php HTTP/1.1", host: [redacted]

Still totally bewildered by this -- any help would be greatly appreciated!

  • Did you check logs? – kunj May 16 '18 at 18:29
  • @kunj Which log would I check for this? – brackfost May 16 '18 at 18:34
  • Magento logs {{root path of Magento}}/var/log/ – kunj May 16 '18 at 18:36
  • Yeah, but which one? I see nothing in exception or system – brackfost May 16 '18 at 18:39
  • 1
    Ok, then please check your module exist in {{root path of Magento }}/app/etc/config.php. – kunj May 16 '18 at 18:53

If your server is running on LAMP, check your virtual host to find the log path like that:

cd /etc/apache2/sites-available/
sudo nano domainame.com.conf

You will get something like this:

virtual-host In this case, to see the error log i have to:

sudo tail -f /var/log/apache2/error.log

Once you do that try t access again your page, if there's any module missing or php error it will get prompted. Probably the problem you're facing is related to the environment and not the module itself. If you're on a Lemp stack see this https://stackoverflow.com/questions/1706111/where-can-i-find-the-error-logs-of-nginx-using-fastcgi-and-django

  • Thanks @arjus ! This helped me find my error log. I'll edit my post with the error that might be relevant. – brackfost May 17 '18 at 14:33
  • Hi @BrockfastCowboy i'm happy it worked! Edit your question when you can and please mark my answer as correct (the green check image). Best! – arjus May 17 '18 at 15:40
  • Hi @arjus -- your answer didn't help me with my issue, but it helped me find the log so I've upvoted it but haven't marked it as correct. Y'know? – brackfost May 17 '18 at 16:00
  • @BrockfastCowboy ok, I thought you reached the error and solve the problem through the log. thanks for the upvote. Cheers! – arjus May 18 '18 at 6:52

Try this:

chown -R user {{Your extension folder path}}

This command will change the user and group at the same time:

chown user:group {{Your extension folder path}}
  • What user/group should I be changing to? Root? Right now all folders/files are owned by the website user – brackfost May 17 '18 at 13:46
  • I can't suggest you without check, I would suggest you to ask that server management user. – kunj May 17 '18 at 14:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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