You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -44,9 +44,9 @@ For basic sponsorships go to [Open Collective](https://opencollective.com/larado
44
44
45
45
*Your logo will show up on the [github repository](https://github.com/laradock/laradock/) index page and the [documentation](http://laradock.io/) main page, with a link to your website.*
Copy file name to clipboardExpand all lines: DOCUMENTATION/content/documentation/index.md
+19-33Lines changed: 19 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -297,6 +297,24 @@ e) set it to `true`
297
297
298
298
For information on how to configure xDebug with your IDE and work it out, check this [Repository](https://github.com/LarryEitel/laravel-laradock-phpstorm) or follow up on the next section if you use linux and PhpStorm.
299
299
300
+
301
+
302
+
<br>
303
+
<aname="Control-xDebug"></a>
304
+
## Start/Stop xDebug:
305
+
306
+
By installing xDebug, you are enabling it to run on startup by default.
307
+
308
+
To control the behavior of xDebug (in the `php-fpm` Container), you can run the following commands from the Laradock root folder, (at the same prompt where you run docker-compose):
309
+
310
+
- Stop xDebug from running by default: `.php-fpm/xdebug stop`.
311
+
- Start xDebug by default: `.php-fpm/xdebug start`.
312
+
- See the status: `.php-fpm/xdebug status`.
313
+
314
+
Note: If `.php-fpm/xdebug` doesn't execute and gives `Permission Denied` error the problem can be that file `xdebug` doesn't have execution access. This can be fixed by running `chmod` command with desired access permissions.
315
+
316
+
317
+
300
318
<br>
301
319
<aname="Install-phpdbg"></a>
302
320
## Install phpdbg
@@ -321,22 +339,6 @@ PHP_FPM_INSTALL_PHPDBG=true
321
339
322
340
323
341
324
-
<br>
325
-
<aname="Control-xDebug"></a>
326
-
## Start/Stop xDebug:
327
-
328
-
By installing xDebug, you are enabling it to run on startup by default.
329
-
330
-
To control the behavior of xDebug (in the `php-fpm` Container), you can run the following commands from the Laradock root folder, (at the same prompt where you run docker-compose):
331
-
332
-
- Stop xDebug from running by default: `.php-fpm/xdebug stop`.
333
-
- Start xDebug by default: `.php-fpm/xdebug start`.
334
-
- See the status: `.php-fpm/xdebug status`.
335
-
336
-
Note: If `.php-fpm/xdebug` doesn't execute and gives `Permission Denied` error the problem can be that file `xdebug` doesn't have execution access. This can be fixed by running `chmod` command with desired access permissions.
337
-
338
-
339
-
340
342
341
343
<br>
342
344
<aname="Install-ionCube-Loader"></a>
@@ -1566,22 +1568,6 @@ Available versions are: 5.5, 5.6, 5.7, 8.0, or latest. See https://store.docker
1566
1568
1567
1569
1568
1570
1569
-
<br>
1570
-
<aname="MySQL-access-from-host"></a>
1571
-
## MySQL access from host
1572
-
1573
-
You can forward the MySQL/MariaDB port to your host by making sure these lines are added to the `mysql` or `mariadb` section of the `docker-compose.yml` or in your [environment specific Compose](https://docs.docker.com/compose/extends/) file.
1574
-
1575
-
```
1576
-
ports:
1577
-
- "3306:3306"
1578
-
```
1579
-
1580
-
1581
-
1582
-
1583
-
1584
-
1585
1571
<br>
1586
1572
<aname="MySQL-root-access"></a>
1587
1573
## MySQL root access
@@ -1682,7 +1668,7 @@ Enabling Global Composer Install during the build for the container allows you t
Copy file name to clipboardExpand all lines: DOCUMENTATION/content/getting-started/index.md
+14-5Lines changed: 14 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ Note: If you are not using Git yet for your project, you can use `git clone` ins
41
41
*To keep track of your Laradock changes, between your projects and also keep Laradock updated [check these docs](/documentation/#keep-track-of-your-laradock-changes)*
42
42
43
43
44
-
Your folder structure should look like this:
44
+
2 - Make sure your folder structure should look like this:
45
45
46
46
```
47
47
+ project-a
@@ -52,7 +52,7 @@ Your folder structure should look like this:
52
52
53
53
*(It's important to rename the laradock folders to unique name in each project, if you want to run laradock per project).*
Make sure to replace `project-z` with your project folder name.
88
88
89
-
> **Now jump to the [Usage](#Usage) section.**
89
+
3 - Go to the [Usage](#Usage) section.
90
90
91
91
92
92
<aname="B"></a>
@@ -127,7 +127,7 @@ You can rename the config files, project folders and domains as you like, just m
127
127
128
128
If you use Chrome 63 or above for development, don't use `.dev`. [Why?](https://laravel-news.com/chrome-63-now-forces-dev-domains-https). Instead use `.localhost`, `.invalid`, `.test`, or `.example`.
129
129
130
-
> **Now jump to the [Usage](#Usage) section.**
130
+
4 - Go to the [Usage](#Usage) section.
131
131
132
132
133
133
@@ -213,7 +213,16 @@ Open your PHP project's `.env` file or whichever configuration file you are read
213
213
DB_HOST=mysql
214
214
```
215
215
216
+
You need to use the Laradock's default DB credentials which can be found in the `.env` file (ex: `MYSQL_USER=`).
217
+
Or you can change them and rebuild the container.
218
+
216
219
*If you want to install Laravel as PHP project, see [How to Install Laravel in a Docker Container](#Install-Laravel).*
217
220
218
221
<br>
219
-
5 - Open your browser and visit your localhost address `http://localhost/`. If you followed the multiple projects setup, you can visit `http://project-1.test/` and `http://project-2.test/`.
222
+
5 - Open your browser and visit your localhost address.
223
+
224
+
If you followed the multiple projects setup, you can visit `http://project-1.test/` and `http://project-2.test/`.
225
+
226
+
[http://localhost:8080](http://localhost:8080)
227
+
228
+
Make sure you add use the right port number as provided by your running server. Ex: NGINX uses port 8080 by default while Apache2 uses 80.
0 commit comments