Installation issue
Moderators: Developers, Moderators
Installation issue
I try to installa cacti on my server using the apt package
when I use mydomaine.com/cacti/install/ I get
Warning: mb_ereg_replace(): mbregex compile err: premature end of regular expression in /usr/share/cacti/site/include/config.php on line 55
Warning: mb_ereg_replace(): mbregex compile err: premature end of regular expression in /usr/share/cacti/site/include/config.php on line 56
Warning: Cannot modify header information - headers already sent by (output started at /usr/share/cacti/site/include/config.php:55) in /usr/share/cacti/site/include/config.php on line 79
Warning: Cannot modify header information - headers already sent by (output started at /usr/share/cacti/site/include/config.php:55) in /usr/share/cacti/site/include/config.php on line 80
Warning: Cannot modify header information - headers already sent by (output started at /usr/share/cacti/site/include/config.php:55) in /usr/share/cacti/site/include/config.php on line 81
Warning: Cannot modify header information - headers already sent by (output started at /usr/share/cacti/site/include/config.php:55) in /usr/share/cacti/site/include/config.php on line 82
Warning: Cannot modify header information - headers already sent by (output started at /usr/share/cacti/site/include/config.php:55) in /usr/share/cacti/site/include/config.php on line 83
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /usr/share/cacti/site/include/config.php:55) in /usr/share/cacti/site/include/config.php on line 86
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /usr/share/cacti/site/include/config.php:55) in /usr/share/cacti/site/include/config.php on line 86
Warning: main(/adodb/adodb.inc.php): failed to open stream: No such file or directory in /usr/share/cacti/site/include/config.php on line 140
Warning: main(): Failed opening '/adodb/adodb.inc.php' for inclusion (include_path='.') in /usr/share/cacti/site/include/config.php on line 140
Warning: main(/database.php): failed to open stream: No such file or directory in /usr/share/cacti/site/include/config.php on line 141
Warning: main(): Failed opening '/database.php' for inclusion (include_path='.') in /usr/share/cacti/site/include/config.php on line 141
Warning: main(/functions.php): failed to open stream: No such file or directory in /usr/share/cacti/site/include/config.php on line 142
Warning: main(): Failed opening '/functions.php' for inclusion (include_path='.') in /usr/share/cacti/site/include/config.php on line 142
Fatal error: Call to undefined function: db_connect_real() in /usr/share/cacti/site/include/config.php on line 148
when I use mydomaine.com/cacti/install/ I get
Warning: mb_ereg_replace(): mbregex compile err: premature end of regular expression in /usr/share/cacti/site/include/config.php on line 55
Warning: mb_ereg_replace(): mbregex compile err: premature end of regular expression in /usr/share/cacti/site/include/config.php on line 56
Warning: Cannot modify header information - headers already sent by (output started at /usr/share/cacti/site/include/config.php:55) in /usr/share/cacti/site/include/config.php on line 79
Warning: Cannot modify header information - headers already sent by (output started at /usr/share/cacti/site/include/config.php:55) in /usr/share/cacti/site/include/config.php on line 80
Warning: Cannot modify header information - headers already sent by (output started at /usr/share/cacti/site/include/config.php:55) in /usr/share/cacti/site/include/config.php on line 81
Warning: Cannot modify header information - headers already sent by (output started at /usr/share/cacti/site/include/config.php:55) in /usr/share/cacti/site/include/config.php on line 82
Warning: Cannot modify header information - headers already sent by (output started at /usr/share/cacti/site/include/config.php:55) in /usr/share/cacti/site/include/config.php on line 83
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /usr/share/cacti/site/include/config.php:55) in /usr/share/cacti/site/include/config.php on line 86
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /usr/share/cacti/site/include/config.php:55) in /usr/share/cacti/site/include/config.php on line 86
Warning: main(/adodb/adodb.inc.php): failed to open stream: No such file or directory in /usr/share/cacti/site/include/config.php on line 140
Warning: main(): Failed opening '/adodb/adodb.inc.php' for inclusion (include_path='.') in /usr/share/cacti/site/include/config.php on line 140
Warning: main(/database.php): failed to open stream: No such file or directory in /usr/share/cacti/site/include/config.php on line 141
Warning: main(): Failed opening '/database.php' for inclusion (include_path='.') in /usr/share/cacti/site/include/config.php on line 141
Warning: main(/functions.php): failed to open stream: No such file or directory in /usr/share/cacti/site/include/config.php on line 142
Warning: main(): Failed opening '/functions.php' for inclusion (include_path='.') in /usr/share/cacti/site/include/config.php on line 142
Fatal error: Call to undefined function: db_connect_real() in /usr/share/cacti/site/include/config.php on line 148
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Please check php.ini for to write session info to a directory that the httpd has write access to
Reinhard
Code: Select all
; variable in order to use PHP's session functions.
;session.save_path = /var/lib/php/session
session.save_path = /tmp
Reinhard
session.save_path =/var/lib/php4/php4.ini
Access grants for the directory is
drwx-wx-wt 2 root root 8192 Dec 8 08:57 php4
I assume it's ok, as it's ok for other php applcations that use sessions on the same server.
Can I replace these lines with an hardcoded path but I'm not sure to know what I should put there, relative or absolute ? from where etc ...
Access grants for the directory is
drwx-wx-wt 2 root root 8192 Dec 8 08:57 php4
I assume it's ok, as it's ok for other php applcations that use sessions on the same server.
Looks like there's something about regexp and I'm so not keen on regexpWarning: mb_ereg_replace(): mbregex compile err: premature end of regular expression in /usr/share/cacti/site/include/config.php on line 55
Warning: mb_ereg_replace(): mbregex compile err: premature end of regular expression in /usr/share/cacti/site/include/config.php on line 56
![:cry:](./images/smilies/icon_cry.gif)
Can I replace these lines with an hardcoded path but I'm not sure to know what I should put there, relative or absolute ? from where etc ...
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Hi
is SElinux enabled on your server ?
is SElinux enabled on your server ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
Strange problem
I have all the requirement components to run Cacti installed.
I have check the config.php
***Excerpt:
/* make sure these values refect your actual database/host/user/password */
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "cactipwd";
$database_port = "3306";
/* ----- you probably do not need to change anything below this line ----- */
At the browser URL, http://localhost/cacti/install/
comes up blank...nothing...nada...zip...zilk...
please help...
I have check the config.php
***Excerpt:
/* make sure these values refect your actual database/host/user/password */
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "cactipwd";
$database_port = "3306";
/* ----- you probably do not need to change anything below this line ----- */
At the browser URL, http://localhost/cacti/install/
comes up blank...nothing...nada...zip...zilk...
please help...
I did it, and it's working now thanks !!fmangeant wrote:See also this thread
It talks about modifyingin php.iniCode: Select all
mbstring.func_overload=0
Who is online
Users browsing this forum: No registered users and 4 guests