{"id":17367037,"url":"https://github.com/lnfel/laragon-lamy","last_synced_at":"2025-08-09T23:34:48.715Z","repository":{"id":116876806,"uuid":"401263492","full_name":"lnfel/laragon-lamy","owner":"lnfel","description":"Setup Laragon portable on windows using one batch script (kind of)","archived":false,"fork":false,"pushed_at":"2022-02-06T05:23:12.000Z","size":68,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-02T14:45:29.023Z","etag":null,"topics":["apache2","batch-file","batch-script","composer","laragon","laravel","mysql"],"latest_commit_sha":null,"homepage":"","language":"Batchfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lnfel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2021-08-30T08:02:31.000Z","updated_at":"2025-02-15T20:27:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"869bbc17-6368-4949-a04b-d3cd76b97517","html_url":"https://github.com/lnfel/laragon-lamy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lnfel/laragon-lamy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnfel%2Flaragon-lamy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnfel%2Flaragon-lamy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnfel%2Flaragon-lamy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnfel%2Flaragon-lamy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lnfel","download_url":"https://codeload.github.com/lnfel/laragon-lamy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnfel%2Flaragon-lamy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269653929,"owners_count":24454317,"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","status":"online","status_checked_at":"2025-08-09T02:00:10.424Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["apache2","batch-file","batch-script","composer","laragon","laravel","mysql"],"created_at":"2024-10-15T22:22:47.830Z","updated_at":"2025-08-09T23:34:48.705Z","avatar_url":"https://github.com/lnfel.png","language":"Batchfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laragon Lamy\nAutomated setup for Laragon portable **without dependencies**.\n\n## How to use\n1. Download or clone this repo\n2. Run `laragon.bat`\n3. Open the installed laragon.exe in C:\\laragon\n4. Install the preconfigured packages via laragon menu, **Right click \u003e Tools \u003e Quick Add \u003e All**\n5. Using laragon menu, **Click Menu \u003e Apache \u003e SSL \u003e Enabled**\n6. Using laragon menu, **Click Menu \u003e Apache \u003e SSL \u003e Add laragon.crt to Trust Store**\n7. Finally run `settings.bat` for final setup\n\n## TO DO\nEverything is hard coded at the moment, and assumes the user is gonna use the default setup.\n\n- [x] Allow user to specify where to dump winrar, laragon portable and git portable, currently using C:\\Users\\Administrator\\Downloads\n- [x] Allow user to specify a custom packages conf file to use, currently uses the hard coded packages_conf block\n- [x] Allow user to opt in using nginx instead of deleting it by default\n- [x] (When user uses custom packages.conf sublime won't be installed) Allow user to opt in for other text editor instead of assuming they would use sublime text\n- [x] Ask if user would like to use cmder_mini\n- [ ] Test setting up Rails on Laragon (this was difficult than expected, no wonder laragon had a separate repo for rails setup)\n- [x] Prompt user to setup git username and email\n\n## Defaults\n- PHP 8.0.9\n- Apache 2.4.48\n- PHPMyAdmin 5.1.1\n- MySQL 8.0.26\n- Sublime 4 Portable build 4113\n- Cmder mini 1.3.18\n- Git Portable\n\n## Manual Steps for reference\n\n### Initial laragon setup\n1. Download laragon portable, run and extract to `C:\\laragon`\n2. Update `C:\\laragon\\usr\\packages.conf` and include the packages needed to install by laragon\n3. Download all using laragon menu, **Right click \u003e Tools \u003e Quick Add \u003e All**\n4. Download git portable and extract to `C:\\laragon\\bin\\git`\n    - Don't forget to set up `git config --global user.name` and `git config --global user.email`\n    - `git config --global init.defaultBranch main`\n    - `git branch -m master main`\n5. Add sublime path to Environment PATH variable\n6. Select corresponding versions for PHP, Apache, MySQL\n\n### Setup Apache\n1. This step is now moved as the final override step ~~Using laragon menu, **Right click \u003e Apache \u003e SSL \u003e Enabled** and **Add laragon.crt to Trust Store**~~\n2. Open `C:/laragon/bin/apache/httpd-2.4.48-o111k-x64-vs16/conf/httpd.conf`\n    - Change `Define SRVROOT \"/Apache24\"`\n    - To `Define SRVROOT \"C:/laragon/bin/apache/httpd-2.4.48-o111k-x64-vs16\"`\n3. Open `C:/laragon/etc/apache2/httpd.ssl.conf`\n    - Comment out `Listen 443`\n\n### Set up MySQL\n1. Delete laragon/data/mysql-8\n2. cd to laragon/bin/mysql8.0.0.x/bin folder via cmder\n3. run `mysqld --initialize-insecure --console`\n\nto test run `mysql -u root -p` and when it asks for password just hit enter since we already removed the password on step 3.\n\nNo need to do following steps steps since `--initialize-insecure` initializes mysql user without a password\n3. ~~run `mysqld --initialize --console` (remember the password, important for step 6.)~~\n4. ~~run `start mysqld`~~\n5. ~~run `mysql -u root -p`~~\n6. ~~put in the password from 6.~~\n7. ~~You are now in mysql shell and can remove the password again: `ALTER USER 'root'@'localhost' IDENTIFIED BY '';`~~\n8. ~~run `exit` and ctrl + c the spawned tab from step 4.~~\n\n### Install Composer\n1. cd `C:\\laragon\\bin\\composer`\n2. `php -r \"copy('https://getcomposer.org/installer', 'composer-setup.php');\"`\n3. `php -r \"if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;\"`\n4. php composer-setup.php\n\n### Install Laravel globally\n1. `composer global require laravel/installer`\n\n### Override laragon config [fixes ssl issue]\n1. Open C:\\laragon\\bin\\laragon\\tpl\\openssql.conf\n2. Open C:\\laragon\\usr\\tpl\\openssql.conf.tpl\n3. Open C:\\laragon\\etc\\ssl\\openssql.conf\n4. Change keyUsage = keyEncipherment, dataEncipherment\n5. To keyUsage = nonRepudiation, digitalSignature, keyEncipherment\n6. Reload Apache - Laragon will generate new SAN certificate\n7. **Click Menu \u003e Apache \u003e SSL \u003e Add laragon.crt to Trust Store**\n\n### Replace laragon cmder with updated cmder mini\nSince cmder mini is installed already via laragon package that we had customized we can just rename it.\n1. Rename `C:\\laragon\\bin\\cmder` to **cmder.bak**\n2. Rename `C:\\laragon\\bin\\cmdermini` to **cmder**\n3. Copy the following from `C:\\laragon\\bin\\cmder.bak\\vendor\\init.bat`\n\n```sh\n:: Laragon Start -------------------------------------------------------------------\n\n\nif exist \"%CMDER_ROOT%\\..\\git\" (\n    set \"GIT_INSTALL_ROOT=%CMDER_ROOT%\\..\\git\"\n)\n\nif exist \"%GIT_INSTALL_ROOT%\\post-install.bat\" (\n    echo Running Git for Windows one time Post Install....\n    pushd \"%GIT_INSTALL_ROOT%\"\n    call \"%GIT_INSTALL_ROOT%\\git-bash.exe\" --no-needs-console --hide --no-cd --command=post-install.bat\n    @DEL post-install.bat\n\n    popd\n    :: cd /d %USERPROFILE%\n    rem\n)\n\nfor /f \"delims=\" %%i in (\"%CMDER_ROOT%\\..\\..\\usr\") do set USER_DIR=%%~fi\nset USR_DIR=%USER_DIR%\n\n\n\nif exist \"%CMDER_ROOT%\\..\\laragon\\laragon.cmd\" (\n    :: call Laragon own commands\n    call \"%CMDER_ROOT%\\..\\laragon\\laragon.cmd\"\n)\n\nif exist \"%USER_DIR%\\user.cmd\" (\n    rem create this file and place your own command in there\n    call \"%USER_DIR%\\user.cmd\"\n) else (\n    echo Creating user startup file: \"%USER_DIR%\\user.cmd\"\n    (\n    echo :: use this file to run your own startup commands\n    echo :: use  in front of the command to prevent printing the command\n    echo.\n    echo :: call %%GIT_INSTALL_ROOT%%/cmd/start-ssh-agent.cmd\n    echo :: set PATH=%%USER_DIR%%\\bin\\whatever;%%PATH%%\n    echo.\n    echo :: cmd /c start http://localhost \n    echo.\n    ) \u003e \"%USER_DIR%\\user.cmd\"\n    \n    :: cd /d \"%CMDER_ROOT%\\..\\..\\www\"\n    rem\n)\n\n:: Laragon End -------------------------------------------------------------------\n```\n\n4. Then insert it into `C:\\laragon\\bin\\cmder\\vendor\\init.bat` after the following lines:\n\n```sh\n:: some code at the top...\n\n:: Set home path\nif not defined HOME set \"HOME=%USERPROFILE%\"\n%print_debug% init.bat \"Env Var - HOME=%HOME%\"\n\n:: paste it here\n```\n5. This should make laragon detect the updated cmder mini we just installed, to test open `laragon.exe` and click on Terminal button.\n\n## Known errors\n- Error: webpack toast encountered an error Please make sure that the app id is set correctly.\n- Solution: windows settings -\u003e Notifications and Actions (on Windows 10)\n- Source: https://stackoverflow.com/questions/64949275/npm-run-dev-not-compiling-assets-with-error-notifications-for-user-are-disabled","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnfel%2Flaragon-lamy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flnfel%2Flaragon-lamy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnfel%2Flaragon-lamy/lists"}