Open ssl.conf
in a text editor.
Edit the domain(s) listed under the [alt_names]
section so that they match the local domain name you want to use for your project, e.g.
DNS.1 = my-project.dev
Additional FQDNs can be added if required:
Run php -i
and copy the output of the following command and paste it on https://xdebug.org/wizard.php.
Follow the instructions there to install xDebug.
Example:
Download xdebug-2.6.0.tgz: wget http://xdebug.org/files/xdebug-2.6.0.tgz
Unpack the downloaded file with tar -xvzf xdebug-2.6.0.tgz