I seem to be having troubles getting the xdebug to work with breakpoints in my configuration of lighttpd when using rewrite and aliases. I'm curious if there is a different way of doing things that might allow it to work properly.
I've set up the following parameters in the php.ini related to xdebug (trying various combinations of settings to see if i could get it to work)
phpinfo shows that xdebug is working with remote capability on port 9000 and my fastcgi setup is using a php.socket file (I have also tried this using port 9009)
I have a default www directory set up as the server root, but what I am trying to do is to set up so I can have multiple host roots under path aliases so I can use a single server to debug multiple configurations. (I may try virtual hosting yet, but I'm trying to keep things as simple as possible) server.document-root = "/var/lighttpd/www"
So for example, my rewrite rules for a zend framework skeleton look like:
url.rewrite-once = (
".*\.(js|ico|gif|jpg|png|css|htm|html)$" => "$0",
"^/ZF2Skel/(.*)$" => "/ZF2Skel/index.php?$1",
But due to the way zend uses a 'public' folder as it's site-root, I have the ZF2Skel directory outside of the www tree and alias it similar to the following:
alias.url += ("/ZF2Skel" => "/var/lighttpd/ZF2Skel/public")
It will stop on breakpoints for php files I throw into the www directory, but for some reason, either due to the rewrite rule or the alias, it will not trigger breakpoints or otherwise function with Xdebug in any of the rewrite/alias site trees.
Any suggestions on how I might get this to work? I'd like to start adding other configurations/sites into the lighttpd setup such as a laravel site or another Zend.