Solved

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

Posted on 2014-07-21
1
357 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 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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

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 i…
There is a huge demand for CodeIgniter among the PHP web developers due to its dynamic features and benefits these days. It is one of most popular and agile open source PHP framework for creating robust web applications in PHP web development field.…
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.:
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

623 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