Installation Guide
This guide explains how to install WNCMS from scratch on your local machine or production server.
1. Prerequisites
Before proceeding, ensure your environment meets all system requirements:
- PHP ≥ 8.2
- MySQL ≥ 8.0
- Composer ≥ 2.6
- Node.js ≥ 20
- Writable directories:
storage,bootstrap/cache,public/media
2. Create a New Laravel Project
You can install WNCMS into a fresh Laravel project.
composer create-project laravel/laravel wncms-site
cd wncms-site3. Install WNCMS Core Package
Run the following Composer command to install the core system:
composer require secretwebmaster/wncms-coreThis will install all essential backend components, routes, controllers, and default views for WNCMS.
4. Publish Assets (Optional)
If you want to modify configuration or language files, publish them using:
php artisan vendor:publish --provider="Wncms\WncmsServiceProvider"You can selectively publish groups such as:
php artisan vendor:publish --tag=wncms-config
php artisan vendor:publish --tag=wncms-lang5. Set Up the Database
Edit your .env file to configure database credentials:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=wncms
DB_USERNAME=root
DB_PASSWORD=your_passwordThen run the migrations:
php artisan migrate6. Install Frontend Dependencies (Optional)
If you plan to modify frontend assets or themes:
npm install
npm run buildYou can also run:
npm run devfor live asset rebuilding during local development.
7. Launch the Installation Wizard
Once the database is ready, visit the WNCMS installation route in your browser:
http://your-domain.com/installThe installer will guide you through:
- Creating an administrator account
- Configuring website name, domain, and default language
- Completing system setup
8. Access the Backend
After installation, you can log in to the backend panel:
http://your-domain.com/backendUse the credentials created during installation.
9. Activate the Default Theme
After logging in:
- Navigate to Appearance → Themes
- Click Activate next to the desired theme
- Visit your frontend site to confirm it’s applied
10. Optional: Install Additional Packages
WNCMS supports modular Composer packages. For example:
composer require secretwebmaster/wncms-faqs
composer require secretwebmaster/wncms-ecommerceThen activate them in the backend under Packages → Installed Packages.
11. Troubleshooting
If something doesn’t work as expected:
Clear cache:
bashphp artisan optimize:clearFix file permissions:
bashchmod -R 775 storage bootstrap/cache public/mediaCheck logs:
storage/logs/laravel.log
12. Next Steps
You’re now ready to:
Welcome to WNCMS — your Laravel-powered content management platform.