General Common Questions about Gandi Web Hosting¶
Can I debug my code remotely with xdebug3 ?¶
Using xdebug to debug your code remotely from within your favorite IDE is perfectly possible on PHP/MySQL web hostings as long as your workstation can be reached from the outside -have a public IP address- because hosting will need to connect to it.
To do so, indicate the following directives in your web hosting’s php-custom.ini
configuration file:
zend_extension = xdebug.so
xdebug.mode = debug
xdebug.start_with_request = yes
xdebug.remote_host = X.X.X.X
xdebug.remote_port = 9000
The xdebug.remote_host directive must contain your public IP address.
Once the file has been modified, the web hosting must be restarted for the parameters to be taken into account.
Note
Xdebug connects to the client machine on port 9000 via TCP by default. Make sure your firewall is configured to allow incoming connections on this port!
Note
This tool has be used only for debugging purpose; once you’re done, don’t forget to deactivate it.
Client-side configuration depends on the software used. A list of clients is available at xdebug.org.
Here is a sample of configuration for VSCode (you need to have a local copy of your files) :
Then, add in your launch.json file :
{
"name": "Listen for External XDebug",
"type": "php",
"request": "launch",
"hostname": "X.X.X.X",
"port": 9000,
"pathMappings": {
"/srv/data/web/vhosts/www.mondomainegandi.com/htdocs": "${workspaceRoot}/",
}
}
How do I get Google Image Preview to show my site?¶
Please refer to Google’s FAQ on this topic at: https://support.google.com/websearch/answer/175288