Eastern Monk
Eastern Monk

Reputation: 6655

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?

Upvotes: 0

Views: 530

Answers (3)

sonam
sonam

Reputation: 3770

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

Upvotes: 0

Eastern Monk
Eastern Monk

Reputation: 6655

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.

Upvotes: 0

greg0ire
greg0ire

Reputation: 23265

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.

Upvotes: 2

Related Questions