Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » pdt php.ini on linux?
pdt php.ini on linux? [message #66965] Thu, 06 March 2008 19:28 Go to next message
Eclipse UserFriend
Originally posted by: wendell.wendellwturner.com

I would like some help in getting PDT started. I've read
Mike Lubber's Step-by-step document, but it describes
Windows, and I'm using Fedora (on x86_64 which makes
installation even more fun).

I think I have php configured with the right zend debugger,
since phpinfo shows
"with Zend Debugger v5.2.12, Copyright (c) 1999-2007, by Zend
Technologies"
in the Zend Engine block of the page.

However, in eclipse, when I try to either Run or Debug a
php program, I get:

The debug session could not be started.
Please make sure that the debugger is properly configured as a php.ini
directive.

What php.ini is this talking about? The system one in
/etc, or the one down in plugins/org.zend.php.debug.debugger...?
I've edited both of them (with full path names to an x86_64
ZendDebugger.so). What is the problem?

I can run php from the command line, and that seems to work
ok.

Also, I have other questions:
Q: at startup I get an error about
org.eclipse.emf.ecore.util.EcoreEMap$DelegateEObjectContainm entEList
Is this a serious problem?
Q: the phpinfo() page shows "Debug Build no"; is this a problem?
Q: Do I need xampp instead of apache?

Thanks in advance,
Wendell

