Linux+xdebug+php+nginx Installation & Commissioning

Source: Internet
Author: User
Tags fpm

Xdebug I still stay in Var_dump (), you can make the results sorted more beautiful, you can see the error message in more detail. Oh, it seems to be able to debug.

This article is about how to install debugging.

The system is mint. (Debian/ubuntu);

installation steps.

Generating xdebug.so files

1:

* *
into the official website, under the package.
http://www.xdebug.org/interface is really TM ugly.
http://www.xdebug.org/download.php into the download page.
Xdebug 2.2.4
* *

Release date:2014-02-28 http://www.xdebug.org/files/xdebug-2.2.4.tgz.

You can simply click on the download, you can also wget download, whatever you want.

2:

Because permission problems can occur, you can get super permissions at this SU root, and exit can return the current permission.

Tar zxvf xdebug.*//Extract files.

CD xdebug.*//Enter Xdebug directory.

  Phpize is used to expand the PHP extension module, through the phpize can build PHP plug-in module.
3:phpize

4://compilation

./configure--enable-xdebug--with-php-config=/usr/local/php/bin/php-config//Cannot find a path with Find/-name php-config

Make

Make install.


5: Build xdebug.so file after compiling, my path is/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so

sudo cp xdebug.so. /.. /extensions//Copy to this path


Install extension

Open the php.ini file, at the bottom

Extension =/usr/local/php/lib/php/extensions/xdebug.so//General tutorial does not play an absolute path, but my machine seems to have a problem with path. If you have a problem, you might as well use an absolute path.


Restart PHP-FPM.

PS aux | Grep-c PHP-FPM

sudo pkill php-fpm

PS aux | Grep-c PHP-FPM


At this time, you can use php-v php-m to view or phpinfo (), or whether the installation was successful.



--------------------------------------the end of the installation article----------------------------------------


Debugging




The grass, debugging was wrong.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.