The other approach mentioned but not explained is to put a sym link in your $PROJECT_DIR/web directory. It's almost identical to doing the Alias, but is done on command line. 'ln -s $PROJECT_DIR/lib/vendor/ symfony/data/web/sf $PROJECT_DIR/web/sf', Done using absolute directory paths as above allows you to do it from anywhere. OTOH, if MAMP is not a *nix, (I don't know), the above will not help you.
'sym link' means 'symbolic link', versus a hard link. There are advantages to that in this situation, RTM. FYI, $PROJECT_DIR above is NOT a valid string unless you've put that into your environment ;-) Subsititue the path to your project directory including the name/directory of the project direcctory. On Jul 26, 3:38 pm, Tony Piper <[email protected]> wrote: > There are two ways to fix this. The first is to create an Apache > alias, the second is to create a symlink (which might not work, > depending on your MAMP config). > > So let's try creating an alias first... > > In the MAMP settings for the site, choose the 'advanced' tab and in > the bottom box ('Customized virtual host general settings') add a > line: > > Alias /sf /home/sfproject/lib/vendor/symfony/data/web/sf > > click 'apply' and MAMP should restart the Apache and MySQL servers - > if it doesn't you'll have to do it yourself. > > Does this work? > > cheers, > > Tony. > > On Jul 26, 10:52 pm, Eno <[email protected]> wrote: > > > On Mon, 26 Jul 2010, Ted wrote: > > > I'm new to sf. I've spent days messing with the MAMP based apache > > > config. I can successfully get the project created page but not with > > > images. Docs only say "f you see no image in this page, you may need > > > to configure your web server so that it gains access to the > > > symfony_data/web/sf/ directory". I've tried every conceivable > > > iteration of the apache conf info at the bottom of this note. Also > > > tried matching file system perms to the same as the text php files > > > that do work (user=me, group=admin) in the dir where the images and > > > css live (/home/sfproject/lib/vendor/symfony/data/web/sf)but no > > > luck. I just can't look at it any more...yeah sorry for the > > > dramtics, but it's making me crazy. Thanks for any help in > > > advance.... > > > Correct me if Im wrong, but does MAMP allow you to edit the vhost > > directly? Or should the Alias directive work inside your .htaccess file? > > > (You need to restart Apache after too). > > > -- > > -- 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
