I have PHP installed on my Ubuntu server with Apache 2. Document root for Apache is set in apache2.conf to be /var/www which is the standard. This is a dedicated server and no virtual servers are installed. HTML files recognize Document Root and wherever I put a file, it will know that /some/directory/file is starting from /var/www. This is not the case with PHP. I always have to provide exact path starting from the directory where the actual file is located. This works, but then I cannot really have good include files because the parsed root address will be different every time depending on the location of the file.
I have found locations of php.ini files and also apache configuration files. Since I am very much a beginner in setting up server, php and apache, I need some very basic help here. Thanks a lot guys.