Cpanel Installation
- After upload the zip file to cpanel extract it. Point your domain document root to
application_root_directory/public
directory. If you are setup application for your default/main domain then you have to add a extra.httaccess
file to re-direct webserver topublic
directory. example.httaccess
<IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_URI} !^public RewriteRule ^(.*)$ public/$1 [L] </IfModule>
If you get fresh database file
cloudschool-v3.0.0-fresh.sql
then create database and import that file. If you don't get sql file then generate one from laravel migration in you local development environment. Export that database schema and import it to your cpanel database.Now edit
.env
file for your neccessary changes and save it.- Give webserver user write permission to
storage
directory - Visit your domain and you will see a login or website home page. If you don't see the page then check your webserver error log.
Or set
app_debug
value totrue
in.env
file to debug the error. - In the bottom of
.env
file have a settings about development.DEVELOPER_MODE_ENABLED
set this setting totrue
and save the file - For image load perfectlly we need to link
storage/app/public
directory topublic/storage
now visityour_domain/make-link/007
url in your browser. This will link the directory. - Application need some database triggers. To create those triggers under the database username that you set up in
.env
file, you need to visityour_domain/create-triggers/007
url in your browser. - Finally you need to clear the application cache. for this visit
your_domain/cache-clear/007
url in your browser. - Now in the bottom of
.env
file setDEVELOPER_MODE_ENABLED
tofalse
and save the file