2

My project requires to set up symfony with Nginx server. I have previously used Symfony with Apache. Currently I have followed the steps mentioned here http://wiki.nginx.org/index.php?title=Symfony&oldid=6054 ,but somehow it is not running properly.

Update: The nginx wiki now contains working configuration for symfony 1.4 and 2.0

5
  • Which symfony version? What exactly is not working? Commented Jul 15, 2011 at 12:12
  • @hakre - I am using symfony version 1.4.11 (doctrine) Commented Jul 15, 2011 at 12:14
  • And about the "somehow it is not running properly", how does this look like? Can you be more specific? Commented Jul 15, 2011 at 12:16
  • I guess i am having problem with the htaccess as i am not able to redirect other pages to index.php. Commented Jul 15, 2011 at 12:22
  • Can you please send me an example of a configuration file with symfony already set? Commented Jul 15, 2011 at 12:25

1 Answer 1

2

Here is a working symfony nginx config.

It is based on Ubuntu/Debian installations, please comment/edit at the linked post if conversion to another platform might be required.

Edit: The error mentioned in the comments has been fixed in the linked answer.

Sign up to request clarification or add additional context in comments.

5 Comments

Thanks for the config file link. But its not working,after editing all the required paths.i.e, my symfony project not working.It shows " 404 Not Found " Error.
@Janmejay: Sorry about that & thanks for testing the config, I have tested it myself now and fixed it. I also ported security related settings from my live system into the config, so I can vouch now that it is fit for production use.
so from where can i access the fixed file? is it url above which you shared earlier?
Hi, this lick is broken right now. I'm looking for correct configuration for symfony 1.4
Hey webdevbyjoss, the link works but here it is again: stackoverflow.com/questions/3998856/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.