Skip to content

Instantly share code, notes, and snippets.

@saxenap
Last active February 29, 2020 18:56
Show Gist options
  • Save saxenap/a2d96a30629f83d60ead1dcabec9fc35 to your computer and use it in GitHub Desktop.
Save saxenap/a2d96a30629f83d60ead1dcabec9fc35 to your computer and use it in GitHub Desktop.
Install debug & webgrind on Amazon EC2
#!/bin/bash
#
# Copyright (c) 2014-2017 Praveen Saxena <>
# License: BSD-3-Clause
#
# To get:
# rm -rf xdebug-webgrind && wget -O xdebug-webgrind https://gist.githubusercontent.com/saxenap/a2d96a30629f83d60ead1dcabec9fc35/raw && chmod 777 xdebug-webgrind && ./xdebug-webgrind
pecl install xdebug
echo "zend_extension=/usr/lib64/php/modules/xdebug.so" > /etc/php.d/xdebug.ini
echo "xdebug.profiler_output_dir=/tmp" > /etc/php.d/xdebug.ini
echo "xdebug.profiler_output_name=cachegrind.out.%p-%H-%R" > /etc/php.d/xdebug.ini
echo "xdebug.profiler_enable_trigger=1" > /etc/php.d/xdebug.ini
echo "xdebug.profiler_enable=0" > /etc/php.d/xdebug.ini
echo " Xdebug Installed."
wget https://github.com/jokkedk/webgrind/archive/v1.6.0.zip -O webgrind.zip
unzip -o webgrind.zip -d /var/www/html/
echo " Webgrind Installed."
service httpd restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment