Skip to content

Installation

Prepare files and server

Download the script, upload the files to the server and extract the files

INFO

Please verify that you can see the hidden files such as the .env file and that this file exists, otherwise it may cause problems for the installer.

How to see hidden files

cPanel

  • Login to cPanel as the cPanel user.
  • Click on the "File Manager" icon.
  • Click on the "Settings" button in the upper right corner.
  • Check the "Show Hidden Files (dotfiles)" checkbox.
  • Click the "Save" button.

Plesk

  1. Click on Settings in the top right.
  2. Check that Show system files and directories is ticked and click Save.

MacOS

  • Click the Finder icon in your dock to open Finder.
  • Open Mac Finder to start revealing hidden files on your Mac.
  • Navigate to the folder where you want to find hidden files.
  • Press Command + Shift + . (the period key). This will show hidden files in the folder.
  • To hide the files again, press Command + Shift + . again.

Windows 11

  • Open File Explorer from the taskbar.
  • Select View > Show > Hidden items.

Windows 10

  • Open File Explorer from the taskbar.
  • Select View > Options > Change folder and search options.
  • Select the View tab and, in Advanced settings, select Show hidden files, folders, and drives and OK.

Ubuntu

  • Go to that folder and either press the menu button in the top-right corner of the window and select Show Hidden Files, or press Ctrl+H.
├─ app
├─ bootstrap
├─ config
├─ database
├─ lang
├─ node_modules
├─ public
├─ resources
├─ routes
├─ storage
├─ tests
├─ vendor
├─ artisan
├─ .editorconfig
├─ .env                     # config file
├─ .env.example
├─ .eslintignore
├─ .eslintrc
├─ .gitattributes
├─ .gitignore
├─ .prettierignore
├─ .prettierrc
├─ composer.lock
├─ phpunit.xml
├─ postcss.config.js
├─ tailwind.config.js
├─ composer.json
├─ package-lock.json
├─ package.json
├─ tsconfig.json
└─ vite.config.ts

Configure the server so that the startup folder is /public

The Public Directory

The public directory contains the index.php file, which is the entry point for all requests entering your application and configures autoloading. This directory also houses your assets such as images, JavaScript, and CSS.

https://laravel.com/docs/10.x/structure#the-public-directory

How to configure in cPanel
  • Open the file manager

Step 1

  • Delete public_html folder

Step 2

  • Open the file manager uploads page

Step 3

  • Select the script zip files

Step 4

  • Extract files to the root

Step 5Step 6

  • Verify that the files have been extracted correctly

Step 7

  • Open the terminal

Step 8

  • Create a symbolic link between the public folder inside the script folder and the public_html folder
sh
ln -s ./script/public/ ./public_html

Step 9

How to configure in Plesk
  • Open the file manager

Step 1

  • Click on the "+" and on "Upload file" to select and upload the script zip files

Step 2

  • Extract files to the root

Step 3Step 4

  • Open the hosting settings editor

Step 5

  • Set the "Document root" with the public folder of the extracted files.

Step 6

How to configure in localhost

You can follow the laravel documentation.

https://laravel.com/docs/10.x/installation#laravel-and-docker

INFO

If you have problems or if you prefer, we can install the script on your servers or wherever you want, contact us.

Configuration

Wizard

Some applications have an installation wizard, which allows you to apply all the settings and perform all the actions from the browser.

Installation

Installation wizard guide
  • To access the installation wizard, simply access the application through the browser.

Steep 1

  • The server is verified to meet the system requirements.

Steep 2

  • It is also verified that the folders have read and write access.

Steep 3

  • The access data to the database will be requested to verify the connection and perform the migration of the tables.

Steep 4

  • The connection to the database will be checked.

Steep 5

  • The database tables and all the necessary application data will be created.

Steep 6

  • The application has been installed correctly, you can access it with the default user data.

Steep 7

Manual

Whenever available, it is recommended to install from the installation wizard. If the installation wizard has problems, you can try to install from the terminal.

TIP

To perform the manual installation, you need access to the server by SSH.

In Windows, we recommend using the Putty client: https://www.putty.org/

Manual installation guide
  • Install composer dependencies
sh
composer install --optimize-autoloader --no-dev
  • Copy the .env.example file to .env
sh
cp .env.example .env
  • Generate application key
sh
php artisan key:generate
  • Configure the app base url in the .env file
APP_URL=https://example.com     # App base url
  • Configure the database connection details in the .env file
DB_HOST=127.0.0.1               # Database host
DB_PORT=3306                    # Database port
DB_DATABASE=laralink            # Database name
DB_USERNAME=root                # Database user
DB_PASSWORD=********            # Database user password
  • Run database migrations
sh
php artisan migrate --force
  • Create default users
sh
php artisan install:users

Access admin dashboard

Edit the default user to avoid unwanted access.

Default user

Email: admin@example.com

Password: password

WARNING

The installation script generates a default user that is recommended to change the email and password from "My profile" or Users manager page in admin dashboard.