This script is provided as-is without any warranty. Always test in a development environment before production use. Please ensure you have proper backups before running the script.
An interactive, semi-automated installation script for GLPI (IT Asset Management) on Debian 12.9 (Bookworm). This script sets up the complete server environment (Apache, PHP, MariaDB) and configures daily backups, while allowing you to complete the GLPI web installation manually.
- β Fully Interactive - Prompts for all configuration options
- β Debian 12.9 Optimized - Uses native packages from Debian repositories
- β PHP 8.2 Support - Configured with optimal settings for GLPI
- β MariaDB Database - Automatic database and user creation
- β Flexible Password Options - Choose your own or generate secure random passwords
- β Apache Virtual Host - Automatically configured with optional HTTPS (Let's Encrypt)
- β Daily Automated Backups - Configurable backup schedule with retention policy
- β Email Notifications - Backup status alerts to your email
- β Interactive Summary - Review all settings before installation
- β Comprehensive Logging - All actions logged for troubleshooting
- β Security Focused - Best practices applied by default
- Debian 12.9 (Bookworm) - Fresh installation recommended
- Root access - Script must be run as root or with sudo
- Internet connection - For downloading packages and GLPI
- Minimum 2GB RAM - 4GB recommended for production
- Minimum 10GB free disk space - More depending on asset data
wget https://raw.githubusercontent.com/voogarix/glpi-interactive-installer/main/glpi.sh
# or
curl -O https://raw.githubusercontent.com/voogarix/glpi-interactive-installer/main/glpi.shchmod +x glpi.shsudo ./glpi.shThe script will guide you through:
Database configuration (name, user, password)
Web server settings (domain/IP, HTTPS)
Email configuration (for backup alerts)
Backup settings (directory, retention, schedule)
After the script finishes:
Open your browser to http://your-domain-or-ip
Follow the GLPI web installation wizard
Enter the database credentials provided by the script
Complete the setup and remove the install directory
/var/www/html/glpi/ # GLPI installation directory
βββ public/ # Web root
βββ config/ # Configuration files
βββ files/ # Uploads and generated files
βββ install/ # Installer (remove after setup)
/var/log/
βββ glpi/ # GLPI logs
βββ apache2/ # Apache logs
/var/backups/glpi/ # Backup directory
βββ glpi_backup_*.tar.gz # Daily backups
βββ backup.log # Backup logs
/root/glpi_installation_info.txt # Installation summary
/var/log/glpi_install_*.log # Installation log
# Access your GLPI instance
http://your-server-ip-or-domain
# Use the database credentials from the installation summary
# Database host: localhost
# Database name: [your-db-name]
# Database user: [your-db-user]
# Database password: [your-db-password]# Remove the install directory after setup
sudo rm -rf /var/www/html/glpi/install
# Change default GLPI admin password
# Login with glpi/glpi and change immediately
# Set proper file permissions
sudo chmod 640 /var/www/html/glpi/config/config_db.php# Run manual backup test
sudo /usr/local/bin/glpi_backup.sh
# Check backup log
sudo tail -f /var/backups/glpi/backup.log# Restart Apache
sudo systemctl restart apache2
# Restart MariaDB
sudo systemctl restart mariadb
# Check service status
sudo systemctl status apache2 mariadb# Manual backup
sudo /usr/local/bin/glpi_backup.sh
# List backups
ls -lh /var/backups/glpi/
# Restore from backup
sudo tar -xzf /var/backups/glpi/glpi_backup_*.tar.gz -C /# Watch GLPI logs
sudo tail -f /var/log/glpi/*.log
# Watch Apache logs
sudo tail -f /var/log/apache2/glpi_error.log
# Watch backup logs
sudo tail -f /var/backups/glpi/backup.logContributions are welcome! Please feel free to submit a Pull Request.
Fork the repository
Create your feature branch (git checkout -b feature/AmazingFeature)
Commit your changes (git commit -m 'Add some AmazingFeature')
Push to the branch (git push origin feature/AmazingFeature)
Open a Pull Request
This project is licensed under the GPL 3.0 License - see the LICENSE file for details.
GLPI Project - For the great ITAM software
Debian - For the stable operating system
Contributors and users who provided feedback
π Documentation: GLPI Official Docs
π¬ Community: GLPI Forums
π Issues: GitHub Issues