Xdebug with php5.6 not working











up vote
3
down vote

favorite
1












Until yesterday I used Ubuntu 14.04 with php5.5 and nginx, everything working perfectly including xdebug.



I then updated to php5.6 via



sudo add-apt-repository ppa:ondrej/php5-5.69
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install php5


which had a lot automatically other php updates afterwards.
After this xdebug was not working anymore and giving me some shell errors, since it was build for the wrong php version, so I uninstalled and reinstalled it via



sudo pecl install xdebug


Now I don't get any shell errors anymore, but it's not working correctly. If I disable xdebug in php.ini my local server runs with nginx as expected, so the basic setup is correct.



If I activate xdebug in php.ini and request a local page the request hangs as if I had enabled xdebug and set a breakpoint somewhere in my code, but I didn't. Executing php from command line does work interestingly.



My current /etc/php5/mods-available/xdebug.ini look like



zend_extension=xdebug.so
xdebug.max_nesting_level=1000
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9001
xdebug.profiler_enable=0
xdebug.profiler_output_dir = /var/log/xdebug


and is included via symlink both into /etc/php5/cli/conf.d and into /etc/php5/fpm/conf.d. Also checking php -m on command line says that xdebug is included as Zend-Module.



Shifting the port to 9001 is on purpose, since fastcgi is running on port 9000.



nginx log are fine, xdebug logs don't exist (directory is empty) and fpm logs only saying



NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful


Any idea what to do or where to have a look?










