Manage cookies that are used for advertising, such as ad personalization, remarketing, and ad effectiveness analysis.
2.8.4.2.1. Install Laravel
- Connect to the hosting via SSH.
- Install Laravel using one of the following methods:
- Download the installer:
composer global require laravel/installer - Set the path to the Laravel executable file so that it can be run from any directory in the file system:
export PATH="$PATH:~/.config/composer/vendor/bin" - Go to the desired directory and create a new project:
laravel new project_name
Execute the command:composer create-project laravel/laravel ~/path/to/project/directory - Project files are usually located in the
publicdirectory, so change the site's root directory in one of the following ways:Change the site root directory so that it points to thepublicdirectory.Add two files .htaccess:- In the site's root directory:
<IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^$ public/ [L] RewriteRule ((?s).*) public/$1 [L] </IfModule> - In the
publicdirectory:<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^((?s).*)$ index.php?_url=/$1 [QSA,L] </IfModule>
(7)
Comments