Why can't I see my images on this Symfony installation?

Posted on 2014-07-17
Last Modified: 2014-07-21
I'm attempting to install Symfony. In an effort to move forward, I made a copy of the symfony files and moved them over to my MAMP folder in the Applications directory after not being able to see it in my home directory. I figured maybe I missed something and this seemed like an intuitive thing to do. Sure enough, I was able to see the index.php file when I put http://localhost:8080/sfprojects/jobeet/web/index.php, thought the “8080” port was something I changed in the MAMP interface, since the changes I made to the config file didn’t seem to do anything. In any event, I get a page that looks like what I have attached.

When I go looking for “symfony_data/web/sf/,” I have no idea where that directory is. Where would it be?
Question by:brucegust
    LVL 27

    Expert Comment

    Is that not defined in your configuration file?  Unix/linux/OSX config files usually hold clues to the location of the working directories.  Also, from your other question, it seems that you may have installed it in your user account's home directory.  That's likely the place to search if you don't see it in the configuration file.

    You should learn to navigate through the command line if you use MAMP or LAMP environments.  Open and run the following find command.

    find /Users/bruce -name index.php
    The tilde (~) will expand to the home directory path on the command line.
    find ~ -name index.php

    Add the -ls option to list it in long format.

    find ~ -name index.php -ls

    You can also search the other terms.
    find ~ -name symfony_data
    find ~ -name web
    find ~ -name sf

    Author Comment


    OK, making some progress!

    First off, I'm learning that you have to be very aware and intentional about the spaces you have in your Terminal commands.

    I was able to successfully run the find index.php command, so that's under my belt.

    In an effort to get a bottom line to my dilemma, I ran this:

    Bruce-Gusts-iMac:~ bruce$ find ~ -name symfony_data
    find: /Users/bruce/Library/Saved Application State/com.adobe.flashplayer.installmanager.savedState: Permission denied

    It cooked for a while, and then I got the error message you see above.

    Bottom line: The images that I'm not seeing, as they're represented in the screen shot above, are in a directory that does not appear to be on my computer.

    This is the image address of one of the images that doesn't display: http://localhost:8888/sfprojects/jobeet/web/sf/sf_default/images/sfTLogo.png

    The directory, nor the image seem to exist. What am I missing?
    LVL 27

    Accepted Solution

    Since it's not in your home directory, try the find command at the root.

    find / -name symfony_data

    find / -name sfTLogo.png

    ~ in unix expands to your home directory.  Since you mentioned MAMP, and your example image shows an OSX interface, it should expand to /Users/bruce (assuming that bruce is your account)

    find ~ -name symfony
    is the same as
    find /Users/bruce/ -name symfony

    Spaces and capitalization are very important in unix systems.  The default file system is case aware and case sensitive, but you could choose to partition Mac disks to ignore capitalization as Windows does.

    Author Comment

    serialband, here's a portion of the result of the find / -name sfTLogo.png

    Bruce-Gusts-iMac:~ bruce$ find / -name sfTLogo.png
    find: /.DocumentRevisions-V100: Permission denied
    find: /.fseventsd: Permission denied
    find: /.Spotlight-V100: Permission denied
    find: /.Trashes: Permission denied
    find: /dev/fd/3: Not a directory
    find: /dev/fd/4: Not a directory
    find: /Library/Application Support/Apple/ParentalControls/Users: Permission denied
    find: /Library/Application Support/ Permission denied
    find: /Library/Caches/ Permission denied
    find: /Library/Caches/ Permission denied
    find: /Library/Caches/ Permission denied

    The "" that' sin the sandbox folder is from a different download, but there is no logo in the MAMP directory under the jobeet folder.

    I think I'm seeing what's happening. Although I'm getting a page that says I need to check my permissions, I'm thinking something happened with the way I set up the project and the necessary images didn't get moved. We may be poised on the threshold of great things!
    LVL 27

    Expert Comment

    Please precede your commands with sudo

    sudo find / -name symfony_data

    Author Comment

    The Symfony app was in the wrong folder. I changed that and I'm now cooking with grease!


    Author Comment


    I figured it out, or at least I think I've discovered something that makes a great deal of sense.

    As I was reviewing the steps in the Symfony tutorial, I realized that the Symfony app needed to the same directory as my project files and it was not.

    That said, everything that I had been wrestling with was now a moot point in that the path, which up to this point, was wrong, is now correct.

    I want to respect your time as well as your expertise, so I'm going to give you the credit for this question and, if you're willing, head out to for more easy money.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (, discussed installing the Solaris Operating S…
    Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
    Video by: Phil
    This video goes over how to configure and start a jail in FreeBSD.  This video is meant to supplement the article included with this course.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now