share|improve this question




























    up vote
    3
    down vote

    favorite
    1












    Until yesterday I used Ubuntu 14.04 with php5.5 and nginx, everything working perfectly including xdebug.



    I then updated to php5.6 via



    sudo add-apt-repository ppa:ondrej/php5-5.69
    sudo apt-get update && sudo apt-get upgrade
    sudo apt-get install php5


    which had a lot automatically other php updates afterwards.
    After this xdebug was not working anymore and giving me some shell errors, since it was build for the wrong php version, so I uninstalled and reinstalled it via



    sudo pecl install xdebug


    Now I don't get any shell errors anymore, but it's not working correctly. If I disable xdebug in php.ini my local server runs with nginx as expected, so the basic setup is correct.



    If I activate xdebug in php.ini and request a local page the request hangs as if I had enabled xdebug and set a breakpoint somewhere in my code, but I didn't. Executing php from command line does work interestingly.



    My current /etc/php5/mods-available/xdebug.ini look like



    zend_extension=xdebug.so
    xdebug.max_nesting_level=1000
    xdebug.remote_enable=1
    xdebug.remote_host=127.0.0.1
    xdebug.remote_port=9001
    xdebug.profiler_enable=0
    xdebug.profiler_output_dir = /var/log/xdebug


    and is included via symlink both into /etc/php5/cli/conf.d and into /etc/php5/fpm/conf.d. Also checking php -m on command line says that xdebug is included as Zend-Module.



    Shifting the port to 9001 is on purpose, since fastcgi is running on port 9000.



    nginx log are fine, xdebug logs don't exist (directory is empty) and fpm logs only saying



    NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful


    Any idea what to do or where to have a look?










    share|improve this question


























      up vote
      3
      down vote

      favorite
      1









      up vote
      3
      down vote

      favorite
      1






      1





      Until yesterday I used Ubuntu 14.04 with php5.5 and nginx, everything working perfectly including xdebug.



      I then updated to php5.6 via



      sudo add-apt-repository ppa:ondrej/php5-5.69
      sudo apt-get update && sudo apt-get upgrade
      sudo apt-get install php5


      which had a lot automatically other php updates afterwards.
      After this xdebug was not working anymore and giving me some shell errors, since it was build for the wrong php version, so I uninstalled and reinstalled it via



      sudo pecl install xdebug


      Now I don't get any shell errors anymore, but it's not working correctly. If I disable xdebug in php.ini my local server runs with nginx as expected, so the basic setup is correct.



      If I activate xdebug in php.ini and request a local page the request hangs as if I had enabled xdebug and set a breakpoint somewhere in my code, but I didn't. Executing php from command line does work interestingly.



      My current /etc/php5/mods-available/xdebug.ini look like



      zend_extension=xdebug.so
      xdebug.max_nesting_level=1000
      xdebug.remote_enable=1
      xdebug.remote_host=127.0.0.1
      xdebug.remote_port=9001
      xdebug.profiler_enable=0
      xdebug.profiler_output_dir = /var/log/xdebug


      and is included via symlink both into /etc/php5/cli/conf.d and into /etc/php5/fpm/conf.d. Also checking php -m on command line says that xdebug is included as Zend-Module.



      Shifting the port to 9001 is on purpose, since fastcgi is running on port 9000.



      nginx log are fine, xdebug logs don't exist (directory is empty) and fpm logs only saying



      NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful


      Any idea what to do or where to have a look?










      share|improve this question















      Until yesterday I used Ubuntu 14.04 with php5.5 and nginx, everything working perfectly including xdebug.



      I then updated to php5.6 via



      sudo add-apt-repository ppa:ondrej/php5-5.69
      sudo apt-get update && sudo apt-get upgrade
      sudo apt-get install php5


      which had a lot automatically other php updates afterwards.
      After this xdebug was not working anymore and giving me some shell errors, since it was build for the wrong php version, so I uninstalled and reinstalled it via



      sudo pecl install xdebug


      Now I don't get any shell errors anymore, but it's not working correctly. If I disable xdebug in php.ini my local server runs with nginx as expected, so the basic setup is correct.



      If I activate xdebug in php.ini and request a local page the request hangs as if I had enabled xdebug and set a breakpoint somewhere in my code, but I didn't. Executing php from command line does work interestingly.



      My current /etc/php5/mods-available/xdebug.ini look like



      zend_extension=xdebug.so
      xdebug.max_nesting_level=1000
      xdebug.remote_enable=1
      xdebug.remote_host=127.0.0.1
      xdebug.remote_port=9001
      xdebug.profiler_enable=0
      xdebug.profiler_output_dir = /var/log/xdebug


      and is included via symlink both into /etc/php5/cli/conf.d and into /etc/php5/fpm/conf.d. Also checking php -m on command line says that xdebug is included as Zend-Module.



      Shifting the port to 9001 is on purpose, since fastcgi is running on port 9000.



      nginx log are fine, xdebug logs don't exist (directory is empty) and fpm logs only saying



      NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful


      Any idea what to do or where to have a look?







      14.04 php php5-fpm xdebug






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jul 24 '15 at 16:16









      Ron

      14.4k43957




      14.4k43957










      asked Jul 24 '15 at 16:05









      user1925303

      15528




      15528






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          I removed zend_extension=xdebug.so from /etc/php5/mods-available/xdebug.ini and now I am able to access pages again while still useing xdebug?!



          I didn't find any other file where xdebug would be included in any php.ini, so I am a little bit confused. Maybe someone else has a more complete answer.






          share|improve this answer





















            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f652265%2fxdebug-with-php5-6-not-working%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            I removed zend_extension=xdebug.so from /etc/php5/mods-available/xdebug.ini and now I am able to access pages again while still useing xdebug?!



            I didn't find any other file where xdebug would be included in any php.ini, so I am a little bit confused. Maybe someone else has a more complete answer.






            share|improve this answer

























              up vote
              0
              down vote













              I removed zend_extension=xdebug.so from /etc/php5/mods-available/xdebug.ini and now I am able to access pages again while still useing xdebug?!



              I didn't find any other file where xdebug would be included in any php.ini, so I am a little bit confused. Maybe someone else has a more complete answer.






              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                I removed zend_extension=xdebug.so from /etc/php5/mods-available/xdebug.ini and now I am able to access pages again while still useing xdebug?!



                I didn't find any other file where xdebug would be included in any php.ini, so I am a little bit confused. Maybe someone else has a more complete answer.






                share|improve this answer












                I removed zend_extension=xdebug.so from /etc/php5/mods-available/xdebug.ini and now I am able to access pages again while still useing xdebug?!



                I didn't find any other file where xdebug would be included in any php.ini, so I am a little bit confused. Maybe someone else has a more complete answer.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jul 27 '15 at 11:00









                user1925303

                15528




                15528






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f652265%2fxdebug-with-php5-6-not-working%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Quarter-circle Tiles

                    build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

                    Mont Emei