| View previous topic :: View next topic |
| Author |
Message |
Arun Kumar Posted via mailing list.
|
Posted: Thu Jun 25, 2009 3:15 pm Post subject: Not able to debug PHP script in a Chrooted web server |
|
|
I have configured chroot in my apache server. The chroot directory is: /httpdjail. I have my htdocs inside httpdjail and it's full path is: /httpdjail/htdocs. I have created a PHP project with existing sources inside the chroot directory. When I start debugging a sample PHP script located at /httpdjail/htdocs/test/test.php, NetBeans is opening the file /htdocs/test/test.php file (Which is already created before applying chroot). Actually my web application source directory in NetBeans is /httpdjail/htdocs/test. Then Why it is opening /htdocs/test/test.php?
I have tried both NetBeans 6.5 and 6.7RC3 and I'm using XDebug.
-- |
|
| Back to top |
|
 |
Filip Zamboj Posted via mailing list.
|
Posted: Thu Jun 25, 2009 4:48 pm Post subject: Not able to debug PHP script in a Chrooted web server |
|
|
Hi Arun,
don't you have wrong path in project properties -> run configuration ->
Project URL?
I guess (and I hope I won't confuse you just a bit more) Xdebug is using
path that you use to run your project, so Project Url, then it just
sends info to netbeans. So if you have sources in location A but you use
B to start project then B is the folder that is used by Xdebug.
let me know if it helps.
Filip.
-------------
Filip Zamboj
Sun Microsystems
http://www.netbeans.org/community/issues.html
http://qa.netbeans.org
Arun Kumar wrote:
| Quote: | I have configured chroot in my apache server. The chroot directory is:
/httpdjail. I have my htdocs inside httpdjail and it's full path is:
/httpdjail/htdocs. I have created a PHP project with existing sources
inside the chroot directory. When I start debugging a sample PHP
script located at /httpdjail/htdocs/test/test.php, NetBeans is opening
the file /htdocs/test/test.php file (Which is already created before
applying chroot). Actually my web application source directory in
NetBeans is /httpdjail/htdocs/test. Then Why it is opening
/htdocs/test/test.php?
I have tried both NetBeans 6.5 and 6.7RC3 and I'm using XDebug.
-- Arun Kumar Boppudi
|
|
|
| Back to top |
|
 |
Arun Kumar Posted via mailing list.
|
Posted: Fri Jun 26, 2009 3:48 am Post subject: Not able to debug PHP script in a Chrooted web server |
|
|
On Thu, Jun 25, 2009 at 10:18 PM, Filip Zamboj <address-removed ([email]address-removed[/email])> wrote:
| Quote: | Hi Arun,
don't you have wrong path in project properties -> run configuration -> Project URL?
I guess (and I hope I won't confuse you just a bit more) Xdebug is using path that you use to run your project, so Project Url, then it just sends info to netbeans. So if you have sources in location A but you use B to start project then B is the folder that is used by Xdebug.
let me know if it helps.
Filip.
-------------
Filip Zamboj
Sun Microsystems
http://www.netbeans.org/community/issues.html
http://qa.netbeans.org
Arun Kumar wrote:
| Quote: | I have configured chroot in my apache server. The chroot directory is: /httpdjail. I have my htdocs inside httpdjail and it's full path is: /httpdjail/htdocs. I have created a PHP project with existing sources inside the chroot directory. When I start debugging a sample PHP script located at /httpdjail/htdocs/test/test.php, NetBeans is opening the file /htdocs/test/test.php file (Which is already created before applying chroot). Actually my web application source directory in NetBeans is /httpdjail/htdocs/test. Then Why it is opening /htdocs/test/test.php?
I have tried both NetBeans 6.5 and 6.7RC3 and I'm using XDebug.
-- |
|
| Back to top |
|
 |
radek matous Posted via mailing list.
|
Posted: Fri Jun 26, 2009 11:54 am Post subject: Not able to debug PHP script in a Chrooted web server |
|
|
Arun Kumar wrote:
| Quote: | I have configured chroot in my apache server. The chroot directory is:
/httpdjail. I have my htdocs inside httpdjail and it's full path is:
/httpdjail/htdocs. I have created a PHP project with existing sources
inside the chroot directory. When I start debugging a sample PHP
script located at /httpdjail/htdocs/test/test.php, NetBeans is opening
the file /htdocs/test/test.php file (Which is already created before
applying chroot). Actually my web application source directory in
NetBeans is /httpdjail/htdocs/test. Then Why it is opening
/htdocs/test/test.php?
I have tried both NetBeans 6.5 and 6.7RC3 and I'm using XDebug.
-- Arun Kumar Boppudi
| NB needs to convert URL to file and vice versa. To know more I would
need to know which URL I get from xdebug, so the best would be to
provide me with logging information, which must be enabled first
before debugging. See how to enable it:
http://wiki.netbeans.org/HowToConfigureXDebug#section-HowToConfigureXDebug-EnableXdebugLogging
Report an issue and attach(or just send me directly) log file
Radek |
|
| Back to top |
|
 |
|
|
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 You can attach files in this forum You can download files in this forum
|
|
|
|
|
|