Magento - Frontend router works locally but not on live server
Ok 开发者_开发技巧so I have a very basic module setup. It's just a test module but essentially I should get "Here we are" displayed when I go to: http://www.mysite.com/vrmlookup/lookup/form.
The thing is that it works fine on my local machine (xampp) but I get a 404 when I try it on my live sever. It all looks fine to me and I'm utterly confused!
This is my module:
app/etc/modules/BlueDeep_MamVrm.xml:
<?xml version="1.0"?>
<config>
<modules>
<BlueDeep_MamVrm>
<active>true</active>
<codePool>local</codePool>
</BlueDeep_MamVrm>
</modules>
</config>
app/code/local/BlueDeep/MamVrm/etc/config.xml:
<?xml version="1.0"?>
<config>
<modules>
<BlueDeep_MamVrm>
<version>1.0.0</version>
</BlueDeep_MamVrm>
</modules>
<frontend>
<routers>
<vrmlookup>
<use>standard</use>
<args>
<module>BlueDeep_MamVrm</module>
<frontName>vrmlookup</frontName>
</args>
</vrmlookup>
</routers>
</frontend>
</config>
app/code/local/BlueDeep/MamVrm/controllers/lookupController.php:
class BlueDeep_MamVrm_LookupController extends Mage_Core_Controller_Front_Action
{
public function formAction()
{
die('Here we are');
}
}
I'm pretty certain that all file permissions are correct and I have cleared all cache.
Any ideas?! Thanks
The problem is in your controllers filename. It should be upper cased (LookupController.php not lookupController.php). On Windows (xampp) it doesn't matter, but on a real server (a linux/unix one) filenames are case-sensitive. Magento development should be performed on a linux system, its easier that way (you don't have to track down strange errors - like this one). Try a virtual machine as a server, and access your file via Samba. I work that way, and it doesn't make any problems.
When your Magento MySQL server is running on Windows, you could suffer from very big response times (especially while reindexing). Using a virtual machine, lets you to use your favorite Windows tools and test your app in an environment close to the production one.
精彩评论