Wednesday, March 7, 2018

Enabling remote debugging in .htaccess for Laravel project - development

Enabling remote debugging in .htaccess for Laravel project

I’m trying to setup Xdebug for remote debugging in PHPStorm. The Laravel project I need to debug is hosted on a shared hosting, so I don’t have direct access to the php.ini. The only way I can change PHP’s options is via .htaccess and usually everything works fine.

This is the what I added into the mylaravel.com/public/.htaccess

<IfModule mod_php7.c>
    # Xdebug
    php_flag xdebug.remote_enable On
    php_value xdebug.idekey PHPSTORM
    php_flag xdebug.profiler_enable On
</IfModule>

But, every time I run php -i, there has been no overriding of the default flags / values for those configurations. I’m running the command inside the public folder [~/mylaravel.com/public]$.

Can anyone explain what am I doing wrong? Is it possible that the hosting provider doesn’t allow me to modify just those configurations (although I think is quite impossible it did it)?



from Laravel Questions and Answers https://laravelquestions.com/php/enabling-remote-debugging-in-htaccess-for-laravel-project/
via Lzo Media

No comments:

Post a Comment