so I've been using Zend framework to develop the site locally and everything works just fine....but then after I upload everything into a remote server, zend framework did not work even though I changed none of the source code.....
so here's what I know...
- the remote server supports PHP, MySQL, etc just fine and they are of the latest versions
- remote server supports .htaccess and mod rewrite just fine and they are enabled and I've tested them
- I did not change any of the source code and the source code works perfectly on the local server...
- Zend Framework is not boostrapping properly...whenever I go to a controller page such as http://mysite.com/controller/action <---not a real url, it would instead display a 404 error....so I know that it's not being redirected to index.php as it should....
any idea on what could possibly be wrong and on how and where I should start to tackle solving this problem?
thanks in advance
I'd start by checking the error logs. If its a Linux server you'd be checking somewhere in
/var/log
, probably even/var/log/apache2/
.Check the access and the error logs.
Possible causes
Is the server you're connecting to a shared hosting account? If so, that ended up being an issue for me. If you don't have access to your hosting root (godaddy or like hosting), you may need to just restructure your directory layout to work completely within the public_html. Not quite as secure unless you do some extra work here an there, but the 404 error reminded me of why I dropped hosting for my own actual server.
You could tell us the error but... here are some issues that can make it not to work:
If you send the error maybe we can help you more