PHP 5.3.5 With Zend Debugger - php

I am trying to get the zend debugger to work but till now I have failed. I have searched everywhere and tried everything I found but still not working.
I am using windows 7 64 bit with Zend studio professional edition 8.0. I have vmware installed on windows and have an opensuse 11.4 64 bit server setup. it is installed in minimal so i dont have gui just commands. On open suse i have php 5.3.5, apache 2.2.17 and mysql installed. I also installed Zend Debugger 5.3.X which I downloaded from zend's website. I've put the ZendDebugger.so file into /usr/lib64/php5/extensions/
I inserted the following in the php.ini for debugger
[Zend]
zend_extension="/usr/lib64/php5/extensions/ZendDebugger.so"
zend_debugger.allow_hosts= 127.0.0.1, 192.168.4.70
zend_debugger.expose_remotely=always
in phpinfo(), zend debugger is not loading
anyone know what I am doing wrongly here or any suggestions i should try?
Thank you
UPDATE!!
Since I have not managed to get this thing working with my setup could anyone of you tell me if I can use XDebug with my setup i.e. Zend studio 8 + Apache + XDebug?

So finally after trying everything I found the solution for the problem.
I had a missing file in linux so zend debugger wasnt working. To find what was the problem I used the following command in linux
PHP -m
This shows all the modules that are installed on the OS and if there are any problems it will tell you what the problems are. I got an error message of missing libssl.so 0.9.8. Opened yast -> software management types SSL and installed the 0.9.8 and everything is fine now.

Zend studio 8 and 9 are not compatible with xdebug since the Zend studio team developers do not test that XDebug works in their IDE as we speak. Read more here:
http://forums.zend.com/viewtopic.php?f=59&t=24113
My conclusion is that Eclipse Indigo with PDT is the best solution out there for the moment until the Zend developers solve this.

Looks like you've followed the instructions to the letter with the exception of the multiple IP addresses.
The manual states they should be separated by commas. Try changing it to
zend_debugger.allow_hosts=127.0.0.1,192.168.4.70
Have you restarted Apache since installing the debugger?

Related

PhpStorm: Failed to parse validation script output PHP version not installed Debugger not Installed

I'm on Windows 10 x64 and today I wanted to install a new version of XAMPP. What I did was to uninstall my current one and then remove PHP from the environment variables. After that, I downloaded XAMPP as usual and installed it along with Xdebug, the same way that has worked for me during the past two years.
When I opened PhpStorm and went to set the CLI interpreter I noticed that it said "PHP version: Not installed" and "Debugger: Not installed" (although I have the PHP executable set to C:\xampp\php\php.exe).
What I did after that was to try reinstalling PhpStorm, both with my current settings and then other settings. It didn't help.
Upon checking the PHP version in the command line it does say that I have the new version installed. I am also able to do a simple echo 'hello'; and have it printed in the browser on my localhost. I'm not sure what to make of that. However, debugging inside PhpStorm does not work despite seeing on my PHPinfo that Xdebug is installed.
After googling around I don't see much that is relevant to what I'm doing. It seems like everyone who faces this issue is using a remote interpreter and a mac.
Does someone know what to do about it with my settings or have any suggestions on how to get this solved?
Setup:
Windows 10 Version 1903 for 64
xampp-windows-x64-7.4.1-0-VC15-installer
PhpStorm 2019.3.1
PHP 7.4.1
Zend Engine v3.4.0, with Xdebug v2.9.0
Error message:
Failed to parse validation script output
In my case Comodo Internet Security (CIS) was adding php.exe to blocked applications.
Unblocking it fixed the issue.
My config:
PHP 7.4.5 64 NTS
Windows 10 1909
PhpStorm 2020.1

How to run PHP code in Zend Studio 12?

I have installed Zend Studio 12.0.2 trial version in my linux operating system.How can I run php code in Zend Studio. I have search for the possible answers in stack overflow. I got this link http://files.zend.com/help/Zend-Studio/content/running_php_scripts_locally.htm but I cant find "php scripts" in run configurations.So I need to know what's the issue and how can I solve and run my php code?
Your server must be running the Zend Debugger or Xdebug in order for remote debugging and profiling capabilities to function. The Zend Debugger comes bundled with Zend Studio and Zend Server. For instructions on installing and configuring Xdebug, see Installing Xdebug and Configuring Xdebug.
You can read more in:
http://files.zend.com/help/Zend-Studio/zend-studio.htm#running_php_web_pages.htm

