Skip to content

Instantly share code, notes, and snippets.

@joseluisq
Last active June 1, 2025 16:31
Show Gist options
  • Save joseluisq/d7586c9e5bd52012e0cf to your computer and use it in GitHub Desktop.
Save joseluisq/d7586c9e5bd52012e0cf to your computer and use it in GitHub Desktop.

Revisions

  1. joseluisq revised this gist Sep 5, 2017. 1 changed file with 8 additions and 9 deletions.
    17 changes: 8 additions & 9 deletions xdebug_installation.md
    Original file line number Diff line number Diff line change
    @@ -12,15 +12,7 @@ Or with DNF:
    $ sudo dnf install php-xdebug
    ```


    Open and edit the `php.ini` file:

    ```sh
    $ sudo vim /etc/php.ini
    ```
    Add this line `zend_extension="/usr/lib64/php/modules/xdebug.so"` to the file's end.

    Finally, if your have an **Nginx server**, we should restart the PHP processor `php-fpm`:
    If your have an **Nginx server**, we should restart the PHP processor `php-fpm`:
    ```sh
    $ sudo systemctl restart php-fpm
    ```
    @@ -29,3 +21,10 @@ Or if you have a **Apache server**, we should restart the `httpd` server:
    ```sh
    $ sudo systemctl restart httpd
    ```

    Finally, verify if xdebug extension is loaded:
    ```sh
    php -r "echo (extension_loaded('xdebug') ? 'xdebug up and running!' : 'xdebug is not loaded!');"

    // xdebug up and running!
    ```
  2. joseluisq revised this gist Feb 13, 2016. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions xdebug_installation.md
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,14 @@ First, install `xdebug` package on system:
    ```sh
    $ sudo yum install php-pecl-xdebug.x86_64
    ```

    Or with DNF:

    ```sh
    $ sudo dnf install php-xdebug
    ```


    Open and edit the `php.ini` file:

    ```sh
  3. joseluisq revised this gist Feb 23, 2015. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions xdebug_installation.md
    Original file line number Diff line number Diff line change
    @@ -12,12 +12,12 @@ $ sudo vim /etc/php.ini
    ```
    Add this line `zend_extension="/usr/lib64/php/modules/xdebug.so"` to the file's end.

    Finally, if your have an Nginx server, we should restart the PHP processor `php-fpm`:
    Finally, if your have an **Nginx server**, we should restart the PHP processor `php-fpm`:
    ```sh
    $ sudo systemctl restart php-fpm
    ```

    Or if you have a Apache server, we should restart the `httpd` server:
    Or if you have a **Apache server**, we should restart the `httpd` server:
    ```sh
    $ sudo systemctl restart httpd
    ```
  4. joseluisq revised this gist Nov 23, 2014. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions xdebug_installation.md
    Original file line number Diff line number Diff line change
    @@ -8,16 +8,16 @@ $ sudo yum install php-pecl-xdebug.x86_64
    Open and edit the `php.ini` file:

    ```sh
    $ vim /etc/php.ini
    $ sudo vim /etc/php.ini
    ```
    Add this line `zend_extension="/usr/lib64/php/modules/xdebug.so"` to the file's end.

    Finally, if your have an Nginx server, we should restart the PHP processor `php-fpm`:
    ```sh
    $ systemctl restart php-fpm
    $ sudo systemctl restart php-fpm
    ```

    Or if you have a Apache server, we should restart the `httpd` server:
    ```sh
    $ systemctl restart httpd
    $ sudo systemctl restart httpd
    ```
  5. joseluisq revised this gist Nov 23, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion xdebug_installation.md
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@
    First, install `xdebug` package on system:

    ```sh
    $ sudo yum install php-pecl-xdebug.x86_6
    $ sudo yum install php-pecl-xdebug.x86_64
    ```
    Open and edit the `php.ini` file:

  6. joseluisq revised this gist Nov 23, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion xdebug_installation.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # PHP Xdebug installation on Fedora / CentOS x86_64
    # PHP Xdebug installation on Fedora/CentOS x64

    First, install `xdebug` package on system:

  7. joseluisq renamed this gist Nov 23, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  8. joseluisq revised this gist Nov 23, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion xdebug.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # PHP Xdebug installation
    # PHP Xdebug installation on Fedora / CentOS x86_64

    First, install `xdebug` package on system:

  9. joseluisq created this gist Nov 23, 2014.
    23 changes: 23 additions & 0 deletions xdebug.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    # PHP Xdebug installation

    First, install `xdebug` package on system:

    ```sh
    $ sudo yum install php-pecl-xdebug.x86_6
    ```
    Open and edit the `php.ini` file:

    ```sh
    $ vim /etc/php.ini
    ```
    Add this line `zend_extension="/usr/lib64/php/modules/xdebug.so"` to the file's end.

    Finally, if your have an Nginx server, we should restart the PHP processor `php-fpm`:
    ```sh
    $ systemctl restart php-fpm
    ```

    Or if you have a Apache server, we should restart the `httpd` server:
    ```sh
    $ systemctl restart httpd
    ```