Fedora 7; x86_64
eclipse-SDK-3.3.2-linux-gtk-x86_64
ZendDebugger-5.2.12-linux-glibc23-x86_64
php-5.2.4
apache 2.2.4
Re: pdt php.ini on linux? [message #66985 is a reply to message #66965] Fri, 07 March 2008 09:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: morgg.mail.com

Hi Wendell,

I have Zend Debugger working in an OpenSuse x86_64. If phpinfo() tells
you that it is working, that should be enough.

Did you remember to add dummy.php to your webroot?

If php says it's working but Eclipse cannot connect, maybe it is some
issue with the communication ports between them. I have edited the
system php.ini only...

zend_extension=/usr/lib64/php5/extensions/ZendDebugger.so
zend_debugger.allow_hosts=127.0.0.1,192.168.xxx/24,192.168.x xx.0/24
zend_debugger.expose_remotely=always



Note that it does not say anything about the port, something that I have
seen in other setups. I guess it just uses default port.

Make sure the port is well configured in Eclipse
(Window->Preferences->PHP->Debug->Installed Debuggers) with a value of
10000.

> Q: the phpinfo() page shows "Debug Build no"; is this a problem?
No, this must be related with PHP engine debugging. Mine is working and
it says the same.

> Q: Do I need xampp instead of apache?
I use Apache.

I hope it helps!


Wendell Turner escribió:
> I would like some help in getting PDT started. I've read Mike Lubber's
> Step-by-step document, but it describes
> Windows, and I'm using Fedora (on x86_64 which makes
> installation even more fun).
>
> I think I have php configured with the right zend debugger, since
> phpinfo shows
> "with Zend Debugger v5.2.12, Copyright (c) 1999-2007, by Zend
> Technologies"
> in the Zend Engine block of the page.
>
> However, in eclipse, when I try to either Run or Debug a
> php program, I get:
>
> The debug session could not be started.
> Please make sure that the debugger is properly configured as a php.ini
> directive.
>
> What php.ini is this talking about? The system one in /etc, or the one
> down in plugins/org.zend.php.debug.debugger...?
> I've edited both of them (with full path names to an x86_64
> ZendDebugger.so). What is the problem?
>
> I can run php from the command line, and that seems to work
> ok.
>
> Also, I have other questions:
> Q: at startup I get an error about
> org.eclipse.emf.ecore.util.EcoreEMap$DelegateEObjectContainm entEList
> Is this a serious problem?
> Q: the phpinfo() page shows "Debug Build no"; is this a problem?
> Q: Do I need xampp instead of apache?
>
> Thanks in advance,
> Wendell
>
> Fedora 7; x86_64
> eclipse-SDK-3.3.2-linux-gtk-x86_64
> ZendDebugger-5.2.12-linux-glibc23-x86_64
> php-5.2.4
> apache 2.2.4
>
>
Re: pdt php.ini on linux? [message #66993 is a reply to message #66985] Fri, 07 March 2008 16:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wendell.wendellwturner.com

Marcos Orallo wrote:

> I have Zend Debugger working in an OpenSuse x86_64. If phpinfo() tells
> you that it is working, that should be enough.

Ok.

> Did you remember to add dummy.php to your webroot?

Yes.

> If php says it's working but Eclipse cannot connect, maybe it is some
> issue with the communication ports between them. I have edited the
> system php.ini only...

> zend_extension=/usr/lib64/php5/extensions/ZendDebugger.so
> zend_debugger.allow_hosts=127.0.0.1,192.168.xxx/24,192.168.x xx.0/24
> zend_debugger.expose_remotely=always

Yes, I have that.

> Note that it does not say anything about the port, something that I have
> seen in other setups. I guess it just uses default port.

> Make sure the port is well configured in Eclipse
> (Window->Preferences->PHP->Debug->Installed Debuggers) with a value of
> 10000.

Yes, that is set to the default.

> I hope it helps!

Thank you for the response, but I still get the same response when
starting the debugger. Is there a log file that I can turn on? If I run
'eclipse -debug' there are some startup messages, but nothing else
(nothing about PHP or what it is trying to do). Where else can I look?

> Wendell Turner escribió:
>> I would like some help in getting PDT started. I've read Mike Lubber's
>> Step-by-step document, but it describes
>> Windows, and I'm using Fedora (on x86_64 which makes
>> installation even more fun).
>>
>> I think I have php configured with the right zend debugger, since
>> phpinfo shows
>> "with Zend Debugger v5.2.12, Copyright (c) 1999-2007, by Zend
>> Technologies"
>> in the Zend Engine block of the page.
>>
>> However, in eclipse, when I try to either Run or Debug a
>> php program, I get:
>>
>> The debug session could not be started.
>> Please make sure that the debugger is properly configured as a php.ini
>> directive.
>>
>> What php.ini is this talking about? The system one in /etc, or the one
>> down in plugins/org.zend.php.debug.debugger...?
>> I've edited both of them (with full path names to an x86_64
>> ZendDebugger.so). What is the problem?
>>
>> I can run php from the command line, and that seems to work
>> ok.
>>
>> Also, I have other questions:
>> Q: at startup I get an error about
>> org.eclipse.emf.ecore.util.EcoreEMap$DelegateEObjectContainm entEList
>> Is this a serious problem?
>> Q: the phpinfo() page shows "Debug Build no"; is this a problem?
>> Q: Do I need xampp instead of apache?
>>
>> Thanks in advance,
>> Wendell
>>
>> Fedora 7; x86_64
>> eclipse-SDK-3.3.2-linux-gtk-x86_64
>> ZendDebugger-5.2.12-linux-glibc23-x86_64
>> php-5.2.4
>> apache 2.2.4
>>
>>
Re: pdt php.ini on linux? [message #67001 is a reply to message #66993] Fri, 07 March 2008 16:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wendell.wendellwturner.com

I have more information on this, but it is still inop, and I would like
some more help.

In the directory
eclipse/plugins/org.zend.php.debug.debugger.linux.x86_5.2.12 .v20071210/resources/php5
there are the files php, php-cgi, and ZendDebugger.so. All are 'ELF
64-bit LSB', and I can run both that php and php-cgi and they run
successfully (no complaints about missing libraries, etc).

However, when I run eclipse with these arguments:
./eclipse -debug -consoleLog -console
and try to run a php program, eclipse complains about
!MESSAGE PHP executable /resources/php5/php-cgi not found neither in
plugin org.zend.php.debug.debugger nor in fragments attached to it

How come? Why can't eclipse run the same program that I can run from the
command line? Is it because the zend.php.debugger is x86_5 and I need and
x86_64 one?

Thanks again,

Wendell
Re: pdt php.ini on linux? [message #67048 is a reply to message #67001] Sun, 09 March 2008 08:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: michael.zend.com

This error means that file
eclipse/plugins/org.zend.php.debug.debugger.linux.x86_5.2.12 .v20071210/resources/php5/php-cgi
could not be found by the Eclipse.

I guess something is wrong with the installation. What system are you
running on?

Thanks!

Wendell Turner wrote:
> I have more information on this, but it is still inop, and I would like
> some more help.
>
> In the directory
> eclipse/plugins/org.zend.php.debug.debugger.linux.x86_5.2.12 .v20071210/resources/php5
> there are the files php, php-cgi, and ZendDebugger.so. All are 'ELF
> 64-bit LSB', and I can run both that php and php-cgi and they run
> successfully (no complaints about missing libraries, etc).
>
> However, when I run eclipse with these arguments:
> ./eclipse -debug -consoleLog -console
> and try to run a php program, eclipse complains about
> !MESSAGE PHP executable /resources/php5/php-cgi not found neither in
> plugin org.zend.php.debug.debugger nor in fragments attached to it
>
> How come? Why can't eclipse run the same program that I can run from
> the command line? Is it because the zend.php.debugger is x86_5 and I
> need and x86_64 one?
>
> Thanks again,
>
> Wendell
>
>
>
Re: pdt php.ini on linux? [message #67057 is a reply to message #67048] Mon, 10 March 2008 17:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wendell.wendellwturner.com

Michael Spector wrote:

> This error means that file
>
eclipse/plugins/org.zend.php.debug.debugger.linux.x86_5.2.12 .v20071210/resources/php5/php-cgi
> could not be found by the Eclipse.

I tried putting that in the PATH, but that didn't help.

> I guess something is wrong with the installation. What system are you
> running on?

Fedora 7, x86_64
eclipse-SDK-3.3.2-linux-gtk-x86_64.tar.gz
ZendDebugger-5.2.12-linux-glibc23-x86_64.tar.gz
php-5.2.4-1.fc7
php-devel-5.2.4-1.fc7
php-common-5.2.4-1.fc7
php-devel-5.2.4-1.fc7
php-cli-5.2.4-1.fc7
httpd-2.2.4-4

However, eclipse still complains that it can't find the debugger from the
php.ini.

> Wendell Turner wrote:
>> I have more information on this, but it is still inop, and I would like
>> some more help.
>>
>> In the directory
>>
eclipse/plugins/org.zend.php.debug.debugger.linux.x86_5.2.12 .v20071210/resources/php5
>> there are the files php, php-cgi, and ZendDebugger.so. All are 'ELF
>> 64-bit LSB', and I can run both that php and php-cgi and they run
>> successfully (no complaints about missing libraries, etc).
>>
>> However, when I run eclipse with these arguments:
>> ./eclipse -debug -consoleLog -console
>> and try to run a php program, eclipse complains about
>> !MESSAGE PHP executable /resources/php5/php-cgi not found neither in
>> plugin org.zend.php.debug.debugger nor in fragments attached to it
>>
>> How come? Why can't eclipse run the same program that I can run from
>> the command line? Is it because the zend.php.debugger is x86_5 and I
>> need and x86_64 one?
>>
>> Thanks again,
>>
>> Wendell
>>
>>
>>
Re: pdt php.ini on linux? [message #67077 is a reply to message #67057] Tue, 11 March 2008 12:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: michael.zend.com

Wendell Turner wrote:
> Michael Spector wrote:
>
>> This error means that file
> eclipse/plugins/org.zend.php.debug.debugger.linux.x86_5.2.12 .v20071210/resources/php5/php-cgi
>
>> could not be found by the Eclipse.
>
> I tried putting that in the PATH, but that didn't help.
>

Have you configured mentioned PHP in the "PHP Interpreter" section of
preferences?

Thanks!


>> I guess something is wrong with the installation. What system are you
>> running on?
>
> Fedora 7, x86_64
> eclipse-SDK-3.3.2-linux-gtk-x86_64.tar.gz
> ZendDebugger-5.2.12-linux-glibc23-x86_64.tar.gz
> php-5.2.4-1.fc7
> php-devel-5.2.4-1.fc7
> php-common-5.2.4-1.fc7
> php-devel-5.2.4-1.fc7
> php-cli-5.2.4-1.fc7
> httpd-2.2.4-4
>
> However, eclipse still complains that it can't find the debugger from
> the php.ini.
>
>> Wendell Turner wrote:
>>> I have more information on this, but it is still inop, and I would
>>> like some more help.
>>>
>>> In the directory
> eclipse/plugins/org.zend.php.debug.debugger.linux.x86_5.2.12 .v20071210/resources/php5
>
>>> there are the files php, php-cgi, and ZendDebugger.so. All are 'ELF
>>> 64-bit LSB', and I can run both that php and php-cgi and they run
>>> successfully (no complaints about missing libraries, etc).
>>>
>>> However, when I run eclipse with these arguments:
>>> ./eclipse -debug -consoleLog -console
>>> and try to run a php program, eclipse complains about
>>> !MESSAGE PHP executable /resources/php5/php-cgi not found neither in
>>> plugin org.zend.php.debug.debugger nor in fragments attached to it
>>>
>>> How come? Why can't eclipse run the same program that I can run from
>>> the command line? Is it because the zend.php.debugger is x86_5 and I
>>> need and x86_64 one?
>>>
>>> Thanks again,
>>>
>>> Wendell
>>>
>>>
>>>
>
>
Re: pdt php.ini on linux? [message #67105 is a reply to message #67077] Tue, 11 March 2008 15:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wendell.wendellwturner.com

In the Windows->Preferences->PHP Interpreter it only allows me to choose
PHP Version: 'PHP 5 or greater' or 'PHP 4', I left it at 'PHP 5 or
greater'.
The PHP Executable section had /usr/bin/php in the Executable path, and
PHP Debugger is 'Zend Debugger'. I added another entry with the full path
to the php under the plugins directory. I also added an entry for the
php-ini also. I also used the Search function, which added the PHP4
interpreter to the list.

Still, no change. When I try to run a php script I get
MESSAGE PHP executable /resources/php5/php not found
MESSAGE PHP executable /resources/php5/php-cgi

Thank you again for the suggestions, but I don't have it working yet.

Michael Spector wrote:
> Wendell Turner wrote:
>> Michael Spector wrote:
>>
>>> This error means that file
>>
eclipse/plugins/org.zend.php.debug.debugger.linux.x86_5.2.12 .v20071210/resources/php5/php-cgi
>>
>>> could not be found by the Eclipse.
>>
>> I tried putting that in the PATH, but that didn't help.
>>

> Have you configured mentioned PHP in the "PHP Interpreter" section of
> preferences?

> Thanks!


>>> I guess something is wrong with the installation. What system are you
>>> running on?
>>
>> Fedora 7, x86_64
>> eclipse-SDK-3.3.2-linux-gtk-x86_64.tar.gz
>> ZendDebugger-5.2.12-linux-glibc23-x86_64.tar.gz
>> php-5.2.4-1.fc7
>> php-devel-5.2.4-1.fc7
>> php-common-5.2.4-1.fc7
>> php-devel-5.2.4-1.fc7
>> php-cli-5.2.4-1.fc7
>> httpd-2.2.4-4
>>
>> However, eclipse still complains that it can't find the debugger from
>> the php.ini.
>>
>>> Wendell Turner wrote:
>>>> I have more information on this, but it is still inop, and I would
>>>> like some more help.
>>>>
>>>> In the directory
>>
eclipse/plugins/org.zend.php.debug.debugger.linux.x86_5.2.12 .v20071210/resources/php5
>>
>>>> there are the files php, php-cgi, and ZendDebugger.so. All are 'ELF
>>>> 64-bit LSB', and I can run both that php and php-cgi and they run
>>>> successfully (no complaints about missing libraries, etc).
>>>>
>>>> However, when I run eclipse with these arguments:
>>>> ./eclipse -debug -consoleLog -console
>>>> and try to run a php program, eclipse complains about
>>>> !MESSAGE PHP executable /resources/php5/php-cgi not found neither in
>>>> plugin org.zend.php.debug.debugger nor in fragments attached to it
>>>>
>>>> How come? Why can't eclipse run the same program that I can run from
>>>> the command line? Is it because the zend.php.debugger is x86_5 and I
>>>> need and x86_64 one?
>>>>
>>>> Thanks again,
>>>>
>>>> Wendell
>>>>
>>>>
>>>>
>>
>>
Re: pdt php.ini on linux? [message #67125 is a reply to message #67105] Tue, 11 March 2008 15:26 Go to previous messageGo to next message
Michael Spector is currently offline Michael SpectorFriend
Messages: 110
Registered: July 2009
Senior Member

Wendell Turner wrote:
> In the Windows->Preferences->PHP Interpreter it only allows me to choose
> PHP Version: 'PHP 5 or greater' or 'PHP 4', I left it at 'PHP 5 or
> greater'.
> The PHP Executable section had /usr/bin/php in the Executable path, and
> PHP Debugger is 'Zend Debugger'. I added another entry with the full
> path to the php under the plugins directory. I also added an entry for
> the php-ini also. I also used the Search function, which added the PHP4
> interpreter to the list.
>

You must select this PHP interpreter in the debug configuration dialog.

> Still, no change. When I try to run a php script I get
> MESSAGE PHP executable /resources/php5/php not found
> MESSAGE PHP executable /resources/php5/php-cgi
>
Re: pdt php.ini on linux? -success [message #67145 is a reply to message #67125] Tue, 11 March 2008 19:19 Go to previous message
Eclipse UserFriend
Originally posted by: wendell.wendellwturner.com

Michael Spector wrote:

> You must select this PHP interpreter in the debug configuration dialog.

That was it. To be precise:
Run -> Open Debug Dialog:
PHP Executable: was /usr/bin/php
I changed it to
/home/..../resources/php5/php

and the debug session begins.

Thank you Michael for your help!

Wendell
Previous Topic:API_Document_for_Extension_Points missing
Next Topic:Namespace
Goto Forum:
  


Current Time: Wed Feb 08 08:36:50 GMT 2023

Powered by FUDForum. Page generated in 0.07827 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top