Link to home
Start Free TrialLog in
Avatar of Bruce Gust
Bruce GustFlag for United States of America

asked on

Can someone look at my config file and tell me what I'm doing wrong?

I'm going through this tutorial: http://symfony.com/legacy/doc/jobeet/1_4/en/01?orm=Doctrine and I'm making progress.

Everything is as it should be, I think, but my config file for my Apache server is something I'm not at all confident in.

All my files are in their correct directory(s). Now, it's simply a question of configuring my Apache so those files are seen when I head out to my localhost (I'm on a Mac, BTW).

Quick theory check - I'm very familiar with WAMP and in that environment, all my files are in the www directory. Here in MAMP, it appears I have some options in that my project(s) do not have to be in the MAMP application folder. I say that based on the way this Symfony tutorial has me creating my app files in my user directory. Is that correct?

I'm at the point in the tutorial where I'm changing my Apache config file by adding the following:

# Be sure to only have this line once in your configuration
NameVirtualHost 127.0.0.1:8080

# This is the configuration for your project
Listen 127.0.0.1:8080

<VirtualHost 127.0.0.1:8080>
  DocumentRoot "/home/sfprojects/jobeet/web"
  DirectoryIndex index.php
  <Directory "/home/sfprojects/jobeet/web">
    AllowOverride All
    Allow from All
  </Directory>

  Alias /sf /home/sfprojects/jobeet/lib/vendor/symfony/data/web/sf
  <Directory "/home/sfprojects/jobeet/lib/vendor/symfony/data/web/sf">
    AllowOverride All
    Allow from All
  </Directory>
</VirtualHost>

Open in new window


It says that I should now be able to access my newly created project at http://localhost:8080/index.php/ and this is what I get:

Not Found

The requested URL /index.php was not found on this server.

According to the tutorial, this is what I should be getting:

User generated image
I am learning that the solution to these kind of scenarios is oftentimes very simple. So, where is Bruce blowing it?
ASKER CERTIFIED SOLUTION
Avatar of Mazdajai
Mazdajai
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial