安装centos7+宝塔面板+phpipam 2022-02-22 linux 暂无评论 3505 次阅读 1、首先按照宝塔官网方式完成宝塔面板安装。 2、进入宝塔,添加站点,生成FTP账号密码,Mysql账号密码,以及对应的根目录如/www/wwwroot/ipam.abc.com。 3、解压phpipam文件,复制config.dist.php改为config.php,修改其中Mysql链接信息。 ``` $db['host'] = 'localhost'; $db['user'] = 'phpipam'; $db['pass'] = 'phpipamadmin'; $db['name'] = 'phpipam'; $db['port'] = 3306; ``` 4、FTP上传phpipam文件到上述网站根目录 5、SSH连接上服务器,切换到网站根目录导入SQL ``` cd /www/wwwroot/ipam.abc.com mysql -u root -p ipam_hnasatc_com < db/SCHEMA.sql ``` 输入密码后,导入文件。 6、打开网站可能会跳转到安装,选择New phpipam installation->MySQL/MariaDB import instructions,如下图。 ![phpipam-install-01.png](https://blog.moper.net/usr/uploads/2022/02/3010139836.png) ![phpipam-install-02.png](https://blog.moper.net/usr/uploads/2022/02/2168600257.png) ![phpipam-install-03.png](https://blog.moper.net/usr/uploads/2022/02/1393355287.png) 结束后可点下方Login登录,Admin/ipamadmin。 附扩展要求,需要在面板里添加,测试PHP7.4可正常使用。PEAR扩展宝塔没有自带,需要另外安装,详见《[宝塔环境下php7.4安装pecl,并安装event扩展](https://blog.moper.net/2870.html "宝塔环境下php7.4安装pecl,并安装event扩展")》 PHP modules: pdo, pdo_mysql : Adds support for mysql connections session : Adds persistent session support sockets : Adds sockets support openssl : Adds openSSL support gmp : Adds support for dev-libs/gmp (GNU MP library) -> to calculate IPv6 networks ldap : Adds LDAP support (Lightweight Directory Access Protocol – for AD also) crypt : Add support for password encryption SimpleXML: Support for SimpleXML (optional, for RIPE queries and if required for API) json: Enable JSON support gettext: Enables translation filter : Adds filtering support pcntl : Add support for process creation functions (optional, required for scanning) cli : Enable CLI (optional, required for scanning and status checks) mbstring : Enable mbstring support php PEAR support 标签: phpipam 本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。