📦 Installation Guide

Complete step-by-step guide to installing Xiuno BBS 4.0.4 on your server.

System Requirements

Server Requirements

Required PHP Extensions

💡 Tip: Xiuno BBS 4.0.4 is optimized for PHP 8.x and uses utf8mb4 encoding for full Unicode support.

Installation Methods

Method 1: Fresh Installation

Step 1: Upload Files

Upload all Xiuno BBS files to your web server's public directory:

# Via FTP/SFTP
Upload to: /public_html/ or /var/www/html/

# Via SSH
cd /home/yourusername/
wget https://xiuno.wiki/downloads/releases/xiuno-bbs-4.0.4.zip
unzip xiuno-bbs-4.0.4.zip
mv xiuno-bbs-4.0.4/* public_html/

Step 2: Set Permissions

Set proper file permissions for security:

chmod 755 /home/yourusername/public_html
chmod 644 /home/yourusername/public_html/*.php
chmod 755 /home/yourusername/public_html/upload
chmod 755 /home/yourusername/public_html/tmp
chmod 755 /home/yourusername/public_html/log
chmod 600 /home/yourusername/public_html/conf/conf.php
⚠️ Security: Never set 777 permissions. Use 755 for directories and 644 for files.

Step 3: Create Database

Create a MySQL database and user:

mysql -u root -p

CREATE DATABASE xiuno CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'xiuno'@'localhost' IDENTIFIED BY 'your_strong_password';
GRANT ALL PRIVILEGES ON xiuno.* TO 'xiuno'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Step 4: Configure Database

Edit conf/conf.php with your database credentials:

<?php
return array(
    // Database Configuration
    'db' => array(
        'type' => 'mysql',
        'host' => '127.0.0.1',
        'port' => 3306,
        'name' => 'xiuno',
        'user' => 'xiuno',
        'pass' => 'your_strong_password',
        'charset' => 'utf8mb4',
        'engine' => 'MyISAM',
        'prefix' => 'bbs_',
    ),
    
    // Site Information
    'sitename' => 'Xiuno Wiki',
    'sitebrief' => 'Documentation, Downloads & Community',
    'siteurl' => 'https://xiuno.wiki',
    
    // Other Settings
    'lang' => 'en-us',
    'timezone' => 'America/New_York',
);

Step 5: Run Installer

The platform will auto-initialize on first access. Simply visit:

https://yourdomain.com/
✅ Success: If configured correctly, Xiuno will automatically create all database tables and you'll see the forum homepage.

Post-Installation Setup

1. Access Admin Panel

Login to the admin panel to complete setup:

URL: https://yourdomain.com/admin/
Default Username: admin
Default Password: (set during database creation)

2. Configure .htaccess (Apache)

For SEO-friendly URLs, ensure .htaccess is properly configured:

RewriteEngine On
RewriteBase /

# Prevent access to sensitive directories
RewriteRule ^conf/ - [F,L]
RewriteRule ^tmp/ - [F,L]
RewriteRule ^log/ - [F,L]

# Main rewrite
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

3. Nginx Configuration

For Nginx servers, add this to your site config:

server {
    listen 80;
    server_name yourdomain.com;
    root /home/yourusername/public_html;
    index index.php index.html;

    # Deny access to sensitive directories
    location ~ ^/(conf|tmp|log|tool)/ {
        deny all;
    }

    # PHP processing
    location ~ \.php$ {
        fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
        fastcgi_index index.php;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }

    # Pretty URLs
    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }
}

4. SSL/HTTPS Setup

Secure your site with Let's Encrypt (recommended):

# Install Certbot
sudo apt install certbot python3-certbot-apache

# Get SSL certificate
sudo certbot --apache -d yourdomain.com -d www.yourdomain.com

# Auto-renewal
sudo certbot renew --dry-run

Verification Checklist

Common Installation Issues

Database Connection Failed

White Page / 500 Error

Upload Directory Not Writable

chmod 755 upload/
chown www-data:www-data upload/

Next Steps

After successful installation:

  1. Configure your site settings
  2. Learn admin panel features
  3. Create forum categories and boards
  4. Customize your theme
  5. Install plugins
Need Help? Visit our community forum for support and questions.