Страница 1 из 5

После установки CACTI

Добавлено: 2008-09-26 11:27:20
vasilastr
Добрый день !!

Обнавил я порты, поставил cacti вроде все успешно.
Пришло время запускать,

/usr/local/bin/php /usr/local/share/cacti/poller.php

ответ

Segmentation fault (core dumped)

:cz2: что это может быть ??

Re: После установки CACTI

Добавлено: 2008-09-26 11:51:55
vasilastr
В браузере выводит

http://192.168.0.1/cacti/

<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2008 The Cacti Group |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
| as published by the Free Software Foundation; either version 2 |
| of the License, or (at your option) any later version. |
| |
| This program is distributed in the hope that it will be useful, |
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU General Public License for more details. |
+-------------------------------------------------------------------------+
| Cacti: The Complete RRDTool-based Graphing Solution |
+-------------------------------------------------------------------------+
| This code is designed, written, and maintained by the Cacti Group. See |
| about.php and/or the AUTHORS file for specific developer information. |
+-------------------------------------------------------------------------+
| http://www.cacti.net/ |
+-------------------------------------------------------------------------+
*/

include("./include/auth.php");
include("./include/top_header.php");

?>
<table width="100%" align="center">
<tr>
<td class="textArea">
<strong>You are now logged into <a href="about.php">Cacti</a>. You can follow these basic steps to get
started.</strong>

<ul>
<li><a href="host.php">Create devices</a> for network</li>
<li><a href="graphs_new.php">Create graphs</a> for your new devices</li>
<li><a href="graph_view.php">View</a> your new graphs</li>
</ul>
</td>
<td class="textArea" align="right" valign="top">
<strong>Version <?php print $config["cacti_version"];?></strong>
</td>
</tr>
</table>

<?php

include("./include/bottom_footer.php");

?>

Re: После установки CACTI

Добавлено: 2008-09-26 12:13:40
~>cerber<~

Код: Выделить всё

php -r "echo 'test';"
?

Re: После установки CACTI

Добавлено: 2008-09-26 12:38:53
ProFTP
php работает? модули стоят нормально?

Код: Выделить всё

$ php --ini

Re: После установки CACTI

Добавлено: 2008-09-26 14:03:20
vasilastr
Configuration File (php.ini) Path: /usr/local/etc
Loaded Configuration File: (none)
Scan for additional .ini files in: /usr/local/etc/php
Additional .ini files parsed: /usr/local/etc/php/extensions.ini

Re: После установки CACTI

Добавлено: 2008-09-26 14:12:34
zg
Добавь в конфиг апача

Код: Выделить всё

<IfModule mod_php5.c>
    AddType application/x-httpd-php .php
    DirectoryIndex index.php index.html index.htm
</IfModule>

Re: После установки CACTI

Добавлено: 2008-09-26 14:29:54
vasilastr
Стоит

Re: После установки CACTI

Добавлено: 2008-09-26 14:59:36
zg
vasilastr писал(а):Стоит
непохоже....

Выложи

Код: Выделить всё

apachectl configtest
grep php /path/to/httpd.conf

Re: После установки CACTI

Добавлено: 2008-09-26 15:11:59
vasilastr

Код: Выделить всё

freeas# apachectl configtest
Syntax OK
freeas# grep php /path/to/httpd.conf
grep: /path/to/httpd.conf: No such file or directory

Re: После установки CACTI

Добавлено: 2008-09-26 15:16:14
Alex Keda
досадно =)))

Re: После установки CACTI

Добавлено: 2008-09-26 15:16:51
vasilastr
Это что значит? :smile:

Re: После установки CACTI

Добавлено: 2008-09-26 15:19:24
vasilastr
туплю

Код: Выделить всё

freeas# grep php /usr/local/etc/apache22/httpd.conf
<IfModule mod_php5.c>
    AddType application/x-httpd-php .php
    DirectoryIndex index.php index.html index.htm
     DirectoryIndex index.php index.html index.htm
