Configuration
Environment Setup
Really easy steps
Environment Configuration
1. Copy Configuration File
First, copy the example configuration file:
cp .env.example .env
2. Configure Environment Variables
Open the .env
file in your preferred text editor and update the database configuration:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=DezerX
DB_USERNAME=root
DB_PASSWORD=your_password_here
3. Install Dependencies
Install Composer packages (for PHP dependencies):
composer install --no-dev --optimize-autoloader
Install Node.js packages:
npm install
Build the frontend assets:
npm run build
4. Generate Application Key
Generate a random encryption key for your project. Keep this key secure - it's used to encrypt sensitive data:
php artisan key:generate --force
5. Database Migration
Set up the database tables and seed initial data. Do not exit this process until it completes:
php artisan migrate --seed --force
6. Assign File Permissions
Grant the webserver access to the panel files:
# If using NGINX or Apache (not on CentOS):
chown -R www-data:www-data /var/www/dezerx/*
# If using NGINX on CentOS:
chown -R nginx:nginx /var/www/dezerx/*
# If using Apache on CentOS:
chown -R apache:apache /var/www/dezerx/*