Hi,

Ok, so you need to point the Alias to the symfony libraries.

Alias /sf /path/tp/your/symfony/library/folder/data/web/sf

and the same within the following Directory declaration.

As the symfony images and css files are stored in the library it just
allows your site to use them through the /sf alias.

So yoursite.com/sf/ has access to the web files it needs.

Chris

On Jun 28, 10:00 am, vineet naik <naik...@gmail.com> wrote:
> Hi,
>
> symfony library directory is stored separately and is sibling of the
> project directory.
> where is the lib/vendor  located btw.. could not find it.. or do i
> need to create it ?.. where in that case ?
>
> this is the vhost file
>
> Listen 127.0.0.1:8080
> <VirtualHost sfproject.kp>
>   DocumentRoot "/home/vineet/public_html/sfproject/web"
>   DirectoryIndex index.php
>   <Directory "/home/public_html/sfprojects/web">
>     AllowOverride All
>     Allow from All
>   </Directory>
>
>   Alias /sf /home/sfproject/lib/vendor/symfony/data/web/sf
>    <Directory "/home/sfproject/lib/vendor/symfony/data/web/sf">
>      AllowOverride All
>      Allow from All
>    </Directory>
>
> </VirtualHost>
>
> Thanks
>
> On Jun 28, 1:45 pm, catchamonkey <ch...@sedlmayr.co.uk> wrote:
>
>
>
> > Hi,
>
> > Yes, the Alias declaration makes the sf files available to your
> > project via apache.
>
> > Can you paste the entire vhost for me?
> > I think you will just need to point the Alias to the correct location
> > and restart apace.
>
> > Where are the symfony libraries stored on your server?
> > Do you have a single copy? Or is it within the project folder under /
> > lib/vendor ?
>
> > Chris
>
> > On Jun 28, 9:39 am, vineet naik <naik...@gmail.com> wrote:
>
> > > Hi,
>
> > > thanks for the response.. actually that was happening due to a very
> > > silly mistake of accidently deleting a folder!
>
> > > Okay so now i am getting the 'Symfony Project Created' page but
> > > without the css.. main.css file is found
> > > but the following files are giving 404 not found error...
>
> > > screen.css , sfTLogo.png and ok48.png
>
> > > I checked the uri for these in the source. its in some dir called /sf/
> > > sf_default which doent seem to be present.
>
> > > i am assuming the directory alias in the apache conf file is doing
> > > this routing
>
> > > my directory structure is as follows
> > > public_html has all projects as well as the framework libraries.. each
> > > project having it own virtual host
> > > so symfony core dir is here along with the sfproject which is a
> > > project generated using symfony, which means there is no sfprojects/
> > > jobeet/ but only sfproject/
>
> > > i checked the lines of rules in the apache conf file for this vhost
> > > which are
>
> > > Alias /sf /home/sfproject/lib/vendor/symfony/data/web/sf
> > >    <Directory "/home/sfproject/lib/vendor/symfony/data/web/sf">
> > >      AllowOverride All
> > >      Allow from All
> > >    </Directory>
>
> > > i observe that the '/home/sfproject/lib/vendor/' dir doesnt exist as
> > > well ... what am i missing here ?
>
> > > Thanks a lot..
>
> > > On Jun 28, 1:13 pm, catchamonkey <ch...@sedlmayr.co.uk> wrote:
>
> > > > Hi,
>
> > > > Have you taken a look at your apache logs?
> > > > If you are getting a 500 response there could be a more helpful
> > > > message there.
>
> > > > Chris
>
> > > > On Jun 28, 8:23 am, vineet naik <naik...@gmail.com> wrote:
>
> > > > > Hi,
>
> > > > > I am new to symfony, and trying to set up a project for the first
> > > > > time. I installed it almost as per the getting started section of the
> > > > > practical symfony for doctrine and created virtual host on my local
> > > > > server. But when i go to the address, it shows a blank page. The
> > > > > firebugs 'Net' shows 500 internal server error.
> > > > >  print statements in the /web/index.php file before  dispatch  also
> > > > > work which means that its reaching there.
>
> > > > > I followed all the instructions in the getting started section of the
> > > > > docs but i didnt do it exactly as mentioned , i mean  i have used
> > > > > different names for a few directories while taking care that the right
> > > > > names are included  wherever required. If it doesnt get solved i ll do
> > > > > it exactly as given in the docs. Any pointers on what might be wrong
> > > > > before i reinstall ? Please help
>
> > > > > Regards

-- 
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

Reply via email to