freeas#

Re: После установки CACTI

Добавлено: 2008-09-26 15:23:53
vasilastr

Код: Выделить всё

freeas# apachectl configtest
Syntax OK

Код: Выделить всё

freeas# grep php /usr/local/etc/apache22/httpd.conf
<IfModule mod_php5.c>
    AddType application/x-httpd-php .php
    DirectoryIndex index.php index.html index.htm
#     DirectoryIndex index.php index.html index.htm
freeas#

Re: После установки CACTI

Добавлено: 2008-09-26 15:30:49
zg
vasilastr писал(а):туплю
ты как php ставил? без apxs чтоли?

Код: Выделить всё

zg# grep php /usr/local/etc/apache/httpd.conf
LoadModule php5_module        libexec/apache/libphp5.so
AddModule mod_php5.c
zg#
ты модуль пхп не грузишь :pardon: а надо бы ;-)

Re: После установки CACTI

Добавлено: 2008-09-26 15:33:20
vasilastr
Я его отдельно не ставил, его cacti поставил совсем остальным
и что теперь снести php и заноаво поставить ???? :cz2:

Re: После установки CACTI

Добавлено: 2008-09-26 15:43:29
zg
vasilastr писал(а):Я его отдельно не ставил, его cacti поставил совсем остальным
и что теперь снести php и заноаво поставить ???? :cz2:
:smile: ты когда пхп конфигурировал галку поставил with apache? походу нет, а надо было )))

надо пхп пересобирать... можешь из портов
php.PNG

Re: После установки CACTI

Добавлено: 2008-09-26 15:47:24
vasilastr
portupgrade php5-5.2.6_2

так

Re: После установки CACTI

Добавлено: 2008-09-26 15:51:36
vasilastr
А как правельно пересобрать чтобы остальное не чего не задеть :oops:

Re: После установки CACTI

Добавлено: 2008-09-26 16:39:44
zg

Код: Выделить всё

cd /usr/ports/lang/php5
make config
make 
/usr/local/etc/rc.d/apache22 stop
make install clean
/usr/local/etc/rc.d/apache22 start

Re: После установки CACTI

Добавлено: 2008-09-26 16:51:45
vasilastr
Спасибо :smile:

Re: После установки CACTI

Добавлено: 2008-09-26 17:06:45
vasilastr
Stop in /usr/ports/lang/php5.
freeas# make reinstall clean
===> Installing for php5-5.2.6_2
===> php5-5.2.6_2 depends on file: /usr/local/sbin/apxs - found
===> php5-5.2.6_2 depends on executable: pkg-config - found
===> php5-5.2.6_2 depends on shared library: xml2.5 - found
===> Generating temporary packing list
===> Checking if lang/php5 already installed
===> php5-5.2.6_2 is already installed
You may wish to ``make deinstall'' and install this port again
by ``make reinstall'' to upgrade it properly.
If you really wish to overwrite the old port of lang/php5
without deleting it first, set the variable "FORCE_PKG_REGISTER"
in your environment or the "make install" command line.
*** Error code 1

Stop in /usr/ports/lang/php5.
*** Error code 1

Stop in /usr/ports/lang/php5.
*** Error code 1

Stop in /usr/ports/lang/php5.
freeas# mc

Re: После установки CACTI

Добавлено: 2008-09-26 17:07:28
vasilastr
я так понял надо FORCE_PKG_REGISTER
поставить а где вот только ?? :smile:

Re: После установки CACTI

Добавлено: 2008-09-26 17:08:41
zg
да можешь сделать и make deinstall, не повредит

ты конфиг настроил?

Re: После установки CACTI

Добавлено: 2008-09-26 17:11:45
vasilastr
да галочку поставил

Re: После установки CACTI

Добавлено: 2008-09-26 17:22:06
zg
vasilastr писал(а):да галочку поставил
гуд, делай деинсталл, потом инсталл и пробуй запускать