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
@@ -125,10 +151,9 @@ The installation process will iterate over each task in the playbook and will ou
125
151
126
152
Now check if everything works by opening in your browser:
127
153
128
-
-[http://localhost/](http://localhost/) - Apache's default home page
129
-
-[http://localhost/info.php](http://localhost/info.php) - PHP info page
130
-
-[http://localhost/phpmyadmin/](http://localhost/phpmyadmin/) - PhpMyAdmin (login with `root` + the root password you
131
-
configured in `config.yml` under `mariadb` -> `root_password`)
154
+
-[http://localhost/](http://localhost/): Apache's default home page
155
+
-[http://localhost/info.php](http://localhost/info.php): PHP info page
156
+
-[http://localhost/phpmyadmin/](http://localhost/phpmyadmin/): PhpMyAdmin (login with `root` + the root password you configured in `config.yml` under `mariadb` -> `root_password`)
132
157
133
158
The installation is complete, your development environment is ready to use.
134
159
@@ -145,10 +170,7 @@ want to create, each on its own line.
145
170
146
171
Already existing ones will be skipped, no need to comment or remove them.
147
172
148
-
### NOTE
149
-
150
-
> By using the pattern `*.localhost` for any new virtualhost, you do not need to modify the `hosts` file in Windows,
151
-
> because these are routed by default.
173
+
> By using the `*.localhost` pattern for any new virtualhost, you do not need to modify the `hosts` file in Windows, because these are routed by default.
152
174
153
175
Save and close the file.
154
176
@@ -162,23 +184,17 @@ This will iterate over the list of configured `virtualhosts` and will output a s
162
184
163
185
Your virtualhost should be accessible and ready to use.
164
186
165
-
You will install your project under the `html` directory of your project, for example:
166
-
`/var/www/example.localhost/html`.
187
+
You will install your project under the `html` directory of your project, for example: `/var/www/example.localhost/html`.
188
+
189
+
> The virtualhost's document root is set to the `public` directory of the above location, for example `/var/www/example.localhost/html/public`.
167
190
168
-
### NOTE
169
-
> The virtualhost's document root is set to the `public` directory of the above location, for example
170
-
> `/var/www/example.localhost/html/public`.
171
-
>
172
-
> If you want to have the DocumentRoot directly in `html` folder, you need to modify the file
173
-
> `/etc/httpd/sites-available/example.localhost`
191
+
> If you want to have the DocumentRoot directly in `html` folder, you need to modify the file `/etc/httpd/sites-available/example.localhost`.
174
192
175
193
### Good to know
176
194
177
-
-In order to run your installed projects, you need to start AlmaLinux 9 first.
195
+
-To run your installed projects, you need to start AlmaLinux 9 first.
178
196
- If you work with virtualhosts, your projects are created under `/var/www/`.
179
197
- You can still run PHP scripts under the default Apache project directory, located at `/var/www/html/`.
180
198
- If you encounter write permission issues, see [this guide](FAQ.md#how-do-i-fix-common-permission-issues).
181
-
- We install PHP 8.3 by default. If you need a different version, see
Copy file name to clipboardExpand all lines: wsl/os/ubuntu20/README.md
+18-20Lines changed: 18 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Install WSL development environment on Ubuntu 20
2
2
3
-
[< DotKernel: Install development environment](../../README.md)
3
+
[< Dotkernel: Install development environment](../../README.md)
4
4
5
5
## Download Ubuntu 20 WSL image
6
6
@@ -14,7 +14,7 @@ Open `Windows Terminal` and execute the following command:
14
14
wsl --install -d Ubuntu-20.04
15
15
```
16
16
17
-
You should see the download progress and once finished, the output should look like this:
17
+
You should see the download progress, and once finished, the output should look like this:
18
18
19
19
```text
20
20
Downloading: Ubuntu 20.04 LTS
@@ -27,14 +27,13 @@ Also, you should find a new tab in `Windows Terminal` that is already connected
27
27
28
28
### Method 2: Download Ubuntu 20 WSL image from Microsoft Store
29
29
30
-
Open Microsoft Store, in the search box type in: `Ubuntu` and hit `Enter`.
30
+
Open Microsoft Store, type `Ubuntu`in the search box and hit `Enter`.
31
31
32
32
From the results, select `Ubuntu 20.04.4 LTS` - this will take you to Ubuntu 20's app page.
33
33
34
34
On this page, locate and click the `Install` button - this will download Ubuntu 20 WSL image on your machine.
35
35
36
-
Once the download has finished, the `Install` button is replaced by an `Open` button - clicking it will open
37
-
`Windows Terminal`.
36
+
Once the download has finished, the `Install` button is replaced by an `Open` button - clicking it will open `Windows Terminal`.
38
37
39
38
## Install Ubuntu 20
40
39
@@ -114,18 +113,21 @@ Open `Windows Terminal`.
114
113
115
114
Stop Ubuntu 20:
116
115
117
-
wsl -t Ubuntu-20.04
116
+
```shell
117
+
wsl -t Ubuntu-20.04
118
+
```
118
119
119
120
Start Ubuntu 20:
120
121
121
-
wsl -d Ubuntu-20.04
122
+
```shell
123
+
wsl -d Ubuntu-20.04
124
+
```
122
125
123
126
Now check if everything works by opening in your browser:
124
127
125
-
-[http://localhost/](http://localhost/) - Apache's default home page
126
-
-[http://localhost/info.php](http://localhost/info.php) - PHP info page
127
-
-[http://localhost/phpmyadmin/](http://localhost/phpmyadmin/) - PhpMyAdmin (login with `root` + the root password you
128
-
configured in `config.yml` under `mariadb` -> `root_password`)
128
+
-[http://localhost/](http://localhost/): Apache's default home page
129
+
-[http://localhost/info.php](http://localhost/info.php): PHP info page
130
+
-[http://localhost/phpmyadmin/](http://localhost/phpmyadmin/): PhpMyAdmin (login with `root` + the root password you configured in `config.yml` under `mariadb` -> `root_password`)
129
131
130
132
The installation is complete, your development environment is ready to use.
131
133
@@ -137,8 +139,7 @@ Move inside the directory `development/wsl`:
137
139
cd~/development/wsl/
138
140
```
139
141
140
-
Using your preferred text editor, open `config.yml` and, under the `virtualhosts` key, enter the virtualhosts that you
141
-
want to create, each on its own line.
142
+
Using your preferred text editor, open `config.yml` and, under the `virtualhosts` key, enter the virtualhosts that you want to create, each on its own line.
142
143
143
144
Already existing ones will be skipped, no need to comment or remove them.
144
145
@@ -155,16 +156,13 @@ This will iterate over the list of configured `virtualhosts` and will output a s
155
156
Your virtualhost should be accessible and ready to use.
156
157
157
158
You will install your projects under the `/home/your-username/projects/` directory.
158
-
The virtualhost's document root is set to the `public` directory of the above location, for example
The virtualhost's document root is set to the `public` directory of the above location, for example `/home/your-username/projects/example.local/public`.
160
160
161
161
**Note**:
162
162
163
-
-In order to run your installed projects, you need to start Ubuntu 20 first.
163
+
-To run your installed projects, you need to start Ubuntu 20 first.
164
164
- If you work with virtualhosts, your projects are created under `/home/your-username/projects/`.
165
165
- You can still run PHP scripts under the default Apache project directory, located at `/var/www/html/`.
166
166
- If you encounter write permission issues, see [this guide](FAQ.md#how-do-i-fix-common-permission-issues).
167
-
- Default version of PHP is set to 8.3. If you need a different version, see
0 commit comments