开发者

Symfony 1.4 on server

i make my apps in Symfony 1.4 on localhost. He开发者_如何转开发re is OK, but if i upload all files in www server then if i open:

www.mysite.com/

then i have error:

symfony PHP Framework page not found Oops! An Error Occurred The server returned a "500 Internal Server Error".

Something is broken Please e-mail us at [email] and let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused. What's next

    Back to previous page
    Go to Homepage

but if i open www.mysite.com/frontend_dev.php

then all is good.

where i must search error? how can i fix it?


You must clear the cache.

php symfony cc


In your config file change the envirment to Live currently you are on development envirment


did you set the permissions for the cache and the logs? and the most important, cache cleared ./symfony cc?


you can check the url by hitting www.mysite.com/frontend_prod.php


First try the "symfony cc" for cache clearing. If it doesn't work check your configured apache-errorfile.


When you say you upload files to your webserver, I guess that may be you don't have shell access. So you'll need to clear the content of cache folder.

Also log and cache folder must exist and be writable by the webserver


You must deploy your application for use anywhere else than localhost (because you are in 'development').

Check this out: http://www.symfony-project.org/jobeet/1_4/Doctrine/en/22#chapter_22_deploying


If you have ssh access to your web server type:

php symfony cc

If not make sure to clear your cache folder. Then everything will be gone well.


you must edit the routing.yml file.

# default rules
homepage:
  url:   /
  param: { module: your_module, action: your_action}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