Git Product home page Git Product logo

phpipam-installer's Introduction

PHPIPAM INSTALLER

This script is a small tool used to automate the deployment of phpipam on a brand new clean debian 9 install. All my gratitude to Miha Petkovsek, creator of phpipam.

Find out more about phpipam and phpipam on github To install debian

N.B. : It will be soon tested for debian 10

What the script does

  • It installs several tools and utils on your debian 9 server
    • mariadb-client and mariadb-server (MySQL)
    • expect and jq (for config. purposes)
    • snmp, snmpd, fping (required for phpipam)
    • apache2, openssl, php7.0 (and all the required php7 plugins required by phpipam)
    • git
    • vim and vim-pathogen
    • netcat, tcpdump, dnsutils (because it is always useful on a server, especially one for phpipam)
  • It sets the root password for mariadb
  • It configures apache2 vhost and ssl vhost for phpipam
  • It clones the github repo of phpipam, checkout on the configured version
  • It configures the config.php file
  • It creates a DB for phpipam, load the phpipam DB schema
  • It restarts apache, and you're good to go ! (you still need to install your own valid ssl certificate)

How to use

Install a clean debian 9, copy the script in your home directory, make the script executable

chmod +x ./phpipam_installer.sh

Then, simply run the script (as root)

./phpipam_installer.sh

Configuration

Before copying the script, you can edit all variables as needed

  • ipam_admin_email : PHPIPAM ADMIN EMAIL
  • ipam_admin_pass : PHPIPAM ADMIN PASSWORD
  • ipam_site_title : PHPIPAM SITE TITLE
  • ipam_site_domain : PHPIPAM SITE DOMAIN NAME
  • ipam_site_host : PHPIPAM SITE HOST NAME
  • ipam_site_url_scheme : PHP IPAM URL SCHEME (http or https)
  • ipam_parentpath : PHPIPAM PARENT DIRECTORY PATH
  • ipam_dirname : PHPIPAM DIRECTORY
  • vhost_admin : PHPIPAM APACHE VHOST ADMIN
  • vhost_aliases : PHPIPAM APACHE VHOST ALIASES
  • vhost_error_log : PHPIPAM APACHE VHOST ERROR LOG NAME
  • vhost_access_log : PHPIPAM APACHE VHOST ACCESS LOG NAME
  • vhost_ssl_error_log : PHPIPAM APACHE SSL VHOST ERROR LOG NAME
  • vhost_ssl_access_log : PHPIPAM APACHE SSL VHOST ACCESS LOG NAME
  • apache_conf_path : PHPIPAM APACHE VHOST CONFIG PATH
  • apache_vhost_ipam : PHPIPAM APACHE VHOST NAME
  • apache_vhost_ipam_ssl : PHPIPAM APACHE SSL VHOST NAME
  • php_ipam_version : PHPIPAM VERSION (actual stable : 1.4)
  • sql_root_pwd : MySQL (mariadb) ROOT PASSWORD
  • sql_ipam_user : MySQL (mariadb) PHPIPAM USER
  • sql_ipam_pwd : MySQL (mariadb) PHPIPAM USER PASSWORD
  • sql_ipam_db : MySQL (mariadb) PHPIPAM DB NAME

phpipam-installer's People

Stargazers

 avatar

Watchers

 avatar

phpipam-installer's Issues

Apt-get fails on Debian 10

Hey there,

I just installed a fresh copy of Raspberry Pi OS, which is a 64-bit ARM package and based on Debian 10:

pi@Pi-Hole:/tmp $ cat /etc/issue
Debian GNU/Linux 10 \n \l

After executing the script, it fails to run the apt-get install portion:

pi@Pi-Hole:~/phpipam-installer $ sudo ./phpipam_installer.sh 

  ---------------------------------------
   PHPIPAM Automatic install on debian 9 
  ---------------------------------------
   [email protected]                  
  ---------------------------------------

mariadb-server, mariadb-client, expect, jq, fping, and snmp are both succefully installed
apt-get install was not possible. Please check log and error files (/tmp/ipam_install.log and /tmp/ipam_install_error.log)

Here's the error log:

pi@Pi-Hole:/tmp $ cat /tmp/ipam_install_error.log 
E: Unable to locate package php7.0-zip
E: Couldn't find any package by glob 'php7.0-zip'
E: Couldn't find any package by regex 'php7.0-zip'
E: Unable to locate package php7.0-xmlrpc
E: Couldn't find any package by glob 'php7.0-xmlrpc'
E: Couldn't find any package by regex 'php7.0-xmlrpc'
E: Unable to locate package php7.0-xml
E: Couldn't find any package by glob 'php7.0-xml'
E: Couldn't find any package by regex 'php7.0-xml'
E: Unable to locate package php7.0-tidy
E: Couldn't find any package by glob 'php7.0-tidy'
E: Couldn't find any package by regex 'php7.0-tidy'
E: Unable to locate package php7.0-soap
E: Couldn't find any package by glob 'php7.0-soap'
E: Couldn't find any package by regex 'php7.0-soap'
E: Unable to locate package php7.0-snmp
E: Couldn't find any package by glob 'php7.0-snmp'
E: Couldn't find any package by regex 'php7.0-snmp'
E: Unable to locate package php7.0-mysql
E: Couldn't find any package by glob 'php7.0-mysql'
E: Couldn't find any package by regex 'php7.0-mysql'
E: Unable to locate package php7.0-mcrypt
E: Couldn't find any package by glob 'php7.0-mcrypt'
E: Couldn't find any package by regex 'php7.0-mcrypt'
E: Unable to locate package php7.0-mbstring
E: Couldn't find any package by glob 'php7.0-mbstring'
E: Couldn't find any package by regex 'php7.0-mbstring'
E: Unable to locate package php7.0-ldap
E: Couldn't find any package by glob 'php7.0-ldap'
E: Couldn't find any package by regex 'php7.0-ldap'
E: Unable to locate package php7.0-imap
E: Couldn't find any package by glob 'php7.0-imap'
E: Couldn't find any package by regex 'php7.0-imap'
E: Unable to locate package php7.0-gmp
E: Couldn't find any package by glob 'php7.0-gmp'
E: Couldn't find any package by regex 'php7.0-gmp'
E: Unable to locate package php7.0-gd
E: Couldn't find any package by glob 'php7.0-gd'
E: Couldn't find any package by regex 'php7.0-gd'
E: Package 'php7.0-curl' has no installation candidate
E: Unable to locate package php7.0-bcmath
E: Couldn't find any package by glob 'php7.0-bcmath'
E: Couldn't find any package by regex 'php7.0-bcmath'
E: Unable to locate package php7.0-bz2
E: Couldn't find any package by glob 'php7.0-bz2'
E: Couldn't find any package by regex 'php7.0-bz2'
E: Unable to locate package libapache2-mod-php7.0
E: Couldn't find any package by glob 'libapache2-mod-php7.0'
E: Couldn't find any package by regex 'libapache2-mod-php7.0'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.