Debugging with Local Webserver, Setting up Symfony2 Project
First, congrats on releasing PhpStorm5. I've been waiting for it to actually switch to using PhpStorm, and am not commited to learning it.
But I'm stuck the same place I got stuck before -- when creating a new project, I select "Local Web Server" and "Local Sources" (first option) but get stuck on the simple questions. First question: "Choose a Directory to create the project in". Is that the directory where my source files exist? Or is this for phpStorm-related files.
The core issue is probably the Add Local Server, and the url to the configuration root.
Maybe it'd be easier if I just explained the Symfony Standard setup. Let's say I have a domain SymfonyStandard.com, and I have local.SymfonyStandard.com pointing to 127.0.0.1. I've downloaded the source files into
/var/www/symfony-standard
From the symfony sample project at
https://github.com/symfony/symfony-standard
The web root is at
/var/www/symfony-standard/web
The main controller file is app_dev.php, so to launch my app, I want to go to
http://local.symfonystandard.com/app_dev.php
My webserver is local, my files are local.
So what URL do I use when setting up the new local server. The prompt says "Browse Files on Server" and then Web Server Root Url. I tried
http://local.SymfonyStandard.com
http://local.SymfonyStandard.com/app_dev.php
but that didn't work.
Then it ask for the web path for the project root. I'm confused, because my web files are in /web, but my DOCUMENT_ROOT is set to /var/www/symfony-standard/web
Sorry, I'm sure these are simple questions. Is there a video you can point me to that I can walk through?
Thanks, and again, congrats. I'm very excited about the new Symfony2 support.
Tac
请先登录再写评论。
Hi there,
Instead of going trough the wizard, I would suggest just use "File | Open Directory" and configure the rest manually when required (less confusing).
I'm not using Symfony2, but have somehow similar setup, when webroot is not root of the project but just a subfolder. The idea is: