Volledige installatiehandleiding
Volledige XOOPS installatiehandleiding
Section titled “Volledige XOOPS installatiehandleiding”Deze handleiding biedt uitgebreide uitleg voor het helemaal opnieuw installeren van XOOPS met behulp van de installatiewizard.
Vereisten
Section titled “Vereisten”Voordat u met de installatie begint, moet u ervoor zorgen dat u beschikt over:
- Toegang tot uw webserver via FTP of SSH
- Beheerdertoegang tot uw databaseserver
- Een geregistreerde domeinnaam
- Serververeisten geverifieerd
- Back-uptools beschikbaar
Installatieproces
Section titled “Installatieproces”flowchart TD A[Download XOOPS] --> B[Extract Files] B --> C[Set File Permissions] C --> D[Create Database] D --> E[Visit Installation Wizard] E --> F{License Accepted?} F -->|No| G[Review License] G --> F F -->|Yes| H[System Check] H --> I{All Checks Pass?} I -->|No| J[Fix Issues] J --> I I -->|Yes| K[Database Configuration] K --> L[Admin Account Setup] L --> M[Module Installation] M --> N[Installation Complete] N --> O[Remove install Folder] O --> P[Secure Installation] P --> Q[Begin Using XOOPS]Stapsgewijze installatie
Section titled “Stapsgewijze installatie”Stap 1: XOOPS downloaden
Section titled “Stap 1: XOOPS downloaden”Download de nieuwste versie van https://xoops.org/:
# Using wgetwget https://xoops.org/download/xoops-2.5.8.zip
# Using curlcurl -O https://xoops.org/download/xoops-2.5.8.zipStap 2: bestanden uitpakken
Section titled “Stap 2: bestanden uitpakken”Pak het XOOPS-archief uit naar uw webroot:
# Navigate to web rootcd /var/www/html
# Extract XOOPSunzip xoops-2.5.8.zip
# Rename folder (optional, but recommended)mv xoops-2.5.8 xoopscd xoopsStap 3: Bestandsrechten instellen
Section titled “Stap 3: Bestandsrechten instellen”Stel de juiste machtigingen in voor XOOPS-mappen:
# Make directories writable (755 for dirs, 644 for files)find . -type d -exec chmod 755 {} \;find . -type f -exec chmod 644 {} \;
# Make specific directories writable by web serverchmod 777 uploads/chmod 777 templates_c/chmod 777 var/chmod 777 cache/
# Secure mainfile.php after installationchmod 644 mainfile.phpStap 4: Database maken
Section titled “Stap 4: Database maken”Maak een nieuwe database voor XOOPS met behulp van MySQL:
-- Create databaseCREATE DATABASE xoops_db CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
-- Create userCREATE USER 'xoops_user'@'localhost' IDENTIFIED BY 'secure_password_here';
-- Grant privilegesGRANT ALL PRIVILEGES ON xoops_db.* TO 'xoops_user'@'localhost';FLUSH PRIVILEGES;Of gebruik phpMyAdmin:
- Log in op phpMyAdmin
- Klik op het tabblad “Databases”.
- Voer de databasenaam in:
xoops_db - Selecteer de sortering “utf8mb4_unicode_ci”.
- Klik op “Maken”
- Maak een gebruiker aan met dezelfde naam als de database
- Verleen alle rechten
Stap 5: Voer de installatiewizard uit
Section titled “Stap 5: Voer de installatiewizard uit”Open uw browser en navigeer naar:
http://your-domain.com/xoops/install/Systeemcontrolefase
Section titled “Systeemcontrolefase”De wizard controleert uw serverconfiguratie:
- PHP-versie >= 5.6.0
- MySQL/MariaDB beschikbaar
- Vereiste PHP-extensies (GD, PDO, enz.)
- Directory-machtigingen
- Databaseconnectiviteit
Als de controles mislukken:
Zie de sectie #Veelvoorkomende installatieproblemen voor oplossingen.
Databaseconfiguratie
Section titled “Databaseconfiguratie”Voer uw databasegegevens in:
Database Host: localhostDatabase Name: xoops_dbDatabase User: xoops_userDatabase Password: [your_secure_password]Table Prefix: xoops_Belangrijke opmerkingen:
- Als uw databasehost verschilt van localhost (bijvoorbeeld een externe server), voert u de juiste hostnaam in
- Het tabelvoorvoegsel helpt bij het uitvoeren van meerdere XOOPS-instanties in één database
- Gebruik een sterk wachtwoord met hoofdletters, cijfers en symbolen
Beheerdersaccount instellen
Section titled “Beheerdersaccount instellen”Maak uw beheerdersaccount aan:
Admin Username: admin (or choose custom)Admin Email: admin@your-domain.comAdmin Password: [strong_unique_password]Confirm Password: [repeat_password]Beste praktijken:
- Gebruik een unieke gebruikersnaam, niet “admin”
- Gebruik een wachtwoord met meer dan 16 tekens
- Bewaar inloggegevens in een veilige wachtwoordbeheerder
- Deel nooit beheerdersreferenties
Module-installatie
Section titled “Module-installatie”Kies standaardmodules om te installeren:
- Systeemmodule (vereist) - Kernfunctionaliteit XOOPS
- Gebruikersmodule (vereist) - Gebruikersbeheer
- Profielmodule (aanbevolen) - Gebruikersprofielen
- PM-module (privébericht) (aanbevolen) - Interne berichtenuitwisseling
- WF-Channel Module (optioneel) - Contentbeheer
Selecteer alle aanbevolen modules voor een volledige installatie.
Stap 6: Voltooi de installatie
Section titled “Stap 6: Voltooi de installatie”Na alle stappen ziet u een bevestigingsscherm:
Installation Complete!
Your XOOPS installation is ready to use.Admin Panel: http://your-domain.com/xoops/admin/User Panel: http://your-domain.com/xoops/Stap 7: Beveilig uw installatie
Section titled “Stap 7: Beveilig uw installatie”Installatiemap verwijderen
Section titled “Installatiemap verwijderen”# Remove the install directory (CRITICAL for security)rm -rf /var/www/html/xoops/install/
# Or rename itmv /var/www/html/xoops/install/ /var/www/html/xoops/install.bakWARNING: Laat de installatiemap nooit toegankelijk tijdens de productie!
Veilig mainfile.php
Section titled “Veilig mainfile.php”# Make mainfile.php read-onlychmod 644 /var/www/html/xoops/mainfile.php
# Set ownershipchown www-data:www-data /var/www/html/xoops/mainfile.phpStel de juiste bestandsrechten in
Section titled “Stel de juiste bestandsrechten in”# Recommended production permissionsfind . -type f -name "*.php" -exec chmod 644 {} \;find . -type d -exec chmod 755 {} \;
# Writable directories for web serverchmod 777 uploads/ var/ cache/ templates_c/HTTPS/SSL inschakelen
Section titled “HTTPS/SSL inschakelen”Configureer SSL in uw webserver (nginx of Apache).
Voor Apache:
<VirtualHost *:443> ServerName your-domain.com DocumentRoot /var/www/html/xoops
SSLEngine on SSLCertificateFile /etc/ssl/certs/your-cert.crt SSLCertificateKeyFile /etc/ssl/private/your-key.key
# Force HTTPS redirect <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] </IfModule></VirtualHost>Configuratie na installatie
Section titled “Configuratie na installatie”1. Open het beheerdersdashboard
Section titled “1. Open het beheerdersdashboard”Navigeer naar:
http://your-domain.com/xoops/admin/Log in met uw beheerdersgegevens.
2. Basisinstellingen configureren
Section titled “2. Basisinstellingen configureren”Configureer het volgende:
- Sitenaam en beschrijving
- Beheerder e-mailadres
- Tijdzone en datumformaat
- Zoekmachineoptimalisatie
3. Installatie testen
Section titled “3. Installatie testen”- Bezoek de startpagina
- Controleer de modulebelasting
- Controleer of de gebruikersregistratie werkt
- Test de functies van het beheerderspaneel
- Bevestig dat SSL/HTTPS werkt
4. Back-ups plannen
Section titled “4. Back-ups plannen”Automatische back-ups instellen:
# Create backup script (backup.sh)#!/bin/bashDATE=$(date +%Y%m%d_%H%M%S)BACKUP_DIR="/backups/xoops"XOOPS_DIR="/var/www/html/xoops"
# Backup databasemysqldump -u xoops_user -p[password] xoops_db > $BACKUP_DIR/db_$DATE.sql
# Backup filestar -czf $BACKUP_DIR/files_$DATE.tar.gz $XOOPS_DIR
echo "Backup completed: $DATE"Schema met cron:
# Daily backup at 2 AM0 2 * * * /usr/local/bin/backup.shVeelvoorkomende installatieproblemen
Section titled “Veelvoorkomende installatieproblemen”Probleem: fouten met geweigerde toestemming
Section titled “Probleem: fouten met geweigerde toestemming”Symptoom: “Toestemming geweigerd” bij het uploaden of maken van bestanden
Oplossing:
# Check web server userps aux | grep apache # For Apacheps aux | grep nginx # For Nginx
# Fix permissions (replace www-data with your web server user)chown -R www-data:www-data /var/www/html/xoopschmod -R 755 /var/www/html/xoopschmod 777 uploads/ var/ cache/ templates_c/Probleem: databaseverbinding mislukt
Section titled “Probleem: databaseverbinding mislukt”Symptoom: “Kan geen verbinding maken met databaseserver”Oplossing:
- Controleer de databasereferenties in de installatiewizard
- Controleer of MySQL/MariaDB actief is:
service mysql status # or mariadb- Controleer of de database bestaat:
SHOW DATABASES;- Test de verbinding vanaf de opdrachtregel:
mysql -h localhost -u xoops_user -p xoops_dbProbleem: leeg wit scherm
Section titled “Probleem: leeg wit scherm”Symptoom: Als u XOOPS bezoekt, wordt een lege pagina weergegeven
Oplossing:
- Controleer de PHP-foutlogboeken:
tail -f /var/log/apache2/error.log- Schakel de foutopsporingsmodus in mainfile.php in:
define('XOOPS_DEBUG', 1);- Controleer de bestandsrechten op mainfile.php en configuratiebestanden
- Controleer of de PHP-MySQL-extensie is geïnstalleerd
Probleem: kan niet naar de uploadmap schrijven
Section titled “Probleem: kan niet naar de uploadmap schrijven”Symptoom: Uploadfunctie mislukt: “Kan niet schrijven naar uploads/”
Oplossing:
# Check current permissionsls -la uploads/
# Fix permissionschmod 777 uploads/chown www-data:www-data uploads/
# For specific fileschmod 644 uploads/*Probleem: PHP-extensies ontbreken
Section titled “Probleem: PHP-extensies ontbreken”Symptoom: Systeemcontrole mislukt omdat er ontbrekende extensies zijn (GD, MySQL, enz.)
Oplossing (Ubuntu/Debian):
# Install PHP GD libraryapt-get install php-gd
# Install PHP MySQL supportapt-get install php-mysql
# Restart web serversystemctl restart apache2 # or nginxOplossing (CentOS/RHEL):
# Install PHP GD libraryyum install php-gd
# Install PHP MySQL supportyum install php-mysql
# Restart web serversystemctl restart httpdProbleem: langzaam installatieproces
Section titled “Probleem: langzaam installatieproces”Symptoom: Er treedt een time-out op bij de installatiewizard of deze werkt erg langzaam
Oplossing:
- Verhoog de time-out voor PHP in php.ini:
max_execution_time = 300 # 5 minutes- Verhoog MySQL max_allowed_packet:
SET GLOBAL max_allowed_packet = 256M;- Controleer serverbronnen:
free -h # Check RAM df -h # Check disk spaceProbleem: beheerderspaneel niet toegankelijk
Section titled “Probleem: beheerderspaneel niet toegankelijk”Symptoom: Geen toegang tot het beheerderspaneel na installatie
Oplossing:
- Controleer of de admin-gebruiker bestaat in de database:
SELECT * FROM xoops_users WHERE uid = 1;- Wis browsercache en cookies
- Controleer of de sessiemap schrijfbaar is:
chmod 777 var/- Controleer of de htaccess-regels de beheerderstoegang niet blokkeren
Verificatiechecklist
Section titled “Verificatiechecklist”Controleer na de installatie:
- XOOPS-startpagina wordt correct geladen
- Beheerderspaneel is toegankelijk via /xoops/admin/
- SSL/HTTPS werkt
- Installatiemap is verwijderd of ontoegankelijk
- Bestandsrechten zijn veilig (644 voor bestanden, 755 voor mappen)
- Databaseback-ups zijn gepland
- Modules worden zonder fouten geladen
- Gebruikersregistratiesysteem werkt
- De functionaliteit voor het uploaden van bestanden werkt
- E-mailmeldingen worden correct verzonden
Volgende stappen
Section titled “Volgende stappen”Zodra de installatie is voltooid:
- Lees de Basisconfiguratiehandleiding
- Beveilig uw installatie
- Verken het beheerderspaneel
- Installeer extra modules
- Stel gebruikersgroepen en machtigingen in
Tags: #installatie #setup #aan de slag #probleemoplossing
Gerelateerde artikelen:
- Serververeisten
- Upgraden-XOOPS
- ../Configuratie/Veiligheidsconfiguratie