I'm currently installing xdebug profiler in my server. All my collaborators are SFTP-chrooted in their folders. In order to enable xdebug profiler, we need to provide a path in php.ini file where xdebug can store all "profiled" php sessions. Though, in my case, this folder depends on the developper name (developer name = folder name where they are sftp-chrooted). So I'm looking for something like this in my php ini :
xdebug.profiler_output_dir = "/var/www/html/myproject/usr-dev/%u/content/profiler-files/"
Where %u
is the user that currently loading php program in the CLI.
This way, my collaborators would be able to retrieve their profiler files in PHPStorm, on their local machines, to analyse it.
If it's not possible, another way to achieve that is to store all profiler files in the same folder, but this folder must be accessible from all the users, despite their sftp-chroot. It would be an "exception folder" to chroot.