The FastCGI process exited unexpectedly

I am trying to run PHP via FastCGI on a Windows 2008 server.
I followed this installation doc http://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis7/ and have checked I completed the steps correclty numerous times.
However when I try to execute a php page i am presented with the following error:
HTTP Error 500.0 - Internal Server Error
C:\PHP\php-cgi.exe - The FastCGI process exited unexpectedly
maybe you should try installing VC++ runtime as explained here.
There's a fairly good chance you're missing the correct VC++ runtime for the version of PHP you're running.
If you're running PHP 5.5.x you need to ensure the VC++11 runtime is installed:
http://www.microsoft.com/en-us/download/details.aspx?id=30679
Make sure you download and install the x86 version (vcredist_x86.exe), PHP on Windows isn't 64 bit yet.
If you're running PHP 5.4.x then you need to install the VC++9 runtime:
http://www.microsoft.com/en-us/download/details.aspx?id=5582
When you run php-cgi.exe from the dos command line, you will get the missing MSVCR110.dll pop up message.
Like Ben said, Get the x86 download for the dll here: http://www.microsoft.com/en-us/download/details.aspx?id=30679
After much pain and suffering, turns out I needed to install the "Visual C++ Redistributable for Visual Studio 2012 Update 4 32-bit version", even on my 64-bit server.
If you are installing PHP 7.1.14 on windows server 2008 rc2 Enterprise, only thing worked for me is to install microsoft Visual C++ 2015 Redistributable Update 3 from https://www.microsoft.com/en-us/download/details.aspx?id=53587
You might be using C:/[your-php-directory]/php.exe in Handler mapping of IIS just change it C:/[your-php-directory]/php-cgi.exe.
I tried opening php-cgi.exe directly and it gave me a more clear error message.
As the answer of 'sepehr' this issues are because of VC++ Redistributable suitable version for PHP are not installed or need to be reinstalled again.
I faced it before so i'll explain my steps to fix it.
1- Each PHP version is built by a specific Visual C++ Redistributable version like (10, 11,12,14,..) what ever.
((How you know!! look.. ))
Check back enter link description here The PHP Site then at the left side of this page, look at "Which version do I choose?" then see what version of VC++ is fits your PHP version installed.
Now YOU HAVE TO Download both of VC++ 32 and 64. and if your PC has it already then Unistall them first. and then install what you downloaded recently bu
(first 32 then 64).
- VC download links are exists on the mentioned PHP Site on the left side also.
I hope it helps you.
if you have two application like (your app, phpmyadmin) just disable APC extension
Hope that fix that issue
it's worked with me
For user using PHP 5.6.x follow this link and install the x86 version.
I have installed the latest version of Visual C++ Redistributable from this link for php 8.0.0 x86:
and my problem was solved.
In my case the problem was coming through the application pool. Try to change your application pool ASP.NET v4.0.
In my case I had wrong constellation of configurations:
error reporting disabled
typo error in the configuration
After enabling the error_reporting it was clear the session_path was pointed to a wrong folder.
"Sad but true"
I was getting this same error installing PHP 7 on Windows Server 2008 R2. I resolved this by installing the Visual C++ Redistributable for Visual Studio 2015.
For Issue C:\PHP\php-cgi.exe - The FastCGI process exited unexpectedly.
I resolved this by installing the Visual C++ Redistributable for Visual Studio 2015.(Microsoft Visual C++ 2015 Redistributable Update 3) and Visual C++ Redistributable for Visual Studio 2012 Update 4 in 32 and 64bit versions. and also make sure in php.info file cgi.fix_pathinfo=0 enabled.
I got this error too after I changing PHP version in windows.
I have PHP Manager plug in of IIS installed, it show the PHP is not enabled, then I fix this issue after doing "Register new PHP version"
I struggled for hours with that problem, and no solution worked for me. May seems obvious or very foolish, but my error was in PHP 5.6 version. I was using PHP 5.6 from XAMPP, but if you download PHP on IIS with Web PI (Microsoft Web Platform Installer) it's more suitable for IIS instead XAMPP version.
More Info:
https://stackify.com/how-to-host-php-on-windows-with-iis/
Running php-cgi.exe from the command line gave a message like the vcrt dll is a lower version than what is linked in php.
Using Visual C++ redistributable package 64 bit 14.29 solved the above problem for me.

