You need access to the scripts phpize and php-config. If your system does not have phpize and php-config , you will need to install the PHP development headers. It is important that the source version matches the installed version as there are slight, but important, differences between PHP versions. Once you have access to phpize and php-config , take the following steps:.
You should not unpack the tarball inside the PHP source code tree. Xdebug is compiled separately, all by itself, as stated above. If phpize is not in your path, please make sure that it is by expanding the PATH environment variable.
Make sure you use the phpize that belongs to the PHP version that you want to use Xdebug with. See this FAQ entry if you're having some issues with finding which phpize to use. Find out which PHP ini file to modify. Run a script with the following to find all configuration files that PHP has loaded:.
If that file does not exist, but there are other files in a conf. Please name it xdebug. Otherwise, modify the php. There could be more than one php. If you request the page through the browser, it should show you an overview of Xdebug's settings and log messages. On the command line, you can also run php -v. Xdebug and its version number should be present as in:. If Xdebug does not show up, or you get a warning from PHP that an xdebug. If you have trouble with this, please refer to the installation wizard to help you guide through this process.
With Xdebug loaded, you can now enable individual features, such as Step Debugging , or Profiling. Related Articles. Table of Contents. Improve Article. Save Article. Like Article. Last Updated : 06 Jan, Recommended Articles. There are several ways to download and install Xdebug to your Linux box, you can do it from your software center, terminal or manual download. This is the recommended method because you will get updates and security patches automatically.
If you don't like the internal web browser, you can use any other external web browser installed in your computer, such as Google Chrome, Chromium, Firefox and so on. To set up a different web browser, follow these steps. I'm trying to install xdebug on a Debian squeeze with PHP 5. Both the php5-xdebug package and php-dev which has phpize , which is necessary for manual installation are based on PHP 5.
I tried to build PHP manually to get phpize , but ended up in dependency hell with libxml and libssh and whatnot missing. There should be no probs, i guess. I have php 5.
Maybe your apt configuration is screwed up? Find out with. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams?
0コメント