Skip to content

Commit 6782d46

Browse files
committed
updated llms content
1 parent 57e1afc commit 6782d46

9 files changed

Lines changed: 232 additions & 620 deletions

File tree

public/llms-content/faq.md

Lines changed: 32 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,22 @@
1+
---
2+
title: AlmaLinux 10 Frequently asked questions
3+
description: Quick answers to common questions about switching PHP/Node.js versions, fixing permissions, finding logs, and maintaining your AlmaLinux 10 development environment.
4+
author: "admin"
5+
date_published: "2026-07-27"
6+
canonical_url: "https://docs.dotkernel.org/development/v2/faq"
7+
category: "Development"
8+
language: "en"
9+
---
10+
111
# AlmaLinux 10 Frequently asked questions
212

13+
## TL;DR
14+
315
Quick answers to common questions about switching PHP/Node.js versions, fixing permissions, finding logs, and maintaining your development environment.
416

5-
## How do I switch to a different version of PHP?
17+
## FAQ
18+
19+
### How do I switch to a different version of PHP?
620

721
Execute the following command:
822

@@ -36,7 +50,7 @@ Built by Remi's RPM repository <https://rpms.remirepo.net/> #StandWithUkraine
3650
Zend Engine v4.4.8, Copyright (c) Zend Technologies
3751
```
3852

39-
## How do I switch to a different version of Node.js?
53+
### How do I switch to a different version of Node.js?
4054

4155
Execute the following commands:
4256

@@ -80,67 +94,67 @@ Depending on the current npm version, the output should look similar to the belo
8094
11.9.0
8195
```
8296

83-
## How do I fix common permission issues?
97+
### How do I fix common permission issues?
8498

8599
If running your project, you encounter permission issues, follow the below steps.
86100

87101
`chmod -R 777` grants read/write/execute access to everyone, which is only appropriate for a local development environment like this one.
88102
Avoid carrying this habit into staging or production, where permissions should be scoped more narrowly (for example, to the web server's user/group).
89103

90-
### Error
104+
#### Error
91105

92106
PHP Fatal error: Uncaught InvalidArgumentException: The directory "`<path-to-project>`/data" is not writable...
93107

94108
PHP Fatal error: Uncaught InvalidArgumentException: The directory "`<path-to-project>`/data/cache" is not writable...
95109

96110
PHP Fatal error: Uncaught InvalidArgumentException: The directory "`<path-to-project>`/data/cache/doctrine" is not writable...
97111

98-
### Solution
112+
#### Solution
99113

100114
```shell
101115
chmod -R 777 data
102116
```
103117

104-
### Error
118+
#### Error
105119

106120
PHP Fatal error: Uncaught InvalidArgumentException: The directory "`<path-to-project>`/public/uploads" is not writable...
107121

108-
### Solution
122+
#### Solution
109123

110124
```shell
111125
chmod -R 777 public/uploads
112126
```
113127

114-
### Error
128+
#### Error
115129

116130
PHP Fatal error: Uncaught ErrorException: fopen(`<path-to-project>`/log/error-log-yyyy-mm-dd.log): Failed to open stream: Permission denied...
117131

118-
### Solution
132+
#### Solution
119133

120134
```shell
121135
chmod -R 777 log
122136
```
123137

124-
## Where are the error log files?
138+
### Where are the error log files?
125139

126140
From time to time, you are encountering various errors which are not displayed. Or you can get errors 500 in a browser.
127141

128142
To find the error messages, you need to read the error log files.
129143

130-
### Apache log files
144+
#### Apache log files
131145

132146
```text
133147
/var/log/httpd/error_log
134148
```
135149

136-
### PHP-FPM log files
150+
#### PHP-FPM log files
137151

138152
```text
139153
/var/log/php-fpm/error.log
140154
/var/log/php-fpm/www-error.log
141155
```
142156

143-
## How do I update Composer?
157+
### How do I update Composer?
144158

145159
Before updating, check your current Composer version by executing:
146160

@@ -184,15 +198,15 @@ PHP version 8.5.0 (/usr/bin/php)
184198
Run the "diagnose" command to get more detailed diagnostics output.
185199
```
186200

187-
## How do I update phpMyAdmin?
201+
### How do I update phpMyAdmin?
188202

189203
Being installed as a system package, it can be updated using the command which updates the rest of the system packages:
190204

191205
```shell
192206
sudo dnf upgrade -y
193207
```
194208

195-
## How do I upgrade MariaDB?
209+
### How do I upgrade MariaDB?
196210

197211
Initially, MariaDB was at version 11.4 LTS.
198212
In case you want to upgrade to a different version, for instance [11.8 LTS](https://mariadb.org/11-8-is-lts/), use the below steps:
@@ -240,7 +254,7 @@ sudo mariadb-upgrade -uroot -p
240254
sudo systemctl restart mariadb
241255
```
242256

243-
## How do I delete a virtualhost?
257+
### How do I delete a virtualhost?
244258

245259
If for whatever reason you want to delete a virtualhost, for instance `to-be-deleted.localhost` you need to do the following:
246260

@@ -268,7 +282,7 @@ sudo rm -f /etc/httpd/sites-enabled/to-be-deleted.localhost.conf
268282
sudo systemctl restart httpd
269283
```
270284

271-
## How do I create command aliases?
285+
### How do I create command aliases?
272286

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

@@ -285,7 +299,7 @@ where:
285299
* `command_alias` is the name by which you want to call your original command
286300
* `command to execute`: the original command to be executed on alias call
287301

288-
### Example
302+
#### Example
289303

290304
```text
291305
alias list_files="ls -Al"

0 commit comments

Comments
 (0)