phpipam install
1. apt update
2. apt upgrade
3. sudo apt -y install php php-{mysql,curl,gd,intl,pear,imap,memcache,pspell,tidy,xmlrpc,mbstring,gmp,json,xml,fpm,ldap}
4. apt-get install apache2 mariadb-server
5. apt-get install snmp-mibs-downloader
6. apt-get install php-snmp
7. sudo mysql_secure_installation
8. mysql -u root -p
9. GRANT ALL on phpipam.* to phpipam@localhost identified by 'strongpassword';
10. systemctl start apache2
systemctl enable mariadb
systemctl enable apache2
11. sudo apt -y install git
12. sudo git clone --recursive https://github.com/phpipam/phpipam.git /var/www/phpipam
cd /var/www/phpipam
sudo git checkout 1.4
git submodule update --init --recursive
cp config.dist.php config.php
nano config.php
$db['host'] = 'localhost';
$db['user'] = 'phpipam';
$db['pass'] = 'strongpassword';
$db['name'] = 'phpipam';
$db['port'] = 3306;
13. sudo apt -y install libapache2-mod-php
14. sudo a2enmod rewrite
15. sudo mysql -u root -p phpipam < /var/www/html/phpipam/db/SCHEMA.sql
16. nano /etc/apache2/sites-available/000-default.conf
<VirtualHost *:80>
ServerAdmin admin@phpipam.yourdomain.com
DocumentRoot /var/www/html/phpipam/
ServerName phpipam.company.eu
<Directory /var/www/html/phpipam>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog "/var/log/phpipam.company.eu-error_log"
CustomLog "/var/log/phpipam.company.eu-access_log" combined
</VirtualHost>
17. sudo a2ensite 00-default
18. sudo a2ensite default-ssl
19. sudo chown -R www-data:www-data /var/www/html/
20. sudo systemctl restart apache2
20. sudo a2ensite 000-default
21. sudo nano /etc/apache2/sites-available/default-ssl.conf
SSLCertificateFile /etc/ssl/certs/myprivate.crt
SSLCertificateKeyFile /etc/ssl/private/mypreivate.key
22. sudo timedatectl set-timezone Europe/Riga
23. sudo nano /etc/ssl/certs/ca-certificates.crt
Adding in end of file company ldap sertificates
24. echo "TLS_REQCERT allow" | tee /etc/ldap/ldap.conf
25. redirect to https
sudo nano /etc/apache2/sites-available/000-default.conf
<VirtualHost *:80>
ServerAdmin admin@phpipam.yourdomain.com
DocumentRoot /var/www/html/phpipam/
Redirect permanent / https://phpipam.company.eu
ServerName phpipam.company.eu
<Directory /var/www/html/phpipam>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog "/var/log/phpipam.company.eu-error_log"
CustomLog "/var/log/phpipam.company.eu-access_log" combined
</VirtualHost>