Przejdź do głównej zawartości

FAQ instalacji

Typowe pytania i odpowiedzi dotyczące instalacji XOOPS.


A: XOOPS 2.5.x requires:

  • PHP 7.4 or higher (PHP 8.x recommended)
  • MySQL 5.7+ or MariaDB 10.3+
  • Apache with mod_rewrite or Nginx
  • At least 64MB PHP memory limit (128MB+ recommended)
graph LR
A[PHP 7.4+] --> D[XOOPS]
B[MySQL 5.7+] --> D
C[Apache/Nginx] --> D

A: Yes, XOOPS works well on most shared hosting that meets the requirements. Check that your host provides:

  • PHP with required extensions (mysqli, gd, curl, json, mbstring)
  • MySQL database access
  • File upload capability
  • .htaccess support (for Apache)

A: Required extensions:

  • mysqli - Database connectivity
  • gd - Image processing
  • json - JSON handling
  • mbstring - Multibyte string support

Recommended:

  • curl - External API calls
  • zip - Module installation
  • intl - Internationalization

A: This is usually a PHP error. Try:

  1. Enable error display temporarily:
// Add to htdocs/install/index.php at the top
error_reporting(E_ALL);
ini_set('display_errors', 1);
  1. Check PHP error log
  2. Verify PHP version compatibility
  3. Ensure all required extensions are loaded

A: Set write permissions before installation:

Okno terminala
chmod 666 mainfile.php
# After installation, secure it:
chmod 444 mainfile.php

A: Check:

  1. MySQL user has CREATE TABLE privileges:
GRANT ALL PRIVILEGES ON xoopsdb.* TO 'xoopsuser'@'localhost';
FLUSH PRIVILEGES;
  1. Database exists:
CREATE DATABASE xoopsdb CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
  1. Credentials in wizard match database settings

A: Common post-installation fixes:

  1. Remove or rename install directory:
Okno terminala
mv htdocs/install htdocs/install.bak
  1. Set proper permissions:
Okno terminala
chmod -R 755 htdocs/
chmod -R 777 xoops_data/
chmod 444 mainfile.php
  1. Clear cache:
Okno terminala
rm -rf xoops_data/caches/smarty_cache/*
rm -rf xoops_data/caches/smarty_compile/*

A: Main configuration is in mainfile.php in the XOOPS root. Key settings:

define('XOOPS_ROOT_PATH', '/path/to/htdocs');
define('XOOPS_VAR_PATH', '/path/to/xoops_data');
define('XOOPS_URL', 'https://yoursite.com');
define('XOOPS_DB_HOST', 'localhost');
define('XOOPS_DB_USER', 'username');
define('XOOPS_DB_PASS', 'password');
define('XOOPS_DB_NAME', 'database');
define('XOOPS_DB_PREFIX', 'xoops');

A: Edit mainfile.php:

define('XOOPS_URL', 'https://newdomain.com');

Then clear cache and update any hardcoded URLs in database.

A:

  1. Move files to new location
  2. Update paths in mainfile.php:
define('XOOPS_ROOT_PATH', '/new/path/to/htdocs');
define('XOOPS_VAR_PATH', '/new/path/to/xoops_data');
  1. Update database if needed
  2. Clear all caches

A:

flowchart TD
A[Backup Database] --> B[Backup Files]
B --> C[Download New Version]
C --> D[Upload Files]
D --> E[Run Upgrade Script]
E --> F[Update Modules]
F --> G[Clear Cache]
G --> H[Test Site]
  1. Backup everything (database + files)
  2. Download new XOOPS version
  3. Upload files (don’t overwrite mainfile.php)
  4. Run htdocs/upgrade/ if provided
  5. Update modules via admin panel
  6. Clear all caches
  7. Test thoroughly

A: Generally no. Upgrade sequentially through major versions to ensure database migrations run correctly. Check release notes for specific guidance.

A:

  1. Check module compatibility with new XOOPS version
  2. Update modules to latest versions
  3. Regenerate templates: Admin → System → Maintenance → Templates
  4. Clear all caches
  5. Check PHP error logs for specific errors

A: Reset via database:

-- Generate new password hash
UPDATE xoops_users
SET pass = MD5('newpassword')
WHERE uname = 'admin';

Or use the password reset feature if email is configured.

A:

  1. Enable caching in Admin → System → Preferences
  2. Optimize database:
OPTIMIZE TABLE xoops_session;
OPTIMIZE TABLE xoops_online;
  1. Check for slow queries in debug mode
  2. Enable PHP OpCache

A:

  1. Check file permissions (644 for files, 755 for directories)
  2. Verify XOOPS_URL is correct in mainfile.php
  3. Check .htaccess for rewrite conflicts
  4. Inspect browser console for 404 errors

  • Installation Guide
  • Basic Configuration
  • White Screen of Death

#xoops #faq #installation #troubleshooting