I first "tried" phped as a trial way back when a few years ago when I was trying to learn php. I put it aside because the set up of the project never got off the ground. Now here I am finally back from my side track and distractions to try to pick it up again from where I left off. And guess what? I still can't get it working on my PC!
I'm trying to configure WAMP with phped so I can debug on my Windows XP system locally. I installed the Debugger and followed the wizard to the letter but I get an error saying that the Remote Root Dir and Root URL are incorrect in my project settings when I try to run a file in my root directory.
WAMP installs to C:\wamp\www\all_my_web_files_here
My Apache DocumentRoot is "c:/wamp/www/" (that's right from my httpd.conf file)
I read a post here in the forums that the remote root directory should be /var/www..., but my PC is running Windows and not Linux file system. I tried the slashes in the path as both "/" and "\"
I hope someone can offer some help.
I attached my output of the DBG script and a screen of my project settings. I've tried many different things in the project settings so I give up unless someone spots something!
Also, not sure why the system adds an extra backslash to the DocumentRoot below??
Please don't point me to the url -
http://www.nusphere.com/kb/technicalfaq/howto_set_project_mapping.htm?3
I did not find it helpful in my case.
Quote: |
What did I find out about your system
I assume that you placed me in the directory of your main php script and on your PhpED machine pointed your browser to me - like this: <URL of your web site>/dbg-wizard.php
I see that:
* PHP Version: 5.2.5
* Web Server: Apache/2.2.6 (Win32) PHP/5.2.5
* Server Name: localhost
* OS: WINNT
* Your Client IP Address: 127.0.0.1
* Your Server IP Address: 127.0.0.1
* Port: 80
* Your Web Server is on the same machine with PhpED
* Path to website files: C:\wamp\www\
* Document Root is: C:\wamp\www\\
* Your PHP.INI file is C:\wamp\bin\apache\apache2.2.6\bin\php.ini
* PHP extensions directory is c:\wamp\bin\php\php5.2.5\ext\
* DBG (PHP DEBUGGER) Version 3.2.10 is INSTALLED
How to setup your PhpED Project Properties
I can suggest the following settings for your Project to debug PHP scripts on Server localhost :
You can create new Project by selecting File->New Project or by selecting New Project in the Workspace Pop up Menu
In the Project Properties Dialog set:
* Project -> Root Directory: C:\wamp\www\
* Mapping -> Run Mode: HTTP Mode (3-rd party WEB server)
* Mapping -> Remote URL: http://localhost/
* Mapping -> Remote Root Directory: C:\wamp\www\ , same as Project -> Root Directory.
|