Solved

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

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

744 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

12 Experts available now in Live!

Get 1:1 Help Now