You can make it with PHP! It's a hard, but functional, way: http://php.net/symlink
On Mon, 2010-08-02 at 19:00 -0300, Gustavo Adrian wrote: > First of all, thanks for your reply! > > > > The problem of creating a symlink comes from the fact that I have a > shared hosting. Is there a way of doing this on a shared hosting > without ssh access?. > > > Anyway, remember that my app is working 100%. My problem lies in the > place where my app looks for the assets. I think it has to be a way to > fix this from .htaccess and I thought that using > "RewriteBase /demos/myDemoApp" would work but it didn't. It still > looks on the main domain for my assets (For ex: > www.maindomain.com/css/style.css) when it should look for them on > www.maindomain.com/demo/myDemoApp/css/style.css. > > > > > > > Thanks! > > > On Mon, Aug 2, 2010 at 5:14 PM, Luciano A. Andrade > <andrade.luci...@gmail.com> wrote: > > The easy way to do this is with a symlink from public_html to > web (on your symfony proyect) symlink will work if apache is > correctly configured, ie, followsymlink is active. > > Other easy option is change the way the front controller loads > the config, just put every thing from your web directory in > public_html and change the relative path that includes the > configuration > > on sf 1.0 it means change the line > define('SF_ROOT_DIR', realpath(dirname(__FILE__).'/..')); > > on sf 1.2 (or 1.1 don't remember) to change the following line > > require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php'); > > on the files you use to access your sf app usually > frontend.php / frontend_dev.php / index.php / admin.php / > admin_dev.php ...etc. > > 2010/8/2 Gustavo Adrian <comfortablynum...@gmail.com> > > Anyone? > > > > > > > On Fri, Jul 30, 2010 at 1:13 PM, Gustavo Adrian > <comfortablynum...@gmail.com> wrote: > > Hi all, > > > > This is a topic I've been avoiding for a long > time but now I need to deploy my app on a > subdirectory and there's no other option. > IMPORTANTE: It's on a SHARED HOSTING. > > > The app dir structure now is something like > this: > > / > /demos > /myAppSymfonyFiles > /app > /cache > /config > /data > /lib > /plugins > /public_html > /demos > /myDemoApp > > > > > So, the public dir, as you may guessed, is > "public_html". Under /demos/myDemoApp I have > the contents of the "web" dir of Symfony. on > "myAppSymfonyFiles" I've put the other Symfony > dirs so they're private. > > > I've changed successfully the webDir from > projectConfiguration.class.php and I've > changed the path to this file on the front > controller as well. Everything works EXCEPT.. > that it looks for every asset on the MAIN > domain like: > > www.mainDomain.com/css/style.css > > When it should be.. > > www.mainDomain.com/demos/myDemoApp/css/style.css > > > I tried to change the .htaccess from > RewriteBase / to RewriteBase /demos/myDemoApp > with no success. > > > Anyone knows what I'm missing? > > > > > > > Thanks! > > > > -- > 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 > > > > > > -- > 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 > > > > > > -- > 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 Anibal Sólon -- 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