Kategorie: DirectAdmin

Laravel installation on servers with the panel DirectAdmin

In internetach hard to find and more recently the need arose installation laravel below a very simple way to install on our servers with the panel DirectAdmin.

Update your system and install the necessary components:

yum update
yum 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 – Instalacja

Add the domain panel DirectAdmin and log on ssh and delete everything in public_html or all default files DA.

Example domain domena.pl

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

then go to this directory:

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

laravel to install and use the command:

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

The next step is to give the user permissions

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

We have to edit the default root directory of the web server and change it to public_html to the public in accordance with the requirements of laravel.

We can log in and go to administrator-level tab:
HTTPD own configurations and choose our domain.

Set docroot pasting the path to our public directory

|?DOCROOT=/home/admin/domains/domena.pl/public_html/public| 

We write down and that's it 🙂

Linux

Udostępnij
Opublikowane przez
Linux

Recent posts

KeePass2 2.52 w Ubuntu 22.04

The guide below describes how to install KeePass on Ubuntu. Całość wykonamy za pomocą kilku poleceń

2 years temu

Installing Master PDF editor in Ubuntu 22.04

Master PDF Editor is a comprehensive PDF program, which includes many features. Oprócz tworzenia i edycji

2 years temu

iotop - memory monitoring

Iotop jest prostym narzędziem dla systemów Uniksowych umożliwiającym monitorowanie użycia dowolnego nośnika pamięci flash/hdd/ssd w

2 years temu

Run multiple commands in one cron job

You can separate two or more commands with semicolons (;), Semicolon (;): służy do oddzielania

2 years temu

Changing the exif data of a photo in the Linux terminal

Poniższy poradnik opisuje w jaki sposób za pomocą konsoli możemy dokonać edycji danych zdjęcia exif.

2 years temu

Installing Rocket.Chat Server on Rocky Linux 8

The following guide describes how to install Rocket.Chat on Rocky Linux 8 Całość bardzo prosto zainstalujemy

2 years temu