-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL.txt
110 lines (83 loc) · 3.96 KB
/
INSTALL.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#
# phpipam install instructions
#
phpipam has the following requirements to run:
- Apache2 web server with php and mod_rewrite support
- "AllowOverride all" set in vhost config for mod_rewrite to work
- Mysql server (5.1+)
- PHP version 5.2+ with following modules (on Windows php 5.3 is required!)
+ + mysqli : Adds support for the improved mySQL libraries
+ + session : Adds persistent session support
+ + gmp : Adds support for dev-libs/gmp (GNU MP library) -> to calculate IPv6 networks
+ + ldap : Adds LDAP support (Lightweight Directory Access Protocol)
+ + json : Adds supports for JSON data-interexchange format
+ + SimpleXML : Adds SimpleXML support for parsin XML files
- PHP PEAR support (dev-php/pear)
The above requirements should be met to continue with installation.
Please also note that clients must have javascript enabled in browser for app to work, also browser with HTML5 support is *highly* recommended!
!!!! important !!!!
Since this is beta version security aspects were not taken into consideration, therefore DO NOT put this page to internet, it is suitable only for intranet.
!!!! /important !!!!
#
# Install procedure:
#
----------------------------------
1.) Configure the config.php file
----------------------------------
config.php file is where site configuration and database details are configured. Please edit it according to your needs and installation.
vi config.php
if you have placed phpipam in web subdirectory, you need to modify the following (example for /phpipam/):
- Set BASE in config.php to /phpipam/
- RewriteBase /phpipam/ in .htaccess
---------------------------------------------
2a.) Automatic installation of database files
---------------------------------------------
Since v0.4 phpipam can automatically install database files for you.
Point browser to phpipam directory and set MySQL login details (root username and password).
Finished! Launch browser, go to website and if something is missing / not configured properly the error will appear.
------------------------------------------
2b.) First installation of database files
------------------------------------------
Optional method to be used instead of automatic configuration.
MySQL schema file is available under db folder.
First you must create new database, and then import SCHEMA file into database. Instructions below are for command-line import with local mysql installation.
------
mysql -u root -p
create database phpipam;
exit
------
Import database SCHEME.sql file:
------
mysql -u root -p phpipam < db/SCHEMA.sql
------
Create user for database interaction from website and grant permissions to ipam tables. Please change the username and password (ipv6, ipv6admin) according to your needs - you must also replace default ones in config file, which will be covered in step 2.
------
mysql -u root -p
grant ALL on phpipam.* to ipv6@localhost identified by "ipv6admin";
exit
------
----------------------------------
3.) (optional) Database backups
----------------------------------
It is *strongly* advised to backup database at least on weekly basis -> put following command to your crontab:
------
# Backup IP address table
0 1 * * 1 /usr/bin/mysqldump -u ipv6 -pipv6admin phpipam > <ipam_dir>/db/bkp/phpipam_bkp_$(date +"\%y\%m\%d").db
------
It will backup ipam table each monday at 1AM. Change directories accordingly.
----------------------------------
4.) Misc stuff
----------------------------------
- Chrome frame
For older, non HTML5 capable browsers install Chrome frame, which adds support from HTML5 and significantyl sppeds up javascript rendering
http://code.google.com/chrome/chromeframe/
-FreeBSD: Required PHP modules can be installed through following ports:
databases/php5-mysqli
math/php5-gmp
devel/pear
-Gentoo
php with mysqli, session and gmp use flags
dev-php/pear
- Debian / ubuntu
apt-get install php5-gmp
apt-get install php-pear