phpIPAM是一个开源的Web IP地址管理应用程序(IPAM)。其目标是提供轻松,现代和有用的IP地址管理。它是基于php的应用程序,带有MySQL数据库后端,使用jQuery库,ajax和HTML5 / CSS3功能。
官方安装教程指南链接:https://phpipam.net/documents/installation/
①禁用SELINUX,并重启服务器
sed -i '/SELINUX/s/enforcing/disabled/' /etc/selinux/config && reboot
systemctl stop firewalld
yum install epel-release -y
yum install wget vim net-tools 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
①修改apache配置文件/etc/httpd/conf/httpd.conf,主要是修改以下两个地方
ServerName localhost:80
<Directory "/var/www/html"> #修改目录设置以允许mod_rewrite URL重写
Options FollowSymLinks
AllowOverride all
Order allow,deny
Allow from all
#Require all granted
</Directory>
httpd -t -f /etc/httpd/conf/httpd.conf
date.timezone = Asia/Shanghai
④启动httpd并配置开机启动
#开机启动Apache
systemctl enable httpd
#启动Apache
systemctl start httpd
3、初始化配置mariaDB
①启动mariadb数据库
#启动mariadb
systemctl start mariadb
#开机启动mariadb
systemctl enable mariadb
mysql_secure_installation
4、下载和配置phpipam
①下载phpipam文件代码到/var/www/html
cd /var/www/html/
git clone https://github.com/phpipam/phpipam.git .
git checkout 1.4
chown apache:apache -R /var/www/html/
cp /var/www/html/config.dist.php /var/www/html/config.dist.php.bak
mv /var/www/html/config.dist.php /var/www/html/config.php
define('BASE', "/phpipam"); #修改这行
⑤重启httpd服务
systemctl restart httpd
打开地址:http://服务器IP/phpipam
①选择新的phpipam安装
⑤登录系统
四、使用教程:
①登录成功后会自动跳转到主界面
⑤选中对应的 IP 可以进行编辑
文章转自公众号:释然IT杂谈