• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 382
  • Last Modified:

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

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?
screenshot
0
brucegust
Asked:
brucegust
  • 4
  • 3
1 Solution
 
serialbandCommented:
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 Terminal.app 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
0
 
brucegustAuthor Commented:
serialband

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 ~-.name 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?
0
 
serialbandCommented:
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.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
brucegustAuthor Commented:
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
/Applications/MAMP/htdocs/sf_sandbox/web/sf/sf_default/images/sfTLogo.png
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/com.apple.TCC: Permission denied
find: /Library/Caches/com.apple.Spotlight/schema.501.plist: Permission denied
find: /Library/Caches/com.apple.Spotlight/schema.89.plist: Permission denied
find: /Library/Caches/com.apple.Spotlight/schema.99.plist: Permission denied

The "sfTLogo.pn" 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!
0
 
serialbandCommented:
Please precede your commands with sudo

sudo find / -name symfony_data
0
 
brucegustAuthor Commented:
The Symfony app was in the wrong folder. I changed that and I'm now cooking with grease!

Thanks!
0
 
brucegustAuthor Commented:
serialband!

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 http://www.experts-exchange.com/OS/Unix/Q_28480360.html for more easy money.

Thanks!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now