Zend Debugger - Wamp2.2 + Eclipse PHP

I am trying to get zend debugger woking with eclipse so that I can trigger breakpoints in my code.
I have installed wamp 2.2 (uses PHP 5.3.10 - thread safe)
I have installed the eclipse 'all in one' package from zend.
I have updated my php.ini to include
zend_extension = "c:/wamp/bin/php/php5.3.10/zend_ext/ZendDebugger.dll"
[Zend]
zend_debugger.allow_hosts="127.0.0.1"
zend_debugger.expose_remotely=always
When I launch my php.exe it shows
Cannot load Zend Debugger - it was build with configuration API220090626,NTS,VC9, whereas running engine is API2200090626,TS,VC9
I have read that ZendDebugger only works as non thread safe so I cannot just download a ts version. I cannot find a download link for php 5.3.10 (http://windows.php.net/download/)
However, when I try to replace my copy of php with 5.3.13 (nts) my sqlsrv extension is not compatible and I get the error
PHP Startup: Unable to load dynamic library 'c:wamp/bin/php/php5.3.10/ext/php_sqlsrv_53_nts.dll' - %1 is not a valid Win32 application
If I change my php.ini to not load the sqlsrv extension I still get the error
Failed loading c:/wamp/bin/php/php5.3.10/zend_ext/ZendDebugger.dll
Does anyone know how I can get debugging to work with Zend Framework, Eclipse, wamp and sqlserv?
Cannot load Zend Debugger - it was build with configuration API220090626,NTS,VC9, whereas running engine is API2200090626,TS,VC9
NTS means Not-Thread-Safe, and hence you must use a NTS build of PHP... Which is how you run PHP as a FCGI process (vs. Apache Thread via mod_php).
Zend does not usually provide or support TS builds of anything anylonger (since after PHP 5.2), and it looks like your setup is meant for a TS build...
You could try two things:
Use a WAMP that ships with PHP as FCGI (NTS) option (I know the latest version of Wamp-Developer does, but it's commercial, maybe see if XAMPP or another Wamp does?)
Or instead of ZendDebugger, try using XDebug. It comes both as TS and NTS builds. And I'm sure you can use Eclipse with it.

Php debugging with Aptana Studio and Xdebug or Zend debugger on OS X

Have you managed to get Aptana Studio debugging to work? I tried following this, but I don't see Windows -> Preferences -> Aptana -> Editors -> PHP -> PHP Interpreters in my menu (I have PHP plugin installed) and any attempt to set up the servers menu gives me "socket error" when I try to debug. Xdebug is installed, confirmed through php info.
I've been using ZendDebugger with Eclipse (on OS X) for a while now and it works great!
Here's the recipe that's worked well for me.
install Eclipse PDT via "All in one" package at: http://www.zend.com/en/community/pdt
install ZendDebugger.so (http://www.zend.com/en/community/pdt)
configure your php.ini w/ the ZendDebugger extenssion (info below)
Configuring ZendDebugger:
edit php.ini
add the following:
[Zend]
zend_extension=/full/path/to/ZendDebugger.so
zend_debugger.allow_hosts=127.0.0.1
zend_debugger.expose_remotely=always
zend_debugger.connector_port=10013
Now run "php -m" in the command line to output all the installed modules. If you see the following then its installed just fine
[Zend Modules]
Zend Debugger
Now restart Apache so that it reloads PHP w/ the ZendDebugger. Create a dummy page with in it and examine the output to make sure the PHP apache module picked up ZendDebugger as well. If it's setup right you will see something like the following text somewhere in phpinfo()'s output.
with Zend Debugger v5.2.14, Copyright (c) 1999-2008, by Zend Technologies
OK - but you wanted Aptana Studio... at this point I install the Aptana Studio Plugin into the PDT build of Eclipse. The instructions for that are at: http://www.aptana.com/docs/index.php/Plugging_Aptana_into_an_existing_Eclipse_configuration
That setup has served me well for a while - hopefully it helps you too
-Arin
This is not related to Aptana Studio, but if you are looking for a PHP XDebug debugger client on OS X, you can try MacGDBp (Free/GPL).
I realize that this is a old thread but I was having the same problem with Aptana Studio 3 and FireFox. If anyone is having this problem make sure that FireFox has FireBug V1.8.X installed, any other version might give you the same problem...
Hope this helps

Categories