NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Debugging application at / and library not under webroot


Joined: 06 Apr 2007
Posts: 2
Reply with quote
Hi guys,

I got PHPED a few days ago. Great piece of software!

Right now I'm starting a project with a MVC framework, so I have the following directory structure:
Quote:

C:\projects\myprj\

C:\projects\myprj\www -> This is the document root of the apache 2.2 server. I has only index.php in it, to which the apache forwards all requests using mod_rewrite, and this script forwards them to a controller in the app folder.
C:\projects\myprj\lib -> here is the libraries/framework I use. For security reasons I don't want it in the docroot
C:\projects\myprj\app -> The application itself.


I want to be able to debug the myprj application (including libs, the index.php and the app itself), but I can't configure PHPED to do so (mappings).

I tried http://www.nusphere.com/kb/technicalfaq/howto_set_project_mapping.htm?3 (example #4) but no luck.
I'm using a single project 'myprj'.
I set the root directory of the project to c:\projects\myprj, selected 3rd party web server as run mode and left the other 2 fields blank. On the mappings tab I added a record for each of the 3 subdirs (local dir = remote dir - this is my local machine). On the www folder I set url to http://localhost:8080/ (The server is at port 8080), on the other 2 I left it blank. The last rule was local directory = c:\projects\myprj and url and remote dir - empty.
Still not working.

The environment is WinXP, Apache2.2, PHP 5.2.1 with DBG working.

Also the example #4 says:
Quote:
1. Create 2 Projects: Invoicesetc and Libraries. The setup of Invoicesetc should similar to the setup described in Example #1.
2. Create a Project, called Invoicesetc.

This confuses me.

Any help would be appreciated.

Regards,
Emil Ivanov
View user's profileFind all posts by VladevSend private message
Veteran

Joined: 24 Jan 2006
Posts: 311
Reply with quote
Could you please post your Project settings and the error messages? Screenshots would be the best Thanks!
View user's profileFind all posts by yfaktorSend private message


Joined: 06 Apr 2007
Posts: 2
Reply with quote
I got it working with that same configuration. The problem, I think, was that the IDE needed to be restarted (I read somewhere on the forum about that and it helped).

Regards,
Emil Ivanov
View user's profileFind all posts by VladevSend private message
Debugging application at / and library not under webroot
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