Prabhpal S. Mavi
2012-Apr-18 09:04 UTC
[CentOS] The requested URL was not found on this server
Greetings Dear Friends, I am seeking assistance from Apache experts friends. i recently installed cacti Graphing Solution. The main Cacti folder exist under "/var/www/html/cacti" and we all knows that default DocumentRoot under CentOS is DocumentRoot "/var/www/html" Following is Virtual Virtual Host under "conf.d" Alias /cacti /var/www/html/cacti/ <Directory /var/www/html/cacti/> DirectoryIndex index.php Options -Indexes AllowOverride all AddType application/x-httpd-php .php php_flag magic_quotes_gpc on php_flag track_vars on </Directory> if i try browsing cacti, i can login without problem. But if i try to follow other links on the page. For example i have clicked on Graphs icon. i see the following error. The requested URL /graph_view.php was not found on this server where as this URL (graph_view.php) exist on the server, that is under Cacti folder "/var/www/html/cacti/graph_view.php". But Apache is looking under DocumentRoot that is "/var/www/html/graph_view.php". if i change DocuemtRoot to following, (And virtual host directory and alias directive as well) everything is fine. DocumentRoot "/var/www/html/cacti" Changing DocumentRoot actually disturb other front ends setup. i have Nagios & zabbix installed on same machine. which i use to monitor stuff. is there anything i can do to maintain DocumentRoot to default that is. DocumentRoot "/var/www/html" Regards / Thanks Prabhpal Singh Thanks / Regards Prabhpal S. Mavi
On 18/04/12 10:04, Prabhpal S. Mavi wrote:> where as this URL (graph_view.php) exist on the server, that is under > Cacti folder "/var/www/html/cacti/graph_view.php". > > But Apache is looking under DocumentRoot that is > "/var/www/html/graph_view.php".You need to tell Cacti where the root of the installation is. Have a look for the line $url_path = "/"; in config.php and set as needed.
From: Prabhpal S. Mavi <prabhpal at digital-infotech.net>> The requested URL /graph_view.php was not found on this server > where as this URL (graph_view.php) exist on the server, that is under > Cacti folder "/var/www/html/cacti/graph_view.php". > But Apache is looking under DocumentRoot that is > "/var/www/html/graph_view.php".$url_path = "/cacti/"; JD
William Hooper
2012-Apr-18 12:21 UTC
[CentOS] The requested URL was not found on this server
On Wed, Apr 18, 2012 at 5:04 AM, Prabhpal S. Mavi <prabhpal at digital-infotech.net> wrote: [snip]> if i try browsing cacti, i can login without problem. But if i try to > follow other links on the page. For example i have clicked on Graphs icon. > i see the following error. > > The requested URL /graph_view.php was not found on this server[snip] Did you not see my reply on the 14th? I quote: Notice the error doesn't have /cacti/ in the URL. Check your cacti configuration for $url_path. http://lists.repoforge.org/pipermail/users/2012-April/022775.html http://forums.cacti.net/viewtopic.php?f=2&t=46997 http://docs.cacti.net/manual:087:1_installation.9_pia#configuration -- William Hooper