mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
61f3adc3dc
- Add PHP sockets module in depends for ping works. [2] PR: ports/110649 [1], ports/110500 [2] Submitted by: Timur I. Bakeyev <timur@gnu.org> [1], edwin [2]
36 lines
1.4 KiB
Plaintext
36 lines
1.4 KiB
Plaintext
=======================================================================
|
|
Cacti is now installed. If you intall it for the first time,
|
|
you may have to follow this steps to make it work correctly:
|
|
|
|
1. Create the MySQL database:
|
|
# mysqladmin --user=root create cacti
|
|
2. Create a mysql user/password for cacti:
|
|
(change user and/or password if requered)
|
|
# echo "GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'cactiuser'; FLUSH PRIVILEGES;" | mysql
|
|
3. Import the default cacti database:
|
|
# mysql cacti < %%PREFIX%%/%%CACTIDIR%%/cacti.sql
|
|
4. Edit %%PREFIX%%/%%CACTIDIR%%/include/db-settings.php.
|
|
5. Add a line to your /etc/crontab file similar to:
|
|
*/5 * * * * %%CACTIUSER%% %%LOCALBASE%%/bin/php %%PREFIX%%/%%CACTIDIR%%/poller.php > /dev/null 2>&1
|
|
6. Add alias in apache config for the cacti dir:
|
|
Alias /cacti "%%PREFIX%%/%%CACTIDIR%%/"
|
|
7. Be sure apache gives an access to the directory ('Allow from' keywords).
|
|
8. Open a cacti login page in your web browser and login with admin/admin.
|
|
|
|
If you update cacti, open a login page, an updating process
|
|
will start automatically.
|
|
|
|
If you are using PLUGIN option set, in file
|
|
%%PREFIX%%/%%CACTIDIR%%/include/config.php
|
|
change the follow line
|
|
|
|
$config["url_path"] = '/';
|
|
|
|
with location where your cacti is available. E.g.:
|
|
|
|
$config["url_path"] = '/cacti/';
|
|
|
|
if your URL is http://yoursite.com/cacti
|
|
|
|
=======================================================================
|