This forum is no longer active. Please post your questions to our new community site

Forums MAMPStack

mampstack, xdebug and netbeans

Subscribe to mampstack, xdebug and netbeans 8 post(s), 2 voice(s)

 
Avatar pfoomer 16 post(s)

Hi

I am trying to get this working, but failing.

I read that zend optimiser needs to be turned off, is it installed?

If not, do I add the xdbug extension to the apache config instead of the php.ini file?

Also, is there an equivalent of phppinfo, as setting one up in the root directory as index.php with the lines
<?
phpinfo();
?>

doesnt work

Am I being stupid?

Thanks

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

We do not include Zend Optimizer or xdebug extension. Have you copy the php info file, which contains the lines that you posted, in the /apache2/htdocs folder? If the name of the file is “phpinfo.php”, try to access at http://127.0.0.1/phpinfo.php

Cheers.

 
Avatar pfoomer 16 post(s)

calling phpinfo.php from the built in version 4 apple php works from the command line.
Using the same approach, but using the php in php directory supplied with mampstack does not.
Neither does calling it in the way you suggested work either.

This is on a new mampstack 1.2-0 install on osx 10.4.11

Regarding xdebug, I know you do not support it, I am trying to get it to work.

The other MAMP can do it apparently, but I want to use mampstack.

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

It is strange. Does it appear any error when you try to run php from the command line? Does any error in the apache2/logs folder?

 
Avatar pfoomer 16 post(s)

>imac:/Applications/mampstack-1.2-0/php/bin zonko$ ./php -v
PHP 5.2.10 (cli) (built: Sep 6 2009 06:25:38)
Copyright © 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright © 1998-2009 Zend Technologies
imac:/Applications/mampstack-1.2-0/php/bin zonko$ ./php ../../apache2/htdocs/phpinfo.php
<?
phpinfo();
?>imac:/Applications/mampstack-1.2-0/php/bin zonko$

No errors seen

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

Zend Engine is different to Zen Optimizer, Zen Engine is in PHP by default. The phpinfo script does not seem correct, you need to add “<?php” and the beginning of the script:


<?php
phpinfo();
?>

I hope it helps.

 
Avatar pfoomer 16 post(s)

Hi

yes it works, I am off to beat myself with a big stick for being so stupid!!!

:)

Managed to get the code working without the debugger, however it would be useful to have xdebug working
as I am using mampstack for development.

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Thanks for the suggestion. We will add xdebug module in our TODO list.

Forums MAMPStack