Skip to content

Installation

StefansArya edited this page Nov 12, 2020 · 4 revisions

To install the framework please follow this instruction.


Update your hosts file and add one host that target the 127.0.0.1. On windows C:\windows\system32\drivers\etc\hosts, on Linux /etc/hosts.

127.0.0.1 my.project.sandbox

Apache

When using Apache you should add a new Virtual Host. Laragon: C:/laragon/etc/apache2/sites-enabled/_.conf XAMPP: C:/xampp/apache/conf/extra/httpd-vhosts.conf

<VirtualHost *:80>
    DocumentRoot "D:/YourProjectFolder/public"
    ServerName my.project.sandbox
    <Directory "D:/YourProjectFolder/public">
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

Then restart your Apache

Nginx

Add new file into /etc/nginx/sites-available/.

$ sudo nano /etc/nginx/sites-available/myproject.conf

Fill that file with this server block (and modify it).

server {
  listen 80;

  server_name my.project.sandbox;
  root /YourProjectFolder/public;

  index index.php;

  location /assets {
    expires 30d;
    access_log off;
    log_not_found off;
    add_header Pragma public;
    add_header Cache-Control "public";
  }

  location / {
    fastcgi_pass    unix:/var/run/php/php7.4-fpm.sock;
    include         fastcgi_params;
    fastcgi_param   SCRIPT_FILENAME    $document_root/index.php;
  }
}

Then restart your Nginx

Clone this wiki locally