{"id":20931530,"url":"https://github.com/binarweb/install-xdebug-on-ubuntu-16.04-with-apache-and-php","last_synced_at":"2025-07-17T16:38:22.862Z","repository":{"id":176643251,"uuid":"229314527","full_name":"binarweb/Install-xdebug-on-Ubuntu-16.04-with-Apache-and-PHP","owner":"binarweb","description":null,"archived":false,"fork":false,"pushed_at":"2019-12-20T18:51:33.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T02:17:22.211Z","etag":null,"topics":["apache","php","php7","ubuntu1604","xdebug"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/binarweb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-20T18:14:02.000Z","updated_at":"2019-12-20T18:51:35.000Z","dependencies_parsed_at":"2023-07-25T20:16:17.046Z","dependency_job_id":null,"html_url":"https://github.com/binarweb/Install-xdebug-on-Ubuntu-16.04-with-Apache-and-PHP","commit_stats":null,"previous_names":["binarweb/install-xdebug-on-ubuntu-16.04-with-apache-and-php"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/binarweb/Install-xdebug-on-Ubuntu-16.04-with-Apache-and-PHP","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binarweb%2FInstall-xdebug-on-Ubuntu-16.04-with-Apache-and-PHP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binarweb%2FInstall-xdebug-on-Ubuntu-16.04-with-Apache-and-PHP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binarweb%2FInstall-xdebug-on-Ubuntu-16.04-with-Apache-and-PHP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binarweb%2FInstall-xdebug-on-Ubuntu-16.04-with-Apache-and-PHP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binarweb","download_url":"https://codeload.github.com/binarweb/Install-xdebug-on-Ubuntu-16.04-with-Apache-and-PHP/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binarweb%2FInstall-xdebug-on-Ubuntu-16.04-with-Apache-and-PHP/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265630824,"owners_count":23801683,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apache","php","php7","ubuntu1604","xdebug"],"created_at":"2024-11-18T21:43:44.201Z","updated_at":"2025-07-17T16:38:22.806Z","avatar_url":"https://github.com/binarweb.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Installing Xdebug and Webgrind on Ubuntu 16.04 with Apache and PHP\n\nThis tutorial will help you install xdebug and webgrind profiling. PHP is NOT running as PHP-FPM.  \n\n## Install dependencies\n\n```bash\napt update\napt install php-dev\n```\n\n## Download and compile Xdebug\n\n```bash\ncd ~\ngit clone https://github.com/xdebug/xdebug.git\ncd xdebug\n./rebuild.sh\n```\n**Notes:**  \n- the `./rebuild.sh` shell file is running `phpize`, `./configure --enable-xdebug`, `make` and `make install` in the background.  \n- in my case, the `xdebug.so` file was installed in `/usr/lib/php/20151012/` folder  \n\n## Install Xdebug\n\n```bash\necho \"extension=xdebug.so\" \u003e /etc/php/7.0/mods-available/xdebug.ini\nln -s /etc/php/7.0/mods-available/xdebug.ini /etc/php/7.0/apache2/conf.d/xdebug.ini\nservice apache2 restart\n```\n\nTo test the installation, create a php file and put `phpinfo` in it. In the output there should be xdebug.  \n\n## Enabling Xdebug\n\nIn .htaccess file, paste the following:\n\n```text\nphp_value xdebug.profiler_enable 1\n```\n\nNow, on every request Xdebug will create a `cachegrind.out.` in `/tmp` folder that can be read by Webgrind.  \nAdditional information about the configuration can be found on https://xdebug.org/docs/profiler.  \n\n## Install Webgrind\n\n```bash\ncd /var/www/html\nwget https://github.com/jokkedk/webgrind/archive/v1.6.0.zip\nunzip v1.6.0.zip\n```\n\nNow you can access Webgrind from the browser by accessing `http://\u003cyour_ip\u003e/webgrind-1.6.0/`  \n\n### Rerences:\nhttps://github.com/xdebug/xdebug  \nhttps://github.com/jokkedk/webgrind  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinarweb%2Finstall-xdebug-on-ubuntu-16.04-with-apache-and-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinarweb%2Finstall-xdebug-on-ubuntu-16.04-with-apache-and-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinarweb%2Finstall-xdebug-on-ubuntu-16.04-with-apache-and-php/lists"}