Joined: 19 Aug 2007 |
Posts: 15 |
|
|
|
Posted: Sat Aug 18, 2007 1:56 pm |
|
|
|
|
|
I'm currently evaluating PHPED and have spent several hours trying to configure it with some success and some failure. So far, I have been able to run the debugger on my local computer and also publish files to the remote server, but I'm not able to get the debugger running on a remote server. I've read all the FAQs that pertain to debugging but still no success.
I've installed the debugger module, added code to php.ini, configured the Project. Win XP firewall is configured to allow dbg listener and there is no firewall on the server.
When I try to run the debugger on the remote server, I get the error popup: "Failed to start debug session (timeout). Please make sure that debugger module is installed on server that corresponds to http://mywebserver/main/index.php"
I've included the php.ini lines that I've added and the output of the dbg wizard. If there's any other info that would help, just let me know.
Any help would be greatly appreciated. From what I can tell so far, PhpED could be a great tool.
PHP.INI ADDED LINES:
extension_dir = "/usr/lib/php"
[Zend]
zend_extension=/usr/lib/php/dbg.so-5.2.x
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.0.1
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.0.1
zend_optimizer.version=3.0.1
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so
[debugger]
debugger.enabled=on
;debugger.profiler_enabled=on
debugger.hosts_allow= 68.35.2.66 localhost
debugger.hosts_deny=ALL
debugger.ports=7869, 10000/16
DBG WIZARD OUTPUT:
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.0
Web Server: Apache/1.3.37 (Unix) PHP/5.2.0 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a
Server Name: mywebserver
OS: Linux
Your Client IP Address: 68.35.2.66
Your Server IP Address: YYY.YYY.YY.YY
Port: 80
Your Web Server and PhpED are on different machines
Path to website files: /home/rcd7/public_html/lucashoo/
Document Root is: /home/rcd7/public_html/lucashoo/
Your PHP.INI file is /usr/local/lib/php.ini
PHP extensions directory is /usr/lib/php
DBG (PHP DEBUGGER) Version 3.2.3 is INSTALLED
How to setup your PhpED Project Properties
I can suggest the following settings for your Project to debug PHP scripts on Server mywebserver :
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:
Select the location where you will store the copies of the files from /home/rcd7/public_html/lucashoo/ from your server mywebserver .
Note: if you are using Samba or some other file sharing system, you can simply point Root Directory to /home/rcd7/public_html/lucashoo/ instead of copying it
Mapping -> Run Mode: HTTP Mode (3-rd party WEB server)
Mapping -> Remote URL: http://mywebserver/
Mapping -> Remote Root Directory: /home/rcd7/public_html/lucashoo/
|
|