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.
Structure
Laragon uses short, simple, lowercase for folder names. Below are the structure and descriptions:
C:\laragon |
Important folders
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:
Folder | Description | Note |
---|---|---|
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:
data\
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:
Service | Location |
---|---|
MySQL | {data_dir}\mysql |
MariaDB | {data_dir}\mariadb |
Mongo | {data_dir}\mongodb |
PostgreSQL | {data_dir}\postgresql |
www\
By default, the Document Root is located at C:\laragon\www
. On Terminal, you can access www\
folder using this environment variable: %DOCUMENT_ROOT%cd %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:
http://app.test
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.
usr\
When running, Laragon copies default settings from bin\laragon
to usr\