project cannot reside in the folder

I still can't wrap my head around the "New project from existing files" wizard....

I'd appreciate a clear explanation.

File | New Project From Existing Files - Web server is installed locally, source files are located elsewhere locally 

After that comes the "Project local path" text box which this guide says one must "specify the local folder where the new project will be set up. First specify the parent folder where the project folder will be created"....

I point it to the root folder of my existing files....and that might be an error (?)

On the next screen if I choose to "Add new remote server" then on the next screen on "Upload/Download project files" text box I can not point it to the source files of my project again!

The error "project cannot reside in the folder..." pops at the bottom of that screen...

So what is the correct way to set such a project up??

Thank you

0

I point it to the root folder of my existing files....and that might be an error (?)

Yes, that's incorrect. You should point it to a folder where IDE would store downloaded files.

What goal are you trying to achieve?  "New project from existing files" wizard is mostly used for the cases when project files are located on a remote Web Server & you would need to download them locally.

If you already have project files locally: just use File > Open & select the top folder of the app/project.

0
Avatar
Permanently deleted user

I see...

I do remember managing this previously...

An existing project that I opened through that wizard and defined a localhost server for...

Now I don't see the point in conecting the project to a localhost if all is anyways installed locally...

0

So, where is your project? In a local web server root?

In that case you can just use File > Open to open that project directory.

1
Avatar
Permanently deleted user

To my better judgement, I thing that the definition of the wizard is what leads people to mistake they can use Phpstorm to use it for existing file, hence the confusion & misunderstanding.

That said, my files are located outside the web server root, and a config file points to their root folder.

Look, I love intelliJ products but still,

What is the use of connecting a local project no matter where it's located, to a web server through the IDE??

0

There are at least 2 use cases: please see https://www.jetbrains.com/help/phpstorm/configuring-synchronization-with-a-remote-host.html and https://www.jetbrains.com/help/phpstorm/deploying-applications.html

Connecting a project with a web server provide an option to configure a deployment: automatic or manual. This way you can upload changed files to a web server in an easier way.

0

请先登录再写评论。