COLPLOT Installation Error Message

while trying web page with IP and  http://X.X.X.X/colplot/index.cgi
I am getting  page is not Found

While checking the log file
[Fri Jan 06 12:12:18 2017] [error] [client 10.75.10.184] File does not exist: /var/www/colplot
[Fri Jan 06 12:13:12 2017] [error] [client 10.75.10.184] File does not exist: /var/www/colplot
[Fri Jan 06 12:13:18 2017] [error] [client 10.75.10.184] File does not exist: /var/www/colplot

Finally I have found the problem in alias.
Alias /colplot "/var/www/colplot"

Needs to be change into Alias /colplot "/var/www/html/colplot"
[root@hostname ~]# cd /etc/httpd/conf.d/
[root@hostname conf.d]# ls
autoindex.conf  colplot-apache.conf  README  userdir.conf  welcome.conf
[root@hn2017 conf.d]# cat colplot-apache.conf
# The following stanza enables colplot

Alias /colplot "/var/www/html/colplot"
<Directory "/var/www/html/colplot">     AddHandler cgi-script .cgi
    DirectoryIndex index.cgi
    AllowOverride None
    Options None
    Options +followsymlinks  +execcgi
    Order allow,deny
    Allow from all
</Directory>

Point 1: while troubleshooting we needs to read the log file slowly, we will get lot of clue from the log file, if we read it very fast, we may ignore it.
Point 2: In Linux Apache http configuration all the conf file placed under /etc/httpd/conf.d/ directory it is mention in the
/etc/httpd/conf/httpd.conf
# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/*.conf

For CGI Perl Script configuration -
Apache - https://www.youtube.com/watch?v=ZDqtq-DOoBA&index=2&list=PLrUFyg1unBb-yt027SU4ksdBnSdjNm2HX.

Colplot configuration.

Prerequisite
1)gnuplot
2)perl
3)collectl
4)apache web service

colplot-5.0.0]# ./INSTALL
creating /var/www/html/colplot
building symlinks in /var/www/html/colplot
configuring apache to run colplot...
copying /usr/share/collectl/colplot-apache.conf to /etc/httpd/conf.d/colplot.conf
You may have to restart apache

No plottable files match your selection criteria.  Are your dir and/or file protections right?

Add the following option into /etc/collectl.conf
DaemonCommands = -P --rawtoo -f /var/log/collectl -r00:00,7 -m -F60 -s+YZ

PROBLEM: gunplot is not able to understan raw files admin-20170106-112359.raw.gz.
SOLUTION: suggest collect to generate both plot files and raw files.


Post a Comment

0 Comments