tar -zxvf cacti-version*.tar.gz to which correct path?
Moderators: Developers, Moderators
-
- Posts: 5
- Joined: Wed Aug 27, 2008 7:42 pm
tar -zxvf cacti-version*.tar.gz to which correct path?
Hi, i have download the cacti tar, than i want to start tar -zxvf cacti-0.8.7b.tar.gz , after i tar, than have a folder name "cacti-0.8.7b", so this folder where shold i need to move to which correct path? move to /var/www/html/ than rename is to cacti or move to other path??? because i already move it to /var/www/html/cacti , also follow the cacti official installation documentation, but when i open internet browser http://localhost/cacti than just give me a blank page screen without any error??
1. my /etc/httpd/conf/httpd.conf file i just add the line Include conf.d/*.conf , the rest of the line i just keep not change any thing.
2. other change i already follow by the documentation.
Thank you.
1. my /etc/httpd/conf/httpd.conf file i just add the line Include conf.d/*.conf , the rest of the line i just keep not change any thing.
2. other change i already follow by the documentation.
Thank you.
-
- Cacti User
- Posts: 175
- Joined: Sun May 27, 2007 5:42 pm
-
- Posts: 5
- Joined: Wed Aug 27, 2008 7:42 pm
i already import cacti.sql...
Hi super-hornet thank for ur reply, i already have import cacti.sql database to my mysql server, because i can login to mysql restart using username cacti, also can enter to my database "cacti" and view all the tables...
Same... when i browse to http://localhost/cacti than just come out blank white screen without any error, and dont have a login for me to log-in too.
1. the http.conf is just only need to configure a line only: Include conf.d/*.conf
2. maybe /var/www/html/cacti/include/config.php i have configure wrongly?
$database_type = "mysql"; #this must put mysql right? because we using mysql server not oracle or other?
$database_default = "cacti"; #this is the database name? when we import database mysql -p cacti < cacti.sql
$database_hostname = "localhost:; #this i put localhost is it ok?or need to put this system ip address or put hostname?
$database_username = "cactiuser"; #this i put only cacti, because i create a username "cacti" on mysql server, is it correct?
$database_password = "cacti"; #this i not understand because this put my cacti username password, than mean is my username cacti password is abc than i put there abc??
Thank you.
Same... when i browse to http://localhost/cacti than just come out blank white screen without any error, and dont have a login for me to log-in too.
1. the http.conf is just only need to configure a line only: Include conf.d/*.conf
2. maybe /var/www/html/cacti/include/config.php i have configure wrongly?
$database_type = "mysql"; #this must put mysql right? because we using mysql server not oracle or other?
$database_default = "cacti"; #this is the database name? when we import database mysql -p cacti < cacti.sql
$database_hostname = "localhost:; #this i put localhost is it ok?or need to put this system ip address or put hostname?
$database_username = "cactiuser"; #this i put only cacti, because i create a username "cacti" on mysql server, is it correct?
$database_password = "cacti"; #this i not understand because this put my cacti username password, than mean is my username cacti password is abc than i put there abc??
Thank you.
-
- Cacti User
- Posts: 175
- Joined: Sun May 27, 2007 5:42 pm
Here is an example:
Database: MySQL
Cacti database: cacti
Hostname: localhost
Cacti's database owner: cactiuser
Cacti's database owner's password: cactiuser
MySQL database port use: 3306
Thus:
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "cactiuser";
$database_port = "3306";
Did u assign your cacti database owner/user to have full permission to the cacti's database?
SH
Database: MySQL
Cacti database: cacti
Hostname: localhost
Cacti's database owner: cactiuser
Cacti's database owner's password: cactiuser
MySQL database port use: 3306
Thus:
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "cactiuser";
$database_port = "3306";
Did u assign your cacti database owner/user to have full permission to the cacti's database?
SH
-
- Posts: 5
- Joined: Wed Aug 27, 2008 7:42 pm
still cannot??
Thank for ur help...
it still same....
1. i have try to use other linux system in same network to connect to this mysql server which is want to using the cacti.
mysql -h 192.168.1.20 -u cacti -p
is ok i can connect to this 192.168.1.20(which is a mysql server with cacti), and also can view the database cacti, and show all the tables....so mysql server is ok right???:-)
2. ok, i using firefox to connect to this cacti, i view as source(code) i show u, maybe can foud the problem from here...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8"></HEAD>
<BODY></BODY></HTML>
it still same....
1. i have try to use other linux system in same network to connect to this mysql server which is want to using the cacti.
mysql -h 192.168.1.20 -u cacti -p
is ok i can connect to this 192.168.1.20(which is a mysql server with cacti), and also can view the database cacti, and show all the tables....so mysql server is ok right???:-)
2. ok, i using firefox to connect to this cacti, i view as source(code) i show u, maybe can foud the problem from here...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8"></HEAD>
<BODY></BODY></HTML>
-
- Cacti User
- Posts: 175
- Joined: Sun May 27, 2007 5:42 pm
-
- Posts: 5
- Joined: Wed Aug 27, 2008 7:42 pm
sure i comfirm assign database "cacti" Privileges
ya, sure i already assign full Privileges on mysql database "cacti" to mysql user: cacti. I very comfirm, because i use at linux shell using command:
mysql -h localhost -u cacti -p to connect to that mysql server, i can see all the tables and also see all the inside the tables. I think my apache setting got problem? or when i tar -zxvf cacti-version.tar.gz to wrong place? i put all to /var/www/html/cacti already, it should be correct?
Thank ur reply....
mysql -h localhost -u cacti -p to connect to that mysql server, i can see all the tables and also see all the inside the tables. I think my apache setting got problem? or when i tar -zxvf cacti-version.tar.gz to wrong place? i put all to /var/www/html/cacti already, it should be correct?
Thank ur reply....
-
- Cacti User
- Posts: 175
- Joined: Sun May 27, 2007 5:42 pm
What about u create a simple php file called phpinfo.php in your /var/www/html/cacti
The content of phpinfo.php:
<?php
phpinfo();
?>
After that, go to your:
http://localhost/cacti/phpinfo.php
and see got anything come out or not?
SH
The content of phpinfo.php:
<?php
phpinfo();
?>
After that, go to your:
http://localhost/cacti/phpinfo.php
and see got anything come out or not?
SH
-
- Posts: 5
- Joined: Wed Aug 27, 2008 7:42 pm
ya i have see a php screen which is phpinfo.php...
Hi, wooh u are expert , thank u this is good dignostic to check the problem.
ya can see the phpinfo.php screen, so that mean the apache php no problem. so where got problem???
thank ur help...
ya can see the phpinfo.php screen, so that mean the apache php no problem. so where got problem???
thank ur help...
-
- Cacti User
- Posts: 175
- Joined: Sun May 27, 2007 5:42 pm
Your apache should be working.
go to the phpinfo.php again. Look for "mysql" title. If u have something like:
Active Persistent Links
Active Links
Client API version
MYSQL_MODULE_TYPE
MYSQL_SOCKET
MYSQL_INCLUDE
MYSQL_LIBS
That mean your apache (php) can access mysql or with mysql modules.
Is your /var/www/html/cacti has the correct file/directory permission?
What OS are u running?
SH
go to the phpinfo.php again. Look for "mysql" title. If u have something like:
Active Persistent Links
Active Links
Client API version
MYSQL_MODULE_TYPE
MYSQL_SOCKET
MYSQL_INCLUDE
MYSQL_LIBS
That mean your apache (php) can access mysql or with mysql modules.
Is your /var/www/html/cacti has the correct file/directory permission?
What OS are u running?
SH
Who is online
Users browsing this forum: No registered users and 0 guests