-
-
Save reactmore/b04815b72159eb6f9792ee5c71cd38c5 to your computer and use it in GitHub Desktop.
Install Website CI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Instalations | |
> Download and Upload thid Repositories on Server | |
. | |
├── ... | |
├── home | |
| ├── oxyente | |
| │ ├── core_website # Codeigniter Files | |
│ │ │ ├── app | |
│ │ │ ├── public # All assets website on this folder | |
│ │ │ ├── system | |
│ │ │ ├── vendor | |
│ │ │ ├── writable | |
│ │ │ ├── etc | |
│ │ ├── public_html # # Symlink all folder and file from core website folder public to this public_html | |
│ └── ... | |
└── ... | |
> SYMLINK CODE (LINUX) | |
Symlink Public Folder to public_html CPANEL | |
``` | |
ln -s /home/username-cpanel/core_website/public/* /home/username-cpanel/public_html | |
``` | |
> Open Terminal | |
``` | |
cd root project | |
composer install | |
``` | |
> Create File .env on Root Project | |
``` | |
#-------------------------------------------------------------------- | |
# Example Environment Configuration file | |
# | |
# This file can be used as a starting point for your own | |
# custom .env files, and contains most of the possible settings | |
# available in a default install. | |
# | |
# By default, all of the settings are commented out. If you want | |
# to override the setting, you must un-comment it by removing the '#' | |
# at the beginning of the line. | |
#-------------------------------------------------------------------- | |
#-------------------------------------------------------------------- | |
# ENVIRONMENT | |
#-------------------------------------------------------------------- | |
CI_ENVIRONMENT = development | |
#-------------------------------------------------------------------- | |
# APP | |
#-------------------------------------------------------------------- | |
app.baseURL = 'https://admin-reactmore.test/' | |
#-------------------------------------------------------------------- | |
# DATABASE | |
#-------------------------------------------------------------------- | |
database.default.hostname = localhost | |
database.default.database = core_manager | |
database.default.username = root | |
database.default.password = | |
database.default.DBDriver = MySQLi | |
database.default.DBPrefix = | |
database.default.port = 3306 | |
#-------------------------------------------------------------------- | |
# COOKIE | |
#-------------------------------------------------------------------- | |
cookie.prefix = 'vr' | |
#-------------------------------------------------------------------- | |
# SECURITY | |
#-------------------------------------------------------------------- | |
security.csrfProtection = 'cookie' | |
security.tokenRandomize = false | |
security.tokenName = 'app_csrf_token' | |
security.headerName = 'X-CSRF-TOKEN' | |
security.cookieName = 'app_csrf_cookie' | |
security.expires = 7200 | |
security.regenerate = true | |
security.redirect = false | |
security.samesite = 'Lax' | |
#-------------------------------------------------------------------- | |
# SESSION | |
#-------------------------------------------------------------------- | |
session.driver = 'CodeIgniter\Session\Handlers\DatabaseHandler' | |
session.cookieName = 'ci_session' | |
session.expiration = 259200 | |
session.savePath = ci_sessions | |
session.matchIP = false | |
session.timeToUpdate = 300 | |
session.regenerateDestroy = false | |
``` | |
*update 23 Febuary 2023* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment