Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2014-07-21
1
Medium Priority
?
360 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 21

Accepted Solution

by:
Mazdajai earned 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
In this article you'll learn how to use Ajax calls within your CodeIgniter application. To explain this, I'll illustrate how to implement a simple contact form to allow visitors to send you an email through your web site.
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…
Suggested Courses

719 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