Installation issue

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
bensezoug
Posts: 4
Joined: Fri Dec 01, 2006 7:00 pm

Installation issue

Post by bensezoug »

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
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Did you follow all steps of the Installation Instructions, especially the part on configuring include/config.php?
Reinhard
bensezoug
Posts: 4
Joined: Fri Dec 01, 2006 7:00 pm

Post by bensezoug »

Yes I did :)
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please check php.ini for

Code: Select all

; variable in order to use PHP's session functions.
;session.save_path = /var/lib/php/session
session.save_path = /tmp
to write session info to a directory that the httpd has write access to
Reinhard
bensezoug
Posts: 4
Joined: Fri Dec 01, 2006 7:00 pm

Post by bensezoug »

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.

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
Looks like there's something about regexp and I'm so not keen on regexp
:cry:

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 ...
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

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]
bensezoug
Posts: 4
Joined: Fri Dec 01, 2006 7:00 pm

Post by bensezoug »

Hum, I don't know, I can check eventually

It's about a debian virtual server hosted by sivit.fr
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

See also this thread

It talks about modifying

Code: Select all

mbstring.func_overload=0
in php.ini
[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]
neonix
Posts: 8
Joined: Fri Dec 08, 2006 12:00 pm

Strange problem

Post by neonix »

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...
vincenzo
Posts: 6
Joined: Mon Mar 07, 2005 5:57 am

Post by vincenzo »

fmangeant wrote:See also this thread

It talks about modifying

Code: Select all

mbstring.func_overload=0
in php.ini
I did it, and it's working now thanks !!
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests