| Unable to run as php web page [message #492105] |
Sun, 18 October 2009 14:50  |
Jim Messages: 5 Registered: October 2009 |
Junior Member |
|
|
Hi,
I just installed latest version of Eclipse 3.5 and PDT, setup xdebug integration, but I couldn't use debug/run as php web page, when I try to do this or try to run/debug via run/debug configuration dialog, nothing happens, there is no browser opening the page. I can run the php file as script though.
My environment:
Windows XP
Eclipse 3.5 + PDT 2.2 (+ IDE For Java EE 1.2.1)
PHP 5.2.9
Apache 2.2
My setup:
Preferences->PHP->PHP Servers: I added
URL=http://localhost
Path on server=<Path to my local apache htdocs directory>
Path in Workspace=/Test (I have a PHP project named Test pointing to apache's htdocs)
Preferences->PHP->PHP Executables:
Executable path: <My local php.exe>
SAPI Type: CLI
PHP debugger: XDebug
Preferences->PHP->Debug:
PHP Debugger: XDebug
Server and PHP Executable: The ones I added above
Run Configurations->PHP Web Page: I added
Server Debugger: XDebug
PHP Server: The one I added above
File: /Test/test.php
URL: http://localhost/ /test.php
Any idea what's wrong?
Thanks
|
|
|
| Re: Unable to run as php web page [message #492160 is a reply to message #492105 ] |
Mon, 19 October 2009 04:03   |
|
Originally posted by: dkel50.hotremovemail.com
Can you recreate the problem using PDT 2.1 ?
Dave Kelsey
On 18/10/09 19:51, Jim wrote:
> Hi,
>
> I just installed latest version of Eclipse 3.5 and PDT, setup xdebug
> integration, but I couldn't use debug/run as php web page, when I try to
> do this or try to run/debug via run/debug configuration dialog, nothing
> happens, there is no browser opening the page. I can run the php file as
> script though.
>
> My environment:
> Windows XP
> Eclipse 3.5 + PDT 2.2 (+ IDE For Java EE 1.2.1)
> PHP 5.2.9
> Apache 2.2
>
> My setup:
> Preferences->PHP->PHP Servers: I added
> URL=http://localhost
> Path on server=<Path to my local apache htdocs directory>
> Path in Workspace=/Test (I have a PHP project named Test pointing to
> apache's htdocs)
>
> Preferences->PHP->PHP Executables: Executable path: <My local php.exe>
> SAPI Type: CLI
> PHP debugger: XDebug
>
> Preferences->PHP->Debug:
> PHP Debugger: XDebug
> Server and PHP Executable: The ones I added above
>
> Run Configurations->PHP Web Page: I added
> Server Debugger: XDebug
> PHP Server: The one I added above
> File: /Test/test.php
> URL: http://localhost/ /test.php
>
> Any idea what's wrong?
>
> Thanks
>
|
|
|
|
| Re: Unable to run as php web page [message #492368 is a reply to message #492258 ] |
Tue, 20 October 2009 05:09   |
|
Originally posted by: dkel50.hotremovemail.com
You might want to take a look at
http://www.eclipse.org/pdt/documents/XDebugGuideForPDT2.0.pd f
If you are still having problems, then you need to get an xdebug log
file by setting the xdebug.remote_log entry in your ini file. This is
described in the guide. Then if you could post the results of the log on
the forum I can take a look.
Dave Kelsey
On 19/10/09 16:45, Jim wrote:
> The same is happening if I uninstall PDT 2.2 and install PDT 2.1
|
|
|
|
| Re: Unable to run as php web page [message #492425 is a reply to message #492409 ] |
Tue, 20 October 2009 08:04   |
|
Originally posted by: dkel50.hotremovemail.com
Ah ok, sorry I was under the impression you where trying to debug a web
page. So you create a run configuration with some autogenerated URL but
when you press run, nothing happens is that correct ?
You need to see what browser eclipse is set to. Go into
Window-->Preferences and expand the General tab and highlight "Web
Browser". You have a choice of internal or external, try setting it to
external and if there are no external browsers defined, define one using
the New button. See if that helps. You could also try changing the
debugger to Zend Debugger as well in the run configuration and see if
that makes a difference (as you aren't debugging it shouldn't be a
problem which debugger is selected).
Dave Kelsey
On 20/10/09 12:25, Jim wrote:
> So this is an xdebug problem? Is xdebug involved when I use run as (not
> debug as)?
>
> I just tried to disable xdebug in php.ini, and try the run as again,
> still doesn't work. Can this prove the problem is not in xdebug? Or do I
> need to make other changes to Eclipse preference to disable xdebug?
>
> Thanks
|
|
|
|
|
| Re: Unable to run as php web page [message #496093 is a reply to message #492105 ] |
Sun, 08 November 2009 10:22   |
No Real Name Messages: 1 Registered: November 2009 |
Junior Member |
|
|
I'm having a similar issue. I've installed the latest version of PDT from the Eclipse PHP website.
Eclipse will not run .php files either locally w/in the IDE, or w/in a browser.
It doesn't appear that PHP or Apache are installed, even though I downloaded the PDT packaged labeled "all packages included". ( http://www.eclipse.org/downloads/download.php?file=/technolo gy/epp/downloads/release/galileo/SR1/eclipse-php-galileo-SR1 -win32.zip)
Is that even possible? How could it include all packages, but not have PHP and Apache, or be able to run PHP out of the box?
Do I need to download and install apache and php separately? Or, should these have been included? And, if they were included, how do I get them installed and running? None of the tutorials, how-to guides, videos, or configuration instructions seem to cover how to simply run PHP w/in the Eclipse IDE.
Very confused... thanks in advance for any help anyone can provide.
|
|
|
| Re: Unable to run as php web page [message #496139 is a reply to message #496093 ] |
Sun, 08 November 2009 21:00  |
Jim Messages: 5 Registered: October 2009 |
Junior Member |
|
|
|
It's been a while since I visited this problem, but I believe you still need to install php and apache separately, the all in one package doesn't include them.
|
|
|