Hi everybody and hi Yannik and Szél. Those are great ideas!
I had considered Szél way, but I didnt wanted to take the risk of being hacked due to YAML files easy access, but I will use the htaccess for security. I have some "cheap" clients hoho, yes Im starting my own business and I cant say "no" at this moment. and I dont want to do it the DIY way (Symfony advantages are good marketing advertising). Thanks everybody! 2010/11/18 Szél Péter <sze...@gmail.com> > 2010.11.19. 05:14:33 dátumon oscar balladares <liebegr...@gmail.com> írta: > > > Hi guys and girls! >> >> Is there a way to publish a Symfony project with the index.php (front >> controller) on the web-root directory? (instead of the sf_app_name/web/ >> directory). >> >> I have this question cuase there are many clients that like just to put >> the >> project folder on the >> htdocs directory (mostly are Windows users) and they expect the >> application >> to work (This way you are jumping over the virtual host configurations >> suggested on the jobeet tutorial) >> >> And also some free web hosting do not allow configuring a Virtual Host, >> they >> expect you to put your index.php on the toplevel directory and that is >> imposible with a common Symfony project hierarchy (as far as I know and >> the >> reason of my question). >> >> If I put a SF project on the top level, I would have to access my app like >> : >> http://myapp.suckingfreewebhosting.com/*web*/index.php >> when I would love to do: >> http://myapp.suckingfreewebhosting.com/index.php >> >> >> So if there is no wayto have the front controller on the web-root >> directory, >> my current thoughts are : >> >> 1-My clients should have enough money to get a web master services to >> configure the project for them. >> 2- Free hosting sucks, I should get a real hosting. >> >> That is what takes my breath away this days, cuase I do really would love >> to >> use Symfony on really small projects and not only on big projects having >> access to a virtual host, I dont want to do things like the DIY style >> anymore. >> >> Is there a way to get the front controller in the web-root directory? >> >> > Hi! > > This is unsecure, but it's easy. Just move all files in the web directory > to the root directory, then edit index.php, replace > > > require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php'); > > with > > require_once(dirname(__FILE__).'/config/ProjectConfiguration.class.php'); > > Again, this is ugly, all your files (including the settings yml files) are > visible to everyone, you have to solve this by setting .htaccess to deny > those files. > > Peter > > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en