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 ?
Below is a very simple trick to delete all .listing files from directories and their subdirectories. użyjemy…
The guide below shows how to check the temperature in the Raspberry Pi in just a few seconds. Polecenie…
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…
The following method describes a very simple way to check the operation of the CPU frequency of our Raspberry PI. Całość…
Recursive change of file permissions Go to the directory for which we want to change permissions (np public_html)…
"M OS" został zbudowany na bazie Linuksa i ma znaleźć zastosowanie głównie w sektorze edukacyjnym.…