Confusion with cli / apache php's

Jeff Greenberg listmail.ayendesigns at
Tue Dec 2 20:04:33 PST 2014

I have php53 thru php56 installed. My ide (PhpStorm) is pointing at php55,
for which I have xdebug installed. I could get xdebug to work fine from
inside the ide on a given script, or from the command line, but not from
the browser.

The PhpStorm folks finally asked me to send the output of phpinfo from the
browser, which is when I discovered that php under apache is running 5.4,
without xdebug.

I googled and read an article that explains about using port select, but
apparently that changes the cli version, which is already correct. it also
explains changing the loadmodule line in the apache config to point to the
correct php version. This is when I discovered that the only
file I have in the apache modules directory is

So, 3 questions:
1. How/From where do I get other files?
2. Is there an automated way to switch php versions under apache like there
is for the cli?
3. Do I need to install xdebug separately for the php instance under apache
if it's already installed for the cli instance? I'm unsure whether there
are actually 2 different copies of php or whether the loadmodule just gets
some initial things from the .so file and then uses the php files from


--- /
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the macports-users mailing list