{"id":21149120,"url":"https://github.com/untone-survive/vagrant-lemp","last_synced_at":"2026-04-11T06:04:01.616Z","repository":{"id":69523532,"uuid":"131423674","full_name":"untone-survive/vagrant-lemp","owner":"untone-survive","description":"Easy Vagrant setup for Nginx + php-fm (with xDebug) + MySQL","archived":false,"fork":false,"pushed_at":"2018-05-15T14:31:02.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-21T07:44:30.403Z","etag":null,"topics":["mysql","nginx","php","php71","vagrant","xdebug"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/untone-survive.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-28T15:59:13.000Z","updated_at":"2018-05-15T14:31:03.000Z","dependencies_parsed_at":"2023-02-26T21:31:37.176Z","dependency_job_id":null,"html_url":"https://github.com/untone-survive/vagrant-lemp","commit_stats":null,"previous_names":["untone-survive/vagrant-lemp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/untone-survive%2Fvagrant-lemp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/untone-survive%2Fvagrant-lemp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/untone-survive%2Fvagrant-lemp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/untone-survive%2Fvagrant-lemp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/untone-survive","download_url":"https://codeload.github.com/untone-survive/vagrant-lemp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243589328,"owners_count":20315471,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mysql","nginx","php","php71","vagrant","xdebug"],"created_at":"2024-11-20T09:32:25.306Z","updated_at":"2025-12-30T22:57:00.930Z","avatar_url":"https://github.com/untone-survive.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Universal Vagrant + LEMP setup\n\nEasy deployment of Vagrant with Linux (Ubuntu 16.04) + Nginx + Mysql 5.7 + PHP 7.1 (with xDebug enabled) + Composer\n\nBased on [Yii2 advanced template](https://github.com/yiisoft/yii2-app-advanced) Vagrant setup.\n\n## Prerequisites\n\n* Install [Vagrant](https://www.vagrantup.com/docs/installation/)\n* Install [Virtualbox](https://www.virtualbox.org/manual/ch01.html#intro-installing)\n\n## Folder structure\n\n```bash\n/path/to/your/projects # projects root\n    /project1.test # actual folder with your project files\n    /project2.test\n    ...\n    /projectN.test\n    /vagrant-lemp # folder with all vagrant data\n```\n\nThe setup automatically creates Nginx configs for all folders inside the projects root folder.\n\nWith the help of [hostmanager](https://github.com/devopsgroup-io/vagrant-hostmanager) plugin the names of your projects folders also become URLs of the local sites. You might want to name them accordingly.\n\n**Pro-tip:**\nEnd your projects folders with `.test`. Because `.dev` is bought by Google and `.local` is used by Apple in their software.\n\n\n## Installation\n\nOpen the root directory for your folders.\n\n```bash\ncd /path/to/your/projects\n```\n\nClone this repo\n```bash\ngit clone https://github.com/h8every1/vagrant-lemp.git\ncd vagrant-lemp \n```\n\nRun Vagrant\n```\nvagrant up\n```\n\n## Configuring Vagrant\nBefore starting Vagrant for the first time you might want to do a little setup.\n\nCopy and edit main config file\n```bash\ncp ./config/vagrant-local.example.yml ./config/vagrant-local.yml\n```\nIf you don't do it manually, the `vagrant-local.yml` config file will be created automatically on first run.\n\nEdit newly created config file with your favorite text editor\n```bash\nvim ./config/vagrant-local.yml\n```\n\nYou can provide your [GitHub token](https://github.com/blog/1509-personal-api-tokens) which will be used by Composer. You can generate it here: https://github.com/settings/tokens If you don't provide it, Composer will ask for your token when needed.\n\n`machine_name` is used by Virtualbox and should be unique in your system. I.e. you can't have two `vagrant-project` virtual machines.\n\n`databases` are checked on each vagrant startup. The script will automatically create database and mysql user with empty password for accessing the new database. Already existing databases will be skipped.\n\nThere's also `root` MySQL user with empty password that can access all databases.\n\n## Adding URLs\n\nJust create new folder inside your projects root folder and `vagrant halt \u0026\u0026 vagrant up` (to run `hostmanager` provision) inside `vagrant-lemp` folder.\n\n## NGINX configs\n\nConfigs are automatically created at each start of Vagrant and are stored in `./nginx/sites/*.conf` files. One file per each project folder. You can safely edit those files, script won't overwrite them (but will recreate configs if you delete them).\n\nThe template for those files is `./config/nginx-project.template.conf`. You can edit it to suit your everyday needs.\n\n## xDebug config\nxDebug should be up and running on first run. You only need to configure your IDE. Be sure to map your local project directory to directory inside `/app` on remote machine.\n\nIn case you need to edit xDebug config, it is located in `./config/xdebug.ini`. Don't forget to restart `php-fpm` after editing.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funtone-survive%2Fvagrant-lemp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funtone-survive%2Fvagrant-lemp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funtone-survive%2Fvagrant-lemp/lists"}