Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting up Vdebug without php.ini access #523

Open
Amias-Burrows opened this issue Mar 1, 2024 · 0 comments
Open

Setting up Vdebug without php.ini access #523

Amias-Burrows opened this issue Mar 1, 2024 · 0 comments

Comments

@Amias-Burrows
Copy link

Amias-Burrows commented Mar 1, 2024

I'm trying to set this up on a server and as such, I don't have root access. I'm unable to edit the PHP ini file, using vim at least, I have added these lines to my .htaccess file:

php_value xdebug.start_with_request yes
php_value xdebug.discover_client_host true
php_value xdebug.remote_cookie_expire_time 3600
php_value xdebug.client_host localhost
php_value xdebug.client_port 9003
php_value xdebug.idekey VSCODE

I've also added these lines into my /etc/cl.php.d/alt-php81/custom.ini file:

xdebug.mode=coverage,debug,develop
zend_extension="xdebug.so"
xdebug.remote_enable=1
xdebug.remote_autostart=1
xdebug.remote_port=9003

Using Cpanel I have changed the PHP version to something different and then back to 8.1 restarting the PHP instance. I'm still not able to catch a breakpoint though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant