Install on server

Requirements

This method requires you to use shared hosting that supports:

  1. Access Terminal in CPanel

  2. Support symlink command

If you don’t have access to a terminal in CPanel, skip this and move on to the Install on server (alternative).

Setup Database

  1. Go to MySQL Databases

    mysql cpanel
  2. Create a new database

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

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-v3.1.0.zip outside the public_html folder

    put app
  3. Extract app-v3.1.0.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

Public Laramagz to the root folder

  1. Go to CPanel Terminal

    terminal cpanel
  2. Follow the following command:

terminal symlink
  • Type pwd to display the current directory path

  • Create a symbolic link, adjust it to the path and root folder of your website.

ln -s /home/retenvi/laramagz/public /home/retenvi/public_html

For subdomains, include the subdomain folder name

ln -s /home/retenvi/laramagz/public /home/retenvi/public_html/laramagz
  • Enter laramagz folder: cd laramagz

  • Type: php artisan storage:link

storage link

If an error like the following appears:

error
  • Exit laramgz folder: cd ..

  • Type:

ls -s /home/retenvi/laramagz/storage/app/public /home/retenvi/laramagz/public/storage
solution error

Insert table into database

Open terminal, go to laramagz folder, type:

php artisan migrate --seed