1.7. CMS Setup ‐ Windows - Orion-Server/cms GitHub Wiki
OrionCMS - Installation OrionCMS (Windows)
Requirements:
- PHP 8 or greater - Download website
- MariaDB 10.x - Download website
- Composer - Download website
- NPM (LTS) - Download website
- Database Arcturus and Emulator - Download website
Setup Windows
1. Clone the repository with the command below:
git clone https://github.com/nicollassilva/orioncms.git
(If you are using IIS, clone inside the C:/inetpub/wwwroot folder)
2. Copy and paste the .env.example file and rename it to .env
- Configure the data in the file:
APP_NAME="YourHotelName"
APP_URL=YourHotelDomain
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=YourDatabase
DB_USERNAME=YourUsername
DB_PASSWORD="YourPassword"
3. Access the CMS directory through the terminal with "cd path"
Example:
cd C:/inetpub/wwwroot/orioncms
4. In the terminal, run the following commands: (one by one)
composer install
yarn install
yarn build
php artisan key:generate
php artisan migrate --seed
5. If you are in production, don't forget to modify the .env file
APP_ENV=production
APP_DEBUG=false
If your hotel is on a domain (outside your local computer):
FORCE_HTTPS=true
APP_URL=https://...
6. Permissions
- IIS
If you are using IIS, don't forget to enable full control permissions for users IUSR and IIS_IUSRS on the CMS folder under inetpub > wwwroot.
How do I do it?
Just right-click on the folder, choose properties, and go to the advanced tab. This way you can include the users necessary for it to work.