Currently, I use Symfony to create a small Web-Community. Because I use MAMP on my Mac, I tried to create a virtual host as said in the installation manual of Symfony and therefore I edited the httpd.conf file in the MAMP directory. Sadly I previously changed the path to my document root using the actual MAMP control to point at /Users/Grundi/Sites. This variation of the original file seems to push MAMP to rewrite the httpd.conf on every server restart - without my changes of course.
In Symfony, I then had the problem that all the files which are located in the Symfony library (web/sf/...), could not be loaded. As I also use AJAX, and therefore Prototype is needed, my whole application was broken.
The solution (for *NIX systems) is easy, of course: symbolic links! To create one, just switch to the project directory in terminal and in the folder "web":
cd /Users/Grundi/Sites/Projektname/web (Of course, you have to change the username
)
After that, you have to find out the data directory of PEAR:
pear config-show
You have to search for the value after "PEAR data directory" (for OSX, it should be something like /usr/share/pear/data) and the you have to create the actual link:
ln -s <THE_PEAR_DATA_PATH>/symfony/web/sf sf
The first part is the command (ln -s), followed by the link target, the folder which shall be linked(<THE_PEAR_DATA_PATH>/symfony/web/sf), and finally the name of the link (in our case the folder sf). You have to replace the part in the angle brackets with the above mentioned path!
If you switch to the project folder in finder, you should now find a new folder "sf" in the <projectname>/web/ directory and its icon should have a small black arrow on it, indicating it is no "normal" folder, but a symbolic link.
After this little excursion to the console, everything should work properly - at least it worked for me!
(I didn't try this on windows, but there is something similar[in german] you may try)

















Besten Dank. Bei mir scheiterts schon bei der Installation. Nach der Installation zeigts mir das Symfony Paket nicht an. Hattest du auch dieses Problem?
Andre
Nein, es hat bei mir soweit alles geklappt. Was genau wird denn bei dir wo nicht angezeigt? Gibts eine Fehlermeldung?
Ich hatte auch das beschriebene Problem. Einfach mal auf diese Seite surfen: http://www.tech-recipes.com/rx/2884/os_x_how_to_install_symfony_into_mamp/
und den Rechner danach neustarten.
Bei mir hängts jetzt bei “propel:insert-sql”. Es fehlen Treiber heißt es. Mal sehn .. Abenteuerlich …
Sowas. Das hatte ja ich geschrieben! Hee hee. Jetzt erst gesehen.
Also pear war über die Konsole nicht aufrufbar.