douzhantanju1849 2011-01-20 06:54
浏览 61
已采纳

文件上传到远程服务器后,zend框架无法正常工作

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...

  1. the remote server supports PHP, MySQL, etc just fine and they are of the latest versions
  2. remote server supports .htaccess and mod rewrite just fine and they are enabled and I've tested them
  3. I did not change any of the source code and the source code works perfectly on the local server...
  4. 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

  • 写回答

3条回答 默认 最新

  • douganggu4392 2011-01-20 11:51
    关注

    You could tell us the error but... here are some issues that can make it not to work:

    • mod_rewrite is off
    • .htaccess file still points you to localhost (or wherever you hosted it first)
    • incorrect configuration for php.ini file (if you have a static include you should change it so it sends to the correct include folder)
    • directory/file rights

    If you send the error maybe we can help you more

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 gg加速器加速游戏时,提示不是x86架构
  • ¥15 python按要求编写程序
  • ¥15 Python输入字符串转化为列表排序具体见图,严格按照输入
  • ¥20 XP系统在重新启动后进不去桌面,一直黑屏。
  • ¥15 opencv图像处理,需要四个处理结果图
  • ¥15 无线移动边缘计算系统中的系统模型
  • ¥15 深度学习中的画图问题
  • ¥15 java报错:使用mybatis plus查询一个只返回一条数据的sql,却报错返回了1000多条
  • ¥15 Python报错怎么解决
  • ¥15 simulink如何调用DLL文件