Uitgever - Installatiehandleiding
Installatiehandleiding voor uitgevers
Section titled “Installatiehandleiding voor uitgevers”Volledige instructies voor het installeren en configureren van de Publisher-module voor XOOPS CMS.
Systeemvereisten
Section titled “Systeemvereisten”Minimale vereisten
Section titled “Minimale vereisten”| Vereiste | Versie | Opmerkingen |
|---|---|---|
| XOOPS | 2.5.10+ | Kern CMS-platform |
| PHP | 7,1+ | PHP 8.x aanbevolen |
| MySQL | 5,7+ | Databaseserver |
| Webserver | Apache/Nginx | Met herschrijfondersteuning |
PHP-extensies
Section titled “PHP-extensies”- PDO (PHP Data Objects)- pdo_mysql or mysqli- mb_string (multibyte strings)- curl (for external content)- json- gd (image processing)Schijfruimte
Section titled “Schijfruimte”- Modulebestanden: ~5 MB
- Cachemap: 50+ MB aanbevolen
- Uploaddirectory: indien nodig voor inhoud
Controlelijst vóór installatie
Section titled “Controlelijst vóór installatie”Controleer het volgende voordat u Publisher installeert:
- XOOPS-kern is geïnstalleerd en actief
- Beheerdersaccount heeft machtigingen voor modulebeheer
- Databaseback-up gemaakt
- Bestandsrechten staan schrijftoegang tot de map
/modules/toe - PHP geheugenlimiet is minimaal 128 MB
- Limieten voor de bestandsuploadgrootte zijn van toepassing (min. 10 MB)
Installatiestappen
Section titled “Installatiestappen”Stap 1: Uitgever downloaden
Section titled “Stap 1: Uitgever downloaden”Optie A: Van GitHub (aanbevolen)
Section titled “Optie A: Van GitHub (aanbevolen)”# Navigate to modules directorycd /path/to/xoops/htdocs/modules/
# Clone the repositorygit clone https://github.com/XoopsModules25x/publisher.git
# Verify downloadls -la publisher/Optie B: Handmatig downloaden
Section titled “Optie B: Handmatig downloaden”- Ga naar GitHub Publisher Releases
- Download het nieuwste
.zip-bestand - Uitpakken naar
modules/publisher/
Stap 2: Bestandsrechten instellen
Section titled “Stap 2: Bestandsrechten instellen”# Set proper ownershipchown -R www-data:www-data /path/to/xoops/htdocs/modules/publisher
# Set directory permissions (755)find publisher -type d -exec chmod 755 {} \;
# Set file permissions (644)find publisher -type f -exec chmod 644 {} \;
# Make scripts executablechmod 755 publisher/admin/index.phpchmod 755 publisher/index.phpStap 3: Installeren via XOOPS Admin
Section titled “Stap 3: Installeren via XOOPS Admin”- Meld u als beheerder aan bij XOOPS beheerdersdashboard
- Navigeer naar Systeem → Modules
- Klik op Module installeren
- Zoek Uitgever in de lijst
- Klik op de knop Installeren
- Wacht tot de installatie is voltooid (toont aangemaakte databasetabellen)
Installation Progress:✓ Tables created✓ Configuration initialized✓ Permissions set✓ Cache clearedInstallation Complete!Initiële installatie
Section titled “Initiële installatie”Stap 1: Toegang tot uitgeversbeheer
Section titled “Stap 1: Toegang tot uitgeversbeheer”- Ga naar Beheerderspaneel → Modules
- Zoek de module Uitgever
- Klik op de link Beheer
- U bevindt zich nu in Uitgeversbeheer
Stap 2: Modulevoorkeuren configureren
Section titled “Stap 2: Modulevoorkeuren configureren”- Klik op Voorkeuren in het linkermenu
- Basisinstellingen configureren:
General Settings:- Editor: Select your WYSIWYG editor- Items per page: 10- Show breadcrumb: Yes- Allow comments: Yes- Allow ratings: Yes
SEO Settings:- SEO URLs: No (enable later if needed)- URL rewriting: None
Upload Settings:- Max upload size: 5 MB- Allowed file types: jpg, png, gif, pdf, doc, docx- Klik op Instellingen opslaan
Stap 3: Maak een eerste categorie
Section titled “Stap 3: Maak een eerste categorie”- Klik op Categorieën in het linkermenu
- Klik op Categorie toevoegen
- Formulier invullen:
Category Name: NewsDescription: Latest news and updatesImage: (optional) Upload category imageParent Category: (leave blank for top-level)Status: Enabled- Klik op Categorie opslaan
Stap 4: Controleer de installatie
Section titled “Stap 4: Controleer de installatie”Controleer deze indicatoren:
graph TD A[Installation Check] -->|Database| B[✓ Tables exist] A -->|Files| C[✓ Folders writable] A -->|Admin| D[✓ Module visible] A -->|Frontend| E[✓ Module displays]Databasecontrole
Section titled “Databasecontrole”mysql -u xoops_user -p xoops_databasemysql> SHOW TABLES LIKE 'publisher%';
# Should show tables:# - publisher_categories# - publisher_items# - publisher_comments# - publisher_filesFront-endcontrole
Section titled “Front-endcontrole”- Bezoek uw XOOPS-startpagina
- Zoek naar het blok Uitgever of Nieuws
- Moet recente artikelen weergeven
Configuratie na installatie
Section titled “Configuratie na installatie”Editorselectie
Section titled “Editorselectie”Publisher ondersteunt meerdere WYSIWYG-editors:
| Redacteur | Pluspunten | Nadelen |
|---|---|---|
| FCKeditor | Functierijk | Ouder, groter |
| CKEditor | Moderne standaard | Complexiteit configureren |
| TinyMCE | Lichtgewicht | Beperkte functies |
| DHTML-editor | Basis | Heel eenvoudig |
Om de editor te wijzigen:
- Ga naar Voorkeuren
- Scroll naar de Editor-instelling
- Selecteer uit de vervolgkeuzelijst
- Opslaan en testen
Directory-instellingen uploaden
Section titled “Directory-instellingen uploaden”# Create upload directoriesmkdir -p /path/to/xoops/uploads/publisher/mkdir -p /path/to/xoops/uploads/publisher/categories/mkdir -p /path/to/xoops/uploads/publisher/images/mkdir -p /path/to/xoops/uploads/publisher/files/
# Set permissionschmod 755 /path/to/xoops/uploads/publisher/chmod 755 /path/to/xoops/uploads/publisher/*Afbeeldingsformaten configureren
Section titled “Afbeeldingsformaten configureren”Stel in Voorkeuren de miniatuurgroottes in:
Category image size: 300 x 200 pxArticle image size: 600 x 400 pxThumbnail size: 150 x 100 pxStappen na installatie
Section titled “Stappen na installatie”1. Groepsrechten instellen
Section titled “1. Groepsrechten instellen”- Ga naar Rechten in het beheerdersmenu
- Toegang voor groepen configureren:
- Anoniem: alleen bekijken
- Geregistreerde gebruikers: artikelen indienen
- Redacteuren: artikelen goedkeuren/bewerken
- Beheerders: volledige toegang
2. Modulezichtbaarheid configureren
Section titled “2. Modulezichtbaarheid configureren”- Ga naar Blokken in het XOOPS-beheer
- Zoek Publisher-blokken:
- Uitgever - Laatste artikelen
- Uitgever - Categorieën
- Uitgever - Archief
- Configureer de blokzichtbaarheid per pagina
3. Testinhoud importeren (optioneel)
Section titled “3. Testinhoud importeren (optioneel)”Importeer voorbeeldartikelen om te testen:
- Ga naar Uitgeversbeheerder → Importeren
- Selecteer Voorbeeldinhoud
- Klik op Importeren
4. Schakel SEO URL’s in (optioneel)
Section titled “4. Schakel SEO URL’s in (optioneel)”Voor zoekvriendelijke URL’s:
- Ga naar Voorkeuren
- SEO URL’s instellen: Ja
- Schakel het herschrijven van .htaccess in
- Controleer of het
.htaccess-bestand aanwezig is in de Publisher-map
# .htaccess example<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /modules/publisher/ RewriteRule ^category/([0-9]+)-(.*)\.html$ index.php?op=showcategory&categoryid=$1 [L] RewriteRule ^article/([0-9]+)-(.*)\.html$ index.php?op=showitem&itemid=$1 [L]</IfModule>Problemen met installatie oplossen
Section titled “Problemen met installatie oplossen”Probleem: Module verschijnt niet in admin
Section titled “Probleem: Module verschijnt niet in admin”Oplossing:
# Check file permissionsls -la /path/to/xoops/modules/publisher/
# Check xoops_version.php existsls /path/to/xoops/modules/publisher/xoops_version.php
# Verify PHP syntaxphp -l /path/to/xoops/modules/publisher/xoops_version.phpProbleem: Databasetabellen zijn niet gemaaktOplossing:
Section titled “Probleem: Databasetabellen zijn niet gemaaktOplossing:”- Controleer of de MySQL-gebruiker het recht CREATE TABLE heeft
- Controleer het databasefoutenlogboek:
mysql> SHOW WARNINGS;- SQL handmatig importeren:
mysql -u user -p database < modules/publisher/sql/mysql.sqlProbleem: Bestandsupload mislukt
Section titled “Probleem: Bestandsupload mislukt”Oplossing:
# Check directory exists and is writablestat /path/to/xoops/uploads/publisher/
# Fix permissionschmod 777 /path/to/xoops/uploads/publisher/
# Verify PHP settingsphp -i | grep upload_max_filesizeProbleem: “Pagina niet gevonden”-foutmeldingen
Section titled “Probleem: “Pagina niet gevonden”-foutmeldingen”Oplossing:
- Controleer of het
.htaccess-bestand aanwezig is - Controleer of Apache
mod_rewriteis ingeschakeld:
a2enmod rewrite systemctl restart apache2- Controleer
AllowOverride Allin Apache-configuratie
Upgrade van eerdere versies
Section titled “Upgrade van eerdere versies”Van uitgever 1.x naar 2.x
Section titled “Van uitgever 1.x naar 2.x”- Back-up huidige installatie:
cp -r modules/publisher/ modules/publisher-backup/ mysqldump -u user -p database > publisher-backup.sql-
Uitgever 2.x downloaden
-
Bestanden overschrijven:
rm -rf modules/publisher/ unzip publisher-2.0.zip -d modules/-
Update uitvoeren:
- Ga naar Beheer → Uitgever → Update
- Klik op Database bijwerken
- Wacht op voltooiing
-
Verifiëren:
- Controleer of alle artikelen correct worden weergegeven
- Controleer of de machtigingen intact zijn
- Test bestandsuploads
Beveiligingsoverwegingen
Section titled “Beveiligingsoverwegingen”Bestandsrechten
Section titled “Bestandsrechten”- Core files: 644 (readable by web server)- Directories: 755 (browseable by web server)- Upload directories: 755 or 777- Config files: 600 (not readable by web)Schakel directe toegang tot gevoelige bestanden uit
Section titled “Schakel directe toegang tot gevoelige bestanden uit”Maak .htaccess aan in uploadmappen:
<FilesMatch "\.(php|phtml|php3|php4|php5|phtml)$"> Deny from all</FilesMatch>Databasebeveiliging
Section titled “Databasebeveiliging”# Use strong passwordALTER USER 'publisher_user'@'localhost' IDENTIFIED BY 'strong_password_here';
# Grant minimal permissionsGRANT SELECT, INSERT, UPDATE, DELETE ON publisher_db.* TO 'publisher_user'@'localhost';FLUSH PRIVILEGES;Verificatiechecklist
Section titled “Verificatiechecklist”Controleer na de installatie:
- Module verschijnt in de lijst met beheerdersmodules
- Heeft toegang tot het uitgeversbeheergedeelte
- Kan categorieën maken
- Kan artikelen maken
- Artikelen worden weergegeven op de front-end
- Bestandsuploads werken
- Afbeeldingen worden correct weergegeven
- Machtigingen worden correct toegepast
- Databasetabellen gemaakt
- Cachemap is beschrijfbaar
Volgende stappen
Section titled “Volgende stappen”Na succesvolle installatie:
- Lees de Basisconfiguratiehandleiding
- Maak uw eerste artikel
- Stel groepsmachtigingen in
- Bekijk Categoriebeheer
Ondersteuning en bronnen
Section titled “Ondersteuning en bronnen”- GitHub-problemen: Uitgeverproblemen
- XOOPS Forum: Community-ondersteuning
- GitHub Wiki: Hulp bij installatie
#publisher #installatie #setup #xoops #module #configuratie