GithubHelp home page GithubHelp logo

Comments (4)

jamwaffles avatar jamwaffles commented on May 10, 2024

What web server package you use is irrelevant, it's the PHP bit that matters. Are you using php5-fpm?

Also this isn't strictly speaking a bug. Try ServerFault or Superuser instead.

from webgrind.

EagleEyeJohn avatar EagleEyeJohn commented on May 10, 2024

WIth Apache, we use a shell file in exec-once folder...

The file .../files/something/site-path.txt contains the basename of the virtualhost root folder (e.g. /var/www/foo -> foo). [If someone can offer a better way of obtaining 'foo', that'd be appreciated]

#!/bin/bash
# MUST use LF not CRLF line endings
# to run again once provisioned, you must execute
# sudo rm /.puphpet-stuff/exec-once-ran

VAGRANT_CORE_FOLDER=$(cat "/.puphpet-stuff/vagrant-core-folder.txt")

MY_SITE=$(cat "${VAGRANT_CORE_FOLDER}"/files/something/site-path.txt)

cd /var/www/"${MY_SITE}"/public_html
pwd
wget https://webgrind.googlecode.com/files/webgrind-release-1.0.zip
unzip webgrind-release-1.0.zip
rm -f webgrind-release-1.0.zip
cd webgrind
pwd
echo "php_flag xdebug.profiler_enable 0" > .htaccess

from webgrind.

eelkevdbos avatar eelkevdbos commented on May 10, 2024
  1. Install php5-xdebug via sudo apt-get install php5-xdebug
  2. Find the php5-fpm xdebug general configuration file, often located at /etc/php5/mods-available/xdebug.ini
  3. Edit the file so it looks remotely like this:
zend_extension=xdebug.so
xdebug.remote_enable=1
xdebug.remote_connect_back=1
xdebug.profiler_enable_trigger=1
xdebug.profiler_output_dir=/tmp
  1. Restart php5-fpm by executing the command sudo restart php5-fpm

This will enable profiling when triggering it via attachment of the query parameter XDEBUG_PROFILE

The default installation (git clone in /var/www/webgrind) of webgrind will enable webgrind to find the cachegrind files automatically in the temp folder.

from webgrind.

alpha0010 avatar alpha0010 commented on May 10, 2024

This appears to be solved. Please re-open if issues persist.

from webgrind.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.