While i host my site online, i keep a local copy on my computer, which is running fedora 20 and apache server, for testing purposes. However i have stumbled trying to use the $_SERVER['DOCUMENT_ROOT'] variable in php.
On my web server, the document root is: /var/www/httpdocs whereas on my computer the document root is: /var/www/html/mysite.
Is there a way to change the apache document root on my local server to be the same in the php variable?