Requirements
Before installing LaraCMS, ensure your server meets these requirements:- PHP 8.4 or higher
- Composer - Dependency management for PHP
- Node.js & NPM - For frontend asset compilation
- Database - SQLite, MySQL, PostgreSQL, or SQL Server
Installation steps
Install dependencies
Install both PHP and JavaScript dependencies:This will install all required packages including:
- Laravel framework and core packages
- Livewire and Flux UI components
- Spatie packages for permissions and media
- Development tools and testing frameworks
Configure environment
Copy the example environment file and generate your application key:The
.env file contains all your application configuration. See the Configuration guide for detailed settings.Set up the database
LaraCMS supports multiple database systems. Choose the one that fits your needs:
- SQLite (Default)
- MySQL
- PostgreSQL
SQLite is the default database for quick setup:Your
.env file should have:.env
SQLite is perfect for development and small deployments. No additional database server required!
Run migrations
Create the database tables and structure:This creates all necessary tables for:
- User authentication and profiles
- Roles and permissions
- Blog posts, categories, and tags
- Gallery albums and photos
- Media library
Link storage
Create a symbolic link for public file access:This allows uploaded media files to be accessible from the web.
Start the development server
You can now start the application using the built-in development command:This single command starts:
- PHP development server on http://localhost:8000
- Queue worker for background jobs
- Vite dev server for hot module replacement
Verify installation
Once the development server is running, visit http://localhost:8000 in your browser. You should see the LaraCMS homepage.Installation successful! You can now proceed to First steps to create your admin account and configure your site.
Production deployment
For production environments, follow these additional steps:Troubleshooting
Permission errors
Permission errors
If you encounter permission errors, ensure the web server has write access to storage directories:
Database connection failed
Database connection failed
- Verify your database credentials in
.env - Ensure the database server is running
- For SQLite, check that the database file exists and is writable
Composer dependencies conflict
Composer dependencies conflict
If you encounter dependency conflicts:Or update to the latest compatible versions:
NPM installation issues
NPM installation issues
Clear npm cache and reinstall:
Next steps
Configuration
Configure environment variables and application settings
First steps
Create your admin account and start using LaraCMS