|Ratings|| ||Unique User Downloads|| ||Download Rankings|
|Not yet rated by the users||Total: 44 ||All time: 10,510 This week: 185|
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.
|Many PHP applications are based on the Laravel framework use the Nginx framework.
This package makes it easier to configure a virtual host for a domain to run a Laravel based application by generating configuration files for the Nginx Web server.
Larahost is the extended plugin written over the
laravel/installer plugin to set up the nginx virtualhost for the application automatically while installing.
It requires nginx to be installed in the system.
First, download the Larahost installer using Composer:
composer global require ankitjain28may/larahost
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.
curl https://raw.githubusercontent.com/ankitjain28may/larahost/master/nginx_conf/example.conf -O
Export these variables in $PATH.
Once everything is setup, the `larahost` new command will create a fresh Laravel installation in the directory you specify.
larahost new blog
>Feel free to contribute
>Copyright (c) 2019 Ankit Jain - Released under the MIT License
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.