Solved

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

Posted on 2014-07-21
1
350 Views
Last Modified: 2014-07-26
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:

screenshot
I am learning that the solution to these kind of scenarios is oftentimes very simple. So, where is Bruce blowing it?
0
Comment
Question by:brucegust
1 Comment
 
LVL 21

Accepted Solution

by:
Mazdajai earned 500 total points
ID: 40210702
Where is index.php at? Can you provide the following output ?

ls -alh /home/sfprojects/jobeet/web
netstat -ant |grep 8080

Open in new window

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Recently I spent hours debugging an issue in a Rails project where ActiveRecord was causing MySQL errors trying to create a User object of a class at the top level of a Single Table Inheritance model structure.  It turns out `.create` behaves differ…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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…

863 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

19 Experts available now in Live!

Get 1:1 Help Now