By default, Laragon is installed at
C:\laragon. As Laragon is containerized & portable & isolated, you can change the path (rename, move to another drive, move to another machine) without any worries.
Laragon uses short, simple, lowercase for folder names. Below are the structure and descriptions:
Laragon is disposable - You can delete your
Data dir and have new refresh data. If you only use Apache, you can delete
bin\nginx folder and vice versa.
You can delete the whole stack and reproduce it again in another machines as long as you keep these 3 folders:
|data\||Data dir for MySQL, MariaDB, PostgreSQL, MongoDB||You can change the Data dir in Menu > Preferences|
|www\||Document Root (where you store your projects)||You can change the Document Root in Menu > Preferences|
|usr\||User dir||Laragon stores user’s settings in the folder - so when reinstall/update Laragon, current settings will be intact|
As they store meaningful data, you can read more information about them below:
By default, the Data dir is located at
C:\laragon\data. If the Data dir doesn’t exist, Laragon will create it and make data for each service inside the folder with correspond name:
By default, the Document Root is located at
C:\laragon\www. On Terminal, you can access
www\ folder using this environment variable: %DOCUMENT_ROOT%
Laragon has “auto created virtual hosts” feature - So, when you put a folder name
app to www/, you can access the project with pretty url:
Note: You can also access the project via
http://localhost/app. However the first one is not only pretty but also help you to solve issues related to paths.
When running, Laragon copies default settings from