Installation
Server Requirements
- PHP >= 8.2
- MySQL >= 5.7.8
- BCMath PHP Extension
- Ctype PHP Extension
- DOM PHP Extension
- Fileinfo PHP Extension
- JSON PHP Extension
- Mbstring PHP Extension
- OpenSSL PHP Extension
- PCRE PHP Extension
- PDO PHP Extension
- Tokenizer PHP Extension
- XML PHP Extension
Unzipping Files
After downloading the application unzip all files to your root folder and move all files inside public
folder to your public_html
folder.
The directory structure should look like this:
.
..
/app
/bootstrap
/config
/database
/public_html
.....
Directory Permissions
Make sure your storage
and the bootstrap/cache
directories are writable.
You can change directory permissions via terminal
bash
$ chmod -R 777 storage/ bootstrap/cache/
Configure .env file
.env
file contains basic configuration for your application.
Change the Application URL
APP_URL=https://your-domain.com
Change the Session Domain URL
SESSION_DOMAIN=https://your-domain.com
Configure Database
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=corecmsapi
DB_USERNAME=user
DB_PASSWORD=pass
Set max file size for the media library
MAX_FILE_SIZE=8M
Database
Run Migrations
bash
$ php artisan migrate
Seed Database
bash
$ php artisan db:seed
Storage
Link Storage
bash
$ php artisan storage:link
Login to Application
After the installation you can login to application with your newly created super admin account.
email: admin@admin.com
password: password
TIP
You should change this account e-mail and password after logging in.