NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
How to set properties to this project


Joined: 02 Dec 2004
Posts: 21
Reply with quote
I've a project structure that I'm not able to let work.
Let me explain the situation:

the directory project is structured as following:
Code:

/home/ProjectName
    |- <some not public directories>
    |- www
         |- <some public directories>
         |- index.php



The project is stored remotely, on a linux box that has samba and that shares the project folder, so I've mapped under Windows the remote folder as S: (S:\ProjectName opens the project folder).
The www directory contains files and directories to be published.
The url http://mywebserver/ points directly to the www directory, so going to that url using the browser all works properly.

The problem is that I don't know how to set properties correctly.
I set:
Code:

Root directory: S:\ProjectName
Run Mode: HTTP mode (3rd party WEB server)
Root URL: http://mywebserver/
Remote URL: /home/ProjectName/www/
Default file to run: S:\ProjectName\www\index.php

But PHPEd returns the following error:
Code:

Failed to start debug session
Page "http://mywebserver/www/index.php" not found on the web server.

How can I fix this issue?
Thank you
View user's profileFind all posts by nicotSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
should be

Root directory: S:\ProjectName
Run Mode: HTTP mode (3rd party WEB server)
Root URL should be left empty
Remote root: /home/ProjectName/
Default file to run (as you wish, S:\ProjectName\www\index.php is okay)

then add one mapping entry on the Mapping tab:

Root directory: S:\ProjectName\www\
Root URL: http://mywebserver/
Remote root: /home/ProjectName/www/

BTW, did you see it on FAQ? Smile
http://forum.nusphere.com/howto-setup-project-with-scripts-located-out-of-web-tree-t646.html
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 02 Dec 2004
Posts: 21
Reply with quote
It works. Thanks!



ehm, I didn't Embarassed
View user's profileFind all posts by nicotSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
great, glad to hear Smile
let know if there are any further problems.
BTW, I added mini-FAQ.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Same Problem, but other Struktur


Joined: 07 Aug 2006
Posts: 1
Reply with quote
Hi,
I 've the same Problem, but my project structur is as following:
Code:

/srv/
   |- devel
   |      |- myproject (out of the web tree)
   |-www/htdocs/path/to/webroot

As I working with WinXP, I connect to /srv/devel/myproject via M:\myproject and to the webroot via N:\path\to\webroot.
How should I setup the project?
View user's profileFind all posts by oppiSend private messageICQ Number
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Erhh..

Root directory: N:\path\to\webroot
Run Mode: HTTP mode (3rd party WEB server)
Root URL http://yourserver/
Remote root: /srv/www/htdocs/path/to/webroot/


then add one mapping entry on the Mapping tab:

Root directory: M:\myproject\
Root URL: leave empty
Remote root: /srv/devel/myproject/

you may want to add M:\myproject\ to the Code Insight Includes.

and additional project with settings below:

Root directory: M:\myproject\
Run Mode: does not matter
Root URL does not matter
Remote root: does not matter

First project is for all debugging and development in the visible web. Secod project is just a branch for quick access to myproject files and you don't ever need to make it active.

BTW, why don't you map them as subdirectories under one drive letter? At least I'd tried mountvol Smile
View user's profileFind all posts by dmitriSend private messageVisit poster's website
How to set properties to this project
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic