[关闭]
@cdmonkey 2016-06-28T06:05:33.000000Z 字数 1214 阅读 1779

phpIPAM

开源工具


https://linux.cn/article-3188-1.html
http://phpipam.net/documents/installation

  1. yum install httpd httpd-devel mysql mysql-server mysql-devel php php-mysql php-pear php-devel

Apache

  1. [root@test-dns ~]# vim /etc/httpd/conf/httpd.conf
  2. <Directory "/var/www/html">
  3. Options Indexes FollowSymLinks MultiViews
  4. AllowOverride All
  5. Order allow,deny
  6. Allow from all
  7. </Directory>
  8. [root@test-dns ~]# /etc/init.d/httpd restart
  9. ----------------
  10. [root@test-dns ~]# cd /var/www/html/phpipam/
  11. [root@test-dns phpipam]# vim .htaccess
  12. RewriteBase /phpipam/

Configure file

  1. [root@test-dns tools]# tar xvf phpipam-1.2.1.tar
  2. [root@test-dns tools]# mv phpipam /var/www/html/
  3. #
  4. [root@test-dns ~]# cd /var/www/html/phpipam/
  5. [root@test-dns phpipam]# cp config.dist.php config.php
  6. [root@test-dns phpipam]# vim config.php
  7. ...
  8. $db['host'] = "localhost";
  9. $db['user'] = "phpipam";
  10. $db['pass'] = "phpipamadmin";
  11. $db['name'] = "phpipam";
  12. $db['port'] = 3306;
  13. ...
  14. define('BASE', "/phpipam/");

MySQL

  1. [root@test-dns ~]# /etc/init.d/mysqld start
  2. [root@test-dns ~]# mysqladmin -u root password suixingpay
  3. [root@test-dns ~]# mysql -u root -p"suixingpay"
  4. mysql> create database phpipam;
  5. mysql> GRANT ALL on phpipam.* to phpipam@localhost identified by 'phpipamadmin';
  6. mysql> FLUSH PRIVILEGES;
  7. -----------------
  8. [root@test-dns phpipam]# mysql -u root -p"suixingpay" phpipam < db/SCHEMA.sql
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注