php-debugbar icon indicating copy to clipboard operation
php-debugbar copied to clipboard

Not getting it to work with apache userdirecroty

Open jpedrot opened this issue 6 years ago • 1 comments

Hi,

Is PHPDebubar supposed to work in a setup with Apache Userdirectories?

The apache logs shows 404

"GET /vendor/maximebf/debugbar/src/DebugBar/Resources/vendor/font-awesome/css/font-awesome.min.css HTTP/1.1"

Is there anyway I can change that href without hacking the source directly? I would expect to see

"GET /~UserName/vendor/maximebf/debugbar/src/DebugBar/Resources/vendor/font-awesome/css/font-awesome.min.css HTTP/1.1"

Is this a config setting?

I know one should not run php for userdirs but, this its a disposable VM

jpedrot avatar Apr 18 '20 19:04 jpedrot

The file JavascriptRenderer.php has a $baseUrl variable. Its in : vendor/maximebf/debugbar/src/DebugBar

$ diff JavascriptRenderer.php.org JavascriptRenderer.php
95c95
<             $baseUrl = '/vendor/maximebf/debugbar/src/DebugBar/Resources';
---
>             $baseUrl = 'vendor/maximebf/debugbar/src/DebugBar/Resources';

Makes it work for me.

jpedrot avatar Apr 18 '20 20:04 jpedrot