[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

What is wrong with my Symfony Configuration?

Posted on 2014-07-17
6
Medium Priority
?
483 Views
Last Modified: 2014-07-26
Towards the end of the first tutorial (http://symfony.com/legacy/doc/jobeet/1_4/en/01?orm=Doctrine), I’m asked to change the configuration of my server so it’s looking in my “bruce” folder (home/ sfprojects/jobeet/web/index.php). Here’s what I did:

# 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>

I’m changing the port and the root directories. Simple enough. Thing is, ” home/sfprojects/jobeet/lib/vendor/symfony/data/web/sf” doesn’t exist. That may not make a difference, but when I went to see the page that’s supposedly at http://~localhost~:8080/, I get a “page not found” error. What am I doing wrong?
0
Comment
Question by:brucegust
  • 3
  • 3
6 Comments
 
LVL 13

Expert Comment

by:duncanb7
ID: 40201596
Did you try the port besides 8080 such as 9090 ?
Did you stop and start apache again ?
Did you find the index.php at that directory on shell command, for example, ls /home/sfprojects/jobeet/web/index.php  ?

Duncan
0
 

Author Comment

by:brucegust
ID: 40201784
Duncan! I'm glad you're up, my friend!

When I go the shell command route, first off, I'm using this: ls home/sfprojects/jobeedt/web/index.php. I'm omitting the first "/" and I wanted you to see that, being that I'm not sure that's a deal breaker or not.

The screen print I have attached shows you, both the outcome of the command (which was successful), as well as the way I have things set up as seen in my Finder.

I have re-started Apache. I have not tried any other ports other than the ones specified in the tutorial I'm attempting to make my way through (http://symfony.com/legacy/doc/jobeet/1_4/en/01?orm=Doctrine).

What do you think?
0
 
LVL 13

Expert Comment

by:duncanb7
ID: 40201814
Please answer my question ?

Try other port such as 9090 instead of 8080  since your system might be using 8080
for other application and check whether the file of index.php
is at that directory first or not

Duncan
0
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!

 

Author Comment

by:brucegust
ID: 40202066
OK, I changed the port to 9090 and when I open up MAMP after restarting it, I get this URL: http://localhost:9090/MAMP/?language=English and I get the MAMP start page.

If I try this: http://localhost:9090/home/sfprojects/jobeet/web, I get a page not found.

Things is, that doesn't surprise me because I'm assuming that MAMP is not looking for a file outside the MAMP application itself, correct? So if I don't have a "home" directory in my MAMP application, should I expect it to open up a page that's sitting in my user/bruce directory?
0
 
LVL 13

Accepted Solution

by:
duncanb7 earned 2000 total points
ID: 40202093
Now you are using  MAMP ?  why not switch to XAMPP that is better
for apache setup ,
https://www.apachefriends.org/download.html
Duncan
0
 

Author Comment

by:brucegust
ID: 40202131
I'm just going by the tutorial at http://symfony.com/legacy/doc/jobeet/1_4/en/01?orm=Doctrine

Regardless of which service I use, shouldn't my Symfony project be located within my MAMP application? How can a php page work unless it's hosted within the app? It boggles my mind to think that I'm pointing my web server to a page that's in my user folder as opposed to a file that's "hosted" with my web server.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
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…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.:
Suggested Courses
Course of the Month20 days, 13 hours left to enroll

864 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