I have xdebug installed and working on my mac but I can't seem to get it installed on my server ( a bluehost.com server). I have been trying for ages and would appreciate any help possible.
Basically I have downloaded 'xdebug.so' and installed it in my /public_html/ directory
I then go into my php.ini file (which is in the same directory) and I remove any other [zend] references and inserted the following:
zend_extension=/home1/[myUserName]/public_html/xdebug.so
zend_extension_ts = /home1/[myUserName]/public_html/xdebug.so
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_mode=req
This is basically exactly as what I have on my mac and it's working fine.
The reasons I have 'home1' instead of 'home' is because that's how bluehost set up my site. Also I have tried using both just to check but without luck.
When I run phpInfo() I don't get any references to Xdebug.
I'm at a loss here it took me hours to set it up on my mac (months ago) and now I have spent hours trying to set it up on my server.
Note: I have connyacted bluehost.com for help but am still waiting. They also say they don't provide support for such issues so I am not holding my breath.
Thanks in advance!
xdebug.remote_host
points to where X-Debug is supposed to connect to when hitting a breakpoint. Unless you're running a debugger on your server,localhost
needs to be set to your current IP address.Also, if you're in full control of that server, install X-Debug "properly". I.e. on a server running Debian, you'd have to
apt-get install php5-xdebug
.