I've read and tried different settings for two days and still no joy so hoping someone can help...
I set up a new project from existing files, selected remote host accessible by FTP/SFTP/FTPS. Files correctly replicated to my local from the remote after the SFTP server was set up.
I'm working on a Windows 10 box, connecting to a server running cPanel running PHP 7.4 and I do not have WHM access to the server. In MultiPHPINI editor I have added the following:
zend_extension = "/home/virtfs/proj/opt/cpanel/ea-php74/root/usr/lib64/php/modules/xdebug.so"
xdebug.mode = debug
xdebug.client_host = 173.73.xxx.xxx // my public IP
xdebug.client_port = 9003
xdebug.start_with_request = trigger
xdebug.log = "/proj/home/public_html/api.evifs.net/xdebug.log" //no log entries so far
xdebug.log_level = 7
xdebug 3.1.2 is installed according to PHPINFO. PHPStorm 2021.2.3 running on local and I can debug locally with no issues.
I can establish a SSH tunnel with port forwarding using SSH username@domain -R 9003:localhost:9003.
My local has WAMP64 with localhost serving the project out of www/project_name - works as expected, debugs locally as expected.
The cPanel server is serving out of /home/proj/public_html/project_name. I can browse to http://project_name with no issues.
I use the SFTP connection in Deployment - connects as expected, browses remote directory. I have Root path: set to /home/proj/public_html/project_name which is different than what Autodetect returns (/home/proj) but when using the complete path the Browse Remote Directory opens the project_name with no issues.
I have been trying to find a mapping that works to validate the debugger. I have two currently in the Deployment server:
Local Path: c:\wamp64\www\project_name, Deployment Path: /home/proj/public_html/project_name, Web Path: http://project_name
Local Path: c:\wamp64\www\project_name, Deployment Path: /logfiles, Web Path: http://project_name
I have tried multiple options in Debug Configuration - checking "Filter debug connection by IDE key" and xdebug.helper in Chrome with IDE key set to "PHPStorm" and also with the option unchecked.
When trying to validate the debugger, I check Remote Web Server, select my Deployment server, set Path to create validation script to: c:\wamp64\www\project_name\logfiles. Validate returns: Please, configure remote path mapping for the validation directory.
I have tried every iteration of /home/proj/public_html/project_name there is: simply using a /, using /home/proj/public_html/logfiles, and /home/proj/public_html, and /home/proj, and just /home.
Any help in solving this will be greatly appreciated!