开发者

What are the possible issues in installing Symfony on shared hosting

I have developed an application in symfony which will have to be made live in few days. On a shared hosting service provider like GoDaddy I will have to keep the开发者_开发百科 whole framework in the public_html.

Certainly there are security issues but cant they be fixed in some way or other?


Have you read this page? I think it covers the most severe security issues with symfony and shared hosting. I found it by searching 'symfony shared hosting' on google.


I realized that Symfony is simply excellent when it comes to dedicated hosting. For very security conscious person it is a simply No-No situation but in that case even shared hosting should be No-No for such applications.

The most annoying thing about symfony was that everything was under public_html. so the user could very easily read by yaml files. I could fix this using hotlink protection. Now thats certainly not fullproof but for my application it is okay.


Nowadays in shared hosting u get a directory above public_html. for eg:

/home/mysite.com
   -logs
   -etc
    ....
   -public_html

So the things you want to publicly accessible can go in public_html and the things you dont want can reside outside public_html.

In symfony2, the web folder contains the front controllers (app.php, app_dev.php) and the resources like images,css, js files. just rename the web folder to public_html. read this article on how to rename web folder to public_html: http://symfony.com/doc/current/cookbook/configuration/override_dir_structure.html#override-the-web-directory

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