Installation
Server Requirements
- PHP >= 8.1
- 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.
It 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
$ 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
Configure Database
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=elmapicms
DB_USERNAME=user
DB_PASSWORD=pass
Set max file size for the media library
MAX_FILE_SIZE=8M
Database
Import sql file
Import the elmapi.sql file into your database.
OR
If you have access to ssh, run this command on terminal from the application directory.
$ php artisan migrate --seed
Login to Application
After the installation you can login to application with your newly created super admin account.
E-mail : admin@admin.com
Password: admin
You should change this account e-mail and password after logged in.
Creating A Super Admin
If you need another super admin account you can create a new one using terminal
php artisan elmapi:create_super name email password