PHP Classes
elePHPant
Icontem

Laravel Nginx Configuration: Create a Virtualhost in nginx for a Laravel site

Recommend this page to a friend!

  Author Author  
Name: Ankit Jain <contact>
Classes: 4 packages by
Country: India India
Innovation award
Innovation award
Nominee: 1x


  Detailed description   Download Download .zip .tar.gz  
This package can create a Virtualhost in nginx for a Laravel site.

It provides a PHP script that should be run from the command line shell to take a parameter of a given domain name.

The package calls a shell script to actually generate values for a Nginx Web server to make it ready to handle requests for the given domain with the current Laravel application being configured to run under that domain.

Larahost is the extended plugin written over the laravel/installer plugin to set up the nginx virtualhost for the application automatically while installing.

Details

Larahost

Build Status Latest Stable Version Packagist

Larahost is the extended plugin written over the laravel/installer plugin to set up the nginx virtualhost for the application automatically while installing.

Installation

It requires nginx to be installed in the system.

  1. First, download the Larahost installer using Composer:

    `shell composer global require ankitjain28may/larahost `

  2. Download the nginx configuration and put it in the nginx virtualhosts folder according to OS. Make necessary changes in the file related to port and PHP FastCGI configuration.

    For example- It is /usr/local/etc/nginx/servers/ for Mac.

    `shell cd /usr/local/etc/nginx/servers/ curl https://raw.githubusercontent.com/ankitjain28may/larahost/master/nginx_conf/example.conf -O `

  3. Export these variables in $PATH.

    `shell export NGINX_EXAMPLE_FILE='/usr/local/etc/nginx/servers/example.conf' export NGINX_DEST='/usr/local/etc/nginx/servers/' `

  4. Once everything is setup, the larahost new command will create a fresh Laravel installation in the directory you specify.

    `shell larahost new blog `

    ## Contribute

>Feel free to contribute

License

>Copyright (c) 2019 Ankit Jain - Released under the MIT License


  Classes of Ankit Jain  >  Laravel Nginx Configuration  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  

 

Name: Laravel Nginx Configuration
Base name: larahost
Description: Create a Virtualhost in nginx for a Laravel site
Version: -
PHP version: 5.5
License: MIT/X Consortium License
 
  Groups   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Systems administration System configuration and management View top rated classes
Group folder image Libraries Frameworks and libraries of cooperating classes View top rated classes
Group folder image Console Command line and console utilities View top rated classes
Group folder image Project Management Tools to assist project management View top rated classes
Group folder image Configuration Configuration formats parsing and generation View top rated classes


  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Files folder image Files  
File Role Description
Files folder imagenginx_conf (1 file)
Files folder imagesrc (1 file)
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file larahost Example Example script
Accessible without login Plain text file LICENSE.md Lic. License text
Accessible without login Plain text file nginx.sh Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  nginx_conf  
File Role Description
  Accessible without login Plain text file example.conf Data Auxiliary data

  Files folder image Files  /  src  
File Role Description
  Plain text file LarahostCommand.php Class Class source

Download Download all files: larahost.tar.gz larahost.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.