Skip to content

Commit 703cd51

Browse files
authored
Merge pull request #52 from dotkernel/update-phpmyadmin-composer
FAQ: Update `Composer` and `phpMyAdmin`
2 parents 2677f55 + 28be140 commit 703cd51

File tree

3 files changed

+119
-15
lines changed

3 files changed

+119
-15
lines changed

docs/book/v1/faq.md

Lines changed: 55 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ node -v
5959

6060
## How do I fix common permission issues?
6161

62-
If running your project you encounter permission issues, follow the below steps.
62+
If running your project, you encounter permission issues, follow the below steps.
6363

6464
### Error
6565

@@ -100,9 +100,9 @@ chmod -R 777 log
100100

101101
## Where are the error log files?
102102

103-
From time to time, you are encountering various errors which are not displayed. Or you can get errors 500 in browser.
103+
From time to time, you are encountering various errors which are not displayed. Or you can get errors 500 in a browser.
104104

105-
In order to find the error messages, you need to read the error log files.
105+
To find the error messages, you need to read the error log files.
106106

107107
### Apache log files
108108

@@ -117,6 +117,58 @@ In order to find the error messages, you need to read the error log files.
117117
/var/log/php-fpm/www-error.log
118118
```
119119

120+
## How do I update Composer?
121+
122+
Before updating, check your current Composer version by executing:
123+
124+
```shell
125+
composer --version
126+
```
127+
128+
The output should be similar to:
129+
130+
```text
131+
Composer version 2.8.5 2025-01-21 15:23:40
132+
PHP version 8.3.20 (/usr/bin/php)
133+
Run the "diagnose" command to get more detailed diagnostics output.
134+
```
135+
136+
Update Composer using its own `self-update` command:
137+
138+
```shell
139+
sudo /usr/local/bin/composer self-update
140+
```
141+
142+
The output should be similar to:
143+
144+
```text
145+
Upgrading to version 2.8.8 (stable channel).
146+
147+
Use composer self-update --rollback to return to version 2.8.5
148+
```
149+
150+
After updating, check again your Composer version by executing:
151+
152+
```shell
153+
composer --version
154+
```
155+
156+
The output should be similar to:
157+
158+
```text
159+
Composer version 2.8.8 2025-04-04 16:56:46
160+
PHP version 8.3.20 (/usr/bin/php)
161+
Run the "diagnose" command to get more detailed diagnostics output.
162+
```
163+
164+
## How do I update phpMyAdmin?
165+
166+
Being installed as a system package, it can be updated using the command which updates the rest of the system packages:
167+
168+
```shell
169+
sudo dnf upgrade -y
170+
```
171+
120172
## How do I create command aliases?
121173

122174
From either your terminal or file explorer, navigate to your home directory (`/home/<your-username>/`).

wsl/README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,9 @@
44

55
## Prerequisites
66

7-
Before proceeding with the installation, please consult Microsoft's
8-
[documentation](https://learn.microsoft.com/en-us/windows/wsl/install#prerequisites) regarding the minimum requirements
9-
for running WSL2.
7+
Before proceeding with the installation, please consult Microsoft's [documentation](https://learn.microsoft.com/en-us/windows/wsl/install#prerequisites) regarding the minimum requirements for running WSL2.
108

11-
Once you know that your machine can run WSL2, open the `Run` prompt by pressing `Win`+`r` and type in the dialog
12-
`OptionalFeatures`, then press `Enter`.
9+
Once you know that your machine can run WSL2, open the `Run` prompt by pressing `Win`+`r` and type in the dialog `OptionalFeatures`, then press `Enter`.
1310

1411
This will open a window where you can turn Windows features on/off.
1512

@@ -19,8 +16,7 @@ Make sure the next features are activated (checked):
1916
- `Virtual Machine Platform`
2017
- `Windows Subsystem for Linux`
2118

22-
> If any of the above features is missing, then first you need to install them manually using
23-
> [this guide](https://docs.microsoft.com/en-us/windows/wsl/install-manual) and then continue with the below steps.
19+
> If any of the above features are missing, then first you need to install them manually using [this guide](https://docs.microsoft.com/en-us/windows/wsl/install-manual) and then continue with the below steps.
2420
2521
Click `Ok` and restart your computer.
2622

wsl/os/almalinux9/FAQ.md

Lines changed: 61 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ node -v
5959

6060
## How do I fix common permission issues?
6161

62-
If running your project you encounter permission issues, follow the below steps.
62+
If running your project, you encounter permission issues, follow the below steps.
6363

6464
### Error
6565

@@ -100,9 +100,9 @@ chmod -R 777 log
100100

101101
## Where are the error log files?
102102

103-
From time to time, you are encountering various errors which are not displayed. Or you can get errors 500 in browser.
103+
From time to time, you are encountering various errors which are not displayed. Or you can get errors 500 in a browser.
104104

105-
In order to find the error messages, you need to read the error log files.
105+
To find the error messages, you need to read the error log files.
106106

107107
### Apache log files
108108

@@ -117,6 +117,58 @@ In order to find the error messages, you need to read the error log files.
117117
/var/log/php-fpm/www-error.log
118118
```
119119

120+
## How do I update Composer?
121+
122+
Before updating, check your current Composer version by executing:
123+
124+
```shell
125+
composer --version
126+
```
127+
128+
The output should be similar to:
129+
130+
```text
131+
Composer version 2.8.5 2025-01-21 15:23:40
132+
PHP version 8.3.20 (/usr/bin/php)
133+
Run the "diagnose" command to get more detailed diagnostics output.
134+
```
135+
136+
Update Composer using its own `self-update` command:
137+
138+
```shell
139+
sudo /usr/local/bin/composer self-update
140+
```
141+
142+
The output should be similar to:
143+
144+
```text
145+
Upgrading to version 2.8.8 (stable channel).
146+
147+
Use composer self-update --rollback to return to version 2.8.5
148+
```
149+
150+
After updating, check again your Composer version by executing:
151+
152+
```shell
153+
composer --version
154+
```
155+
156+
The output should be similar to:
157+
158+
```text
159+
Composer version 2.8.8 2025-04-04 16:56:46
160+
PHP version 8.3.20 (/usr/bin/php)
161+
Run the "diagnose" command to get more detailed diagnostics output.
162+
```
163+
164+
## How do I update phpMyAdmin?
165+
166+
Being installed as a system package, it can be updated using the command which updates the rest of the system packages:
167+
168+
```shell
169+
sudo dnf upgrade -y
170+
```
171+
120172
## How do I create command aliases?
121173

122174
From either your terminal or file explorer, navigate to your home directory (`/home/<your-username>/`).
@@ -125,7 +177,9 @@ Using your preferred text editor, open the file: `.bash_profile` (if it does not
125177

126178
Move to the end of the file and enter on a new line:
127179

128-
alias command_alias="command to execute"
180+
```text
181+
alias command_alias="command to execute"
182+
```
129183

130184
where:
131185

@@ -134,6 +188,8 @@ where:
134188

135189
### Example:
136190

137-
alias list_files="ls -Al"
191+
```text
192+
alias list_files="ls -Al"
193+
```
138194

139195
will create an alias called `list_files` that will run the command `ls -Al`.

0 commit comments

Comments
 (0)