PhpStorm Server document root mismatch

Hello, I'm facing an issue in PhpStorm. I'm including scripts using PHP variable $_SERVER['DOCUMENT_ROOT'] and PhpStorm is warning me that paths are unresolved. My actual web server document root is located in a subfolder of PhpStorm's project and PhpStorm is assuming that $_SERVER['DOCUMENT_ROOT'] equals to project's directory. This is generating a mismatch and I'm receiving warnings although paths are correctly set. I tried to change paths in Deployment but nothing seems to change. Any ideas?

Thanks in advance.

Please sign in to leave a comment.