@cdmonkey
2016-06-28T14:05:33.000000Z
字数 1214
阅读 1860
开源工具
https://linux.cn/article-3188-1.html
http://phpipam.net/documents/installation
yum install httpd httpd-devel mysql mysql-server mysql-devel php php-mysql php-pear php-devel
[root@test-dns ~]# vim /etc/httpd/conf/httpd.conf
<Directory "/var/www/html">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
[root@test-dns ~]# /etc/init.d/httpd restart
----------------
[root@test-dns ~]# cd /var/www/html/phpipam/
[root@test-dns phpipam]# vim .htaccess
RewriteBase /phpipam/
[root@test-dns tools]# tar xvf phpipam-1.2.1.tar
[root@test-dns tools]# mv phpipam /var/www/html/
#
[root@test-dns ~]# cd /var/www/html/phpipam/
[root@test-dns phpipam]# cp config.dist.php config.php
[root@test-dns phpipam]# vim config.php
...
$db['host'] = "localhost";
$db['user'] = "phpipam";
$db['pass'] = "phpipamadmin";
$db['name'] = "phpipam";
$db['port'] = 3306;
...
define('BASE', "/phpipam/");
[root@test-dns ~]# /etc/init.d/mysqld start
[root@test-dns ~]# mysqladmin -u root password suixingpay
[root@test-dns ~]# mysql -u root -p"suixingpay"
mysql> create database phpipam;
mysql> GRANT ALL on phpipam.* to phpipam@localhost identified by 'phpipamadmin';
mysql> FLUSH PRIVILEGES;
-----------------
[root@test-dns phpipam]# mysql -u root -p"suixingpay" phpipam < db/SCHEMA.sql