Skip to content
This repository has been archived by the owner on Jul 4, 2019. It is now read-only.

A vagrant box for setting up websites on a 32-bit virtual machine with pure nginx, PHP and MySQL.

Notifications You must be signed in to change notification settings

martonbognar/vagrant-nginx-php-mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dependencies

Installation

  1. Clone this repo to anywhere on your machine

     git clone git@github.com:martonbognar/vagrant-nginx-php-mysql.git
    
  2. Clone your repo inside this one and rename it to src, or start building your site inside a newly created src folder

     git clone your-git-url-here.git src
    
  3. By default, the setup script looks for a schema.sql file inside the src folder, and creates a database called lorem based on it. You can change all of this in the provision/setup.sh file, by editing the relevant lines (1; 2; 36-37)

  4. You can add or edit port forwarding options in Vagrantfile, by default you can access the site at localhost:8080

  5. To add rewrite rules or change other nginx-related settings, edit provision/config/nginx_vhost

  6. After setting up, run vagrant up in the root folder of vagrant-nginx-php-mysql

Usage

  • To stop the VM, run vagrant halt, to start it up again, vagrant up

About

A vagrant box for setting up websites on a 32-bit virtual machine with pure nginx, PHP and MySQL.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages