Hi, What should I configure when I put Zend project on windows to Ubuntu Lamp? (I asking that beacause my Zend progect not working on Ubuntu, its gives first pages, but after i enter to next page its gives me 404 error(page Not Found), I check if rewrite mod enable with : sudo a2enmod rewrite and get: Module rewrite already enabled ::: I dont have such probelm on Zend Ce and Wamp servers on Windows). Thanks, Yosef
+1
A:
Double-check your class file names. Windows is a little more forgiving on case-sensitivity issues. It's quite easy to break an application written on a PC and transferred to a LAMP box with the wrong camel-casing on class files. I learned that the hard way.
Inkspeak
2010-05-22 02:50:37
Can you give examle please
Yosef
2010-05-22 18:25:55
Sure. The Zend Autoloader expects class file names to be ucfirst() - e.g. Xml.php. If you create the class file name as XML.php (which I did when I started) the class will work fine on WAMP but will fail (throwing an error) on LAMP. This, of course, assumes you're using the autoloader.
Inkspeak
2010-05-22 20:14:28
Thank you very much.
Yosef
2010-05-22 21:00:28
Certainly. Good luck.
Inkspeak
2010-05-22 22:39:40
+1
A:
It almost sounds like the .htaccess file is not being taken into account. As a test you could try route this through index.php manually such as:
http://localhost/controller/action -> http://localhost/index.php/controller/action
This might help to narrow it down.
Alistair
2010-05-22 17:31:18
Hi,I right with index.php its works!thank you very much!What should I change in .htaccess file?
Yosef
2010-05-22 18:31:16
Have a look where you've defined your virtual host and ensure that you change AllowOverride None to become AllowOverride All. I think that should switch on the .htaccess support for you. If you're using Ubuntu check out https://help.ubuntu.com/community/EnablingUseOfApacheHtaccessFiles
Alistair
2010-05-22 18:52:39