Installing Laravel on servers with DirectAdmin panel

Installing Laravel on servers with DirectAdmin panel:
Below is a very simple way to install on our servers with a directadmin panel.
System update and installation of necessary components:
Almalinux

dnf update
dnf install git curl

About WordPress

apt-get update
apt-get install git curl

The next step is to download and transfer composer

curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer

Laravel – Installation

We add the domain in the directadmin panel and log in to SSH and delete everything in the public_html directory, i.e. all the default DA files.

Example for the domain domain.pl

rm -rf /home/admin/domains/domena.pl/public_html/*

then we go to this directory:

cd /home/admin/domains/domena.pl/public_html/

to install Laravel we execute the command:

composer create-project --prefer-dist laravel/laravel

The next step is to assign user permissions

chown -R admin:admin /home/admin/domains/domena.pl/public_html/

We need to edit the default root of the web server and change it from public_html to public as per Laravel requirements.

We log in to da and go to the administrator level to the tab:
Our own HTTPD configurations and we choose our domain.

We set up docroot by pasting the path to our public directory

|?DOCROOT=/home/admin/domains/domena.pl/public_html/public|
We write it down and that's it ?

About WordPress

Najnowsze wpisy

Deletes all .listing files in a given folder and subfolders

Below is a very simple trick to delete all .listing files from directories and their subdirectories. użyjemy

6 months temu

Checking the temperature of raspberry pi

The guide below shows how to check the temperature in the Raspberry Pi in just a few seconds. Polecenie

6 months temu

Full Debian Installation 12 For beginners

Today we will introduce you to the first tutorial on how to install Debian. We will show you throughout the series, w jaki sposób

11 months temu

Checking the operating frequency of the Raspberry PI CPU

The following method describes a very simple way to check the operation of the CPU frequency of our Raspberry PI. Całość

1 year temu

Recursive change of file permissions on Debian

Recursive change of file permissions Go to the directory for which we want to change permissions (np public_html)…

1 year temu

M OS is the Russian answer to Windows

"M OS" został zbudowany na bazie Linuksa i ma znaleźć zastosowanie głównie w sektorze edukacyjnym.

2 years temu