tags:

views:

29

answers:

2

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
Can you give examle please
Yosef
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
Thank you very much.
Yosef
Certainly. Good luck.
Inkspeak
+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
Hi,I right with index.php its works!thank you very much!What should I change in .htaccess file?
Yosef
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
Thank you very much!
Yosef