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.
Dear All,
Thank you very much for your assistance. yesterday, i sudden have to go out from the office. i will try the solution and update you.
Thanks You. Prabhpal
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. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
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. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Dear Community Friends,
sorry to inform that following solutions did not solve the error "The requested URL was not found on this server"
$url_path = "/cacti/"; or Alias /cacti /var/www/html/cacti/
in the end to make it work, i have to leave the default DocumetRoot in httpd.conf to "/var/www/html" and crate virtual host for cacti and give it's DocumetRoot as following and everything is fine now.
Alias /cacti /var/www/cacti/
<VirtualHost *:80> ServerAdmin xxxx@example.com ServerName xxxx.example.com
DocumentRoot /var/www/cacti/ <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/cacti/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> </VirtualHost>
Thanks / Regards Prabhpal Singh
From: Prabhpal S. Mavi prabhpal@digital-infotech.net
sorry to inform that following solutions did not solve the error "The requested URL was not found on this server" $url_path = "/cacti/"; or Alias /cacti /var/www/html/cacti/
Why the /html/ in the middle?
This works without a vhost:
# grep cacti /etc/httpd/conf.d/cacti.conf Alias /cacti/ /var/www/cacti/ <Directory /var/www/cacti/>
# grep path /var/www/cacti/include/config.php $url_path = "/cacti/";
JD
On Thu, Apr 19, 2012 at 9:18 AM, John Doe jdmls@yahoo.com wrote:
From: Prabhpal S. Mavi prabhpal@digital-infotech.net
sorry to inform that following solutions did not solve the error "The requested URL was not found on this server" $url_path = "/cacti/"; or Alias /cacti /var/www/html/cacti/
Why the /html/ in the middle?
I believe the OP stated that he installed Cacti into /var/www/html/cacti/ .
On Thu, Apr 19, 2012 at 9:26 AM, William Hooper whooperhsd@gmail.com wrote:
On Thu, Apr 19, 2012 at 9:18 AM, John Doe jdmls@yahoo.com wrote:
From: Prabhpal S. Mavi prabhpal@digital-infotech.net
sorry to inform that following solutions did not solve the error "The requested URL was not found on this server" $url_path = "/cacti/"; or Alias /cacti /var/www/html/cacti/
Why the /html/ in the middle?
I believe the OP stated that he installed Cacti into /var/www/html/cacti/ .
Then again, in another post he said it was in /var/www/cacti/...
Post for /var/www/html/cacti/ http://lists.centos.org/pipermail/centos/2012-April/125181.html
Post for /var/www/cacti/: http://lists.centos.org/pipermail/centos/2012-April/125283.html
Perhaps the OP can re-outline his current configuration so that we can better assist.
From: Prabhpal S. Mavi prabhpal@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
On Wed, Apr 18, 2012 at 5:04 AM, Prabhpal S. Mavi prabhpal@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
On Wed, Apr 18, 2012 at 7:21 AM, William Hooper whooperhsd@gmail.com wrote:
On Wed, Apr 18, 2012 at 5:04 AM, Prabhpal S. Mavi prabhpal@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
Also, there is a packaged version in epel that should come up working.
Dear Community Friends,
sorry to inform that following solutions did not solve the error "The requested URL was not found on this server"
$url_path = "/cacti/"; or Alias /cacti /var/www/html/cacti/
in the end to make it work, i have to leave the default DocumetRoot in httpd.conf to "/var/www/html" and crate virtual host for cacti and give it's DocumetRoot as following and everything is fine now.
Alias /cacti /var/www/cacti/
<VirtualHost *:80> ServerAdmin xxxx@example.com ServerName xxxx.example.com
DocumentRoot /var/www/cacti/ <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/cacti/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> </VirtualHost>
On Wed, Apr 18, 2012 at 7:21 AM, William Hooper whooperhsd@gmail.com wrote:
On Wed, Apr 18, 2012 at 5:04 AM, Prabhpal S. Mavi prabhpal@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
Also, there is a packaged version in epel that should come up working.
-- Les Mikesell lesmikesell@gmail.com _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Thanks / Regards Prabhpal S. Mavi
On Thu, Apr 19, 2012 at 8:28 AM, Prabhpal S. Mavi prabhpal@digital-infotech.net wrote:
Dear Community Friends,
sorry to inform that following solutions did not solve the error "The requested URL was not found on this server"
$url_path = "/cacti/"; or Alias /cacti /var/www/html/cacti/
You actually need both. Did you set the DocumentRoot back to the default? Did you verify that the $url_path isn't commented out in the config (I believe it is by default). I can say for certain that it is working for me with the defautl DocumentRoot and the $url_path set correctly.
in the end to make it work, i have to leave the default DocumetRoot in httpd.conf to "/var/www/html" and crate virtual host for cacti and give it's DocumetRoot as following and everything is fine now.
That is also another way to handle it.