Getting Started with FearlessCMS
Welcome to FearlessCMS! This guide will walk you through the installation and initial setup process to get your CMS up and running.
📋 Table of Contents
- System Requirements
- Installation Methods
- Initial Setup
- First Steps
- Configuration
- Troubleshooting
- PHP Version: 7.4 or higher (8.0+ recommended)
- Required Extensions: -
- Web Server: Apache, Nginx, or any PHP-compatible server
- File Permissions: Write access to project directory
- Memory: Minimum 128MB RAM (256MB+ recommended)
- Disk Space: At least 100MB free space
- Node.js & npm: Required for export functionality
- MySQL/MariaDB: For database plugins (optional)
- Download and Extract
🖥️ System Requirements
PHP Requirements
curl
- HTTP requests and API calls
- json
- JSON data processing
- mbstring
- Multibyte string handling
- phar
- PHAR archive support
- zip
- ZIP file handling
- openssl
- Encryption and SSL supportServer Requirements
Optional Dependencies
🚀 Installation Methods
Method 1: Automated Installer (Recommended)
The easiest way to install FearlessCMS is using the built-in installer:
bash
# Download FearlessCMS
wget https://github.com/your-repo/FearlessCMS/archive/main.zip
unzip main.zip
cd FearlessCMS-main
bash
# Web-based installation
# Navigate to install.php in your browser
http://your-domain.com/install.php
# Or use command-line installation
php install.php --check
php install.php --create-dirs
php install.php --install-export-deps
php install.php --create-admin=admin --password=yourpassword
Method 2: Manual Installation
For advanced users who prefer manual setup:
bash
mkdir -p config admin/uploads uploads content sessions cache backups .fcms_updates
bash
chmod 755 config admin/uploads uploads content sessions cache backups .fcms_updates
bash
# Copy and modify example configuration files
cp config.example/ config/
⚙️ Initial Setup
1. Directory Creation
The installer will create these essential directories:
FearlessCMS/
├── config/ # Configuration files
├── admin/uploads/ # Admin file uploads
├── uploads/ # Public file uploads
├── content/ # Content files
├── sessions/ # Session storage
├── cache/ # Cache files
├── backups/ # Backup storage
└── .fcms_updates/ # Update files
2. Configuration Files
Essential configuration files are created:config/config.json
- Site configurationconfig/users.json
- User accountsconfig/cms_mode.json
- CMS operational modeconfig/theme_options.json
- Theme settings3. Administrator Account
Create your first admin account:bash
php install.php --create-admin=admin --password=securepassword123
Security Note: Use a strong, unique password!
🎯 First Steps
1. Access Your Site
/admin
and log in2. Choose CMS Mode
Select your operational mode in the admin panel:3. Select a Theme
Choose from available themes or create your own:4. Create Your First Content
🔧 Configuration
Site Configuration
Editconfig/config.json
:json
{
"site_name": "My Awesome Site",
"site_description": "A great website built with FearlessCMS",
"admin_path": "admin",
"default_theme": "default"
}
CMS Mode Configuration
Editconfig/cms_mode.json
:json
{
"mode": "full-featured"
}
Available Modes:
full-featured
- Complete accesshosting-service-plugins
- Plugin management onlyhosting-service-no-plugins
- No plugin managementTheme Options
Customize your theme inconfig/theme_options.json
:json
{
"logo": "/uploads/logo.png",
"hero_banner": "/uploads/hero.jpg",
"accent_color": "#007bff",
"show_sidebar": true
}
🎨 Ad Area System
Automatic Integration
The Ad Area System automatically integrates with all themes:Customization
Editthemes/ad-area.html
to customize:Testing
Test the ad area system:🔧 Troubleshooting
Common Installation Issues
#### Permission Errors
bash
Check directory permissions
ls -la config/
ls -la uploads/Fix permissions
chmod 755 config uploads
chown www-data:www-data config uploads
#### PHP Extension Issues
bash
Check loaded extensions
php -m | grep -E "(curl|json|mbstring|phar|zip|openssl)"Install missing extensions (Ubuntu/Debian)
sudo apt install php-curl php-json php-mbstring php-phar php-zip php-openssl
#### Node.js Dependencies
bash
Check Node.js installation
node --version
npm --versionInstall if missing
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejs
Getting Help
php install.php --check
🛡️ Security Best Practices
After Installation
rm install.php
chmod 644 config/.json
Production Deployment
FCMS_CONFIG_DIR
for external config📚 Next Steps
Learn More
Available Plugins
FearlessCMS comes with several built-in plugins to enhance your website:Advanced Configuration
🆘 Support
If you need help getting started:
---
Welcome to FearlessCMS! 🚀
This documentation is maintained by the FearlessCMS community. Last updated: January 2024