Install on server (alternative)

Use this method if your hosting does not support:

  1. Access the CPanel terminal.

  2. Symlink (symbolic link)

  3. php artisan storage:link command

  4. ln command

Setup Database

  1. Go to MySQL Databases

    mysql cpanel
  2. Create a new database

  3. Get the MySQL database name, username, and password

  4. Go to phpMyAdmin

    phpmyadmin
  5. Import database dblaramagz-v2.3.1.sql

    phpmyadmin db

Preparing Files

I assume your website root home directory is public_html. Otherwise, you can adjust.

  1. Go to File Manager

    filemanager cpanel
  2. Upload app-v2.3.1.zip outside the public_html folder

    put app
  3. Extract app-v2.3.1.zip so that the laramagz folder appears.

    put laramagz
  4. Open the .env file.

    edit env
  5. Edit the MySQL database name, username, and password.

    DB_DATABASE=your_database_name
    DB_USERNAME=your_username_mysql
    DB_PASSWORD=your_password_mysql
    
    FILESYSTEM_DRIVER=public_storage
    ROOT_FOLDER=/../../public_html

For subdomains, add the folder name so it looks like this: ROOT_FOLDER=/../../public_html/your-subdomain

Setting up a public folder

  1. Open Laramagz public folder

  2. Select All

    select all
  3. Move it to public_html or public_html/your-subdomain-folder

    move to
  4. Go to the public_html or public_html/your-subdomain-folder

  5. Edit index.php

    edit index

    Change:

    define('SYSTEM_PATH', '/..');

    Add laramagz after /... Be like the following:

    define('SYSTEM_PATH', '/../laramagz');
    system path

    For subdomains, just add ../ before laramagz

    define('SYSTEM_PATH', '/../../laramagz');
    subdomain

Setting up a storage folder in laramagz public

  1. Create a storage folder in public_html or for a subdomain in public_html/subdomain.

    newfolder
  2. Go to laramagz/storage/app/public

  3. Select All, except file folder

    selectall
  4. Move it to public_html/storage

    move storage

    or, public_html/your-subdomain/storage

    move storage subdomain