Skip to content

Commit 3621c2e

Browse files
authored
Merge pull request #110 from dotkernel/delete-alma-linux-10
add instructions to delete a virtualhost
2 parents 41bd37b + 26f05b7 commit 3621c2e

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

docs/book/v2/faq.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ composer --version
155155
The output should be similar to:
156156

157157
```text
158-
Composer version 2.8.8 2025-04-04 16:56:46
159-
PHP version 8.3.20 (/usr/bin/php)
158+
Composer version 2.9.0 2025-11-13 10:37:16
159+
PHP version 8.5.0 (/usr/bin/php)
160160
Run the "diagnose" command to get more detailed diagnostics output.
161161
```
162162

@@ -216,6 +216,28 @@ sudo mariadb-upgrade -uroot -p
216216
sudo systemctl restart mariadb
217217
```
218218

219+
## How do I delete a virtualhost?
220+
221+
If for whatever reason you want to delete a virtualhost, you need to do the following:
222+
223+
* Delete the folder where are the files located
224+
225+
```shell
226+
sudo rm -rf /var/www/tobedeleted.localhost
227+
```
228+
229+
* Delete the Apache configuration file
230+
231+
```shell
232+
sudo rm -f /etc/httpd/sites-available/desters.localhost.conf
233+
```
234+
235+
* Restart httpd server
236+
237+
```shell
238+
sudo systemctl restart httpd
239+
```
240+
219241
## How do I create command aliases?
220242

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

0 commit comments

Comments
 (0)