安装必要的软件
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
编辑httpd配置文件/etc/httpd/conf/httpd.conf 允许其重定向URL
<Directory "/var/www/html"> 只要修改这里面的内容就行了
Options FollowSymLinks
AllowOverride all
Order allow,deny
Allow from all
</Directory>
修改/etc/php.ini
date.timezone = Asia/Shanghai
接着就是开始httpd,mariadb,修改mariadb密码等等
[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.3
[root@localhost html]# [root@localhost ~]# cd /var/www/html/ [root@localhost html]# git clone https://github.com/phpipam/phpipam.git phpipam #下载到phpipam文件夹中
[root@localhost html]# cd phpipam
[root@localhost html]# git checkout 1.3
注意,还要把phpipam文件夹里面的文件全都复制到html文件夹下,否则会提示找不到相关文件文件
cp config.dist.php config.php #config.php从config.dist.php文件复制过来即可,否则会提示找不到config.php
记得还要配置一下config.php,里面关于数据库的参数,例如用户名,密码,数据库名等
浏览器访问localhost即可开始安装
安装数据库时可能会报错
Error Code: 1044. Access denied for user 'root'@'%' to database
解决方法:
UPDATE mysql.user SET Grant_priv='Y', Super_priv='Y' WHERE User='root';
FLUSH PRIVILEGES;
安装好之后,如下执行,完成发现局域网存活主机
下面这图,编辑完之后直接edit完成即可
点击第二步之后,会出现存活的主机,注意:需要下拉到底部,底部会有一个添加到数据库。可以看到,下面就是存活的主机