一、简介
phpIPAM是一个开源Web IP地址管理应用程序。其目标是提供轻便简单的IP地址管理应用程序。
github地址:https://github.com/phpipam/phpipam

二、安装

1、设置环境语言

[root@localhost ~]# more /etc/environment
LC_ALL=en_US.utf-8
LANG=en_US.utf-8

2、安装依赖包

[root@localhost ~]#  yum install httpd mariadb-server php php-cli php-gd php-common php-ldap php-pdo php-pear php-snmp php-xml php-mysql php-mbstring git -y

3、修改apache服务配置

[root@localhost ~]#  vim /etc/httpd/conf/httpd.conf
<Directory "/var/www/html">
	Options FollowSymLinks
	AllowOverride all
	Order allow,deny
	Allow from all
</Directory>

4、调整国内时区

[root@localhost ~]# vim /etc/php.ini
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = Asia/Shanghai

5、启动服务以及设置服务自启动

#httpd服务自启动
[root@localhost ~]# systemctl start httpd
[root@localhost ~]# systemctl enable httpd
#mysql服务自启动
[root@localhost ~]# systemctl start mariadb
[root@localhost ~]# systemctl enable mariadb

6、下载phpIPAM文件

[root@localhost ~]# cd /var/www/html/
[root@localhost html]# git clone https://github.com/phpipam/phpipam.git .
Cloning into '.'...
remote: Counting objects: 10513, done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 10513 (delta 0), reused 0 (delta 0), pack-reused 10511
Receiving objects: 100% (10513/10513), 7.84 MiB | 2.59 MiB/s, done.
Resolving deltas: 100% (7310/7310), done.
[root@localhost html]# git checkout 1.4

7、文件赋权,避免上传文件报错

[root@localhost ~]# chown apache:apache -R /var/www/html/
[root@localhost ~]# chcon -t httpd_sys_content_t /var/www/html/ –R
[root@localhost ~]#  cd /var/www/html/
[root@localhost html]#  find . -type f -exec chmod 0644 {} \;
[root@localhost ~html# find . -type d -exec chmod 0755 {} \;
[root@localhost html]# chcon -t httpd_sys_rw_content_t app/admin/import-export/upload/ -R
[root@localhost html]# chcon -t httpd_sys_rw_content_t app/subnets/import-subnet/upload/ -R
[root@localhost html]# chcon -t httpd_sys_rw_content_t css/1.4.0/images/logo/ -R

8、配置数据库

[root@localhost ~]#  cd /var/www/html/
[root@localhost html]# cp config.dist.php config.php

9、导入sql
执行/var/www/html/db/下的SCHEMA.sql

10、验证,打开http://192.168.10.10,输入数据库信息,设置管理员账号密码,登陆即可
在这里插入图片描述

在这里插入图片描述
在这里插入图片描述

Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