Skip to content

Commit 90202e4

Browse files
committed
add instructions to delete a virtualhost for AlmaLinux 9
1 parent 3621c2e commit 90202e4

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

docs/book/v1/faq.md

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

128128
```text
129-
Composer version 2.8.5 2025-01-21 15:23:40
130-
PHP version 8.3.20 (/usr/bin/php)
129+
Composer version 2.9.0 2025-11-13 10:37:16
130+
PHP version 8.5.0 (/usr/bin/php)
131131
Run the "diagnose" command to get more detailed diagnostics output.
132132
```
133133

@@ -167,6 +167,28 @@ Being installed as a system package, it can be updated using the command which u
167167
sudo dnf upgrade -y
168168
```
169169

170+
## How do I delete a virtualhost?
171+
172+
If for whatever reason you want to delete a virtualhost, you need to do the following:
173+
174+
* Delete the folder where are the files located
175+
176+
```shell
177+
sudo rm -rf /var/www/tobedeleted.localhost
178+
```
179+
180+
* Delete the Apache configuration file
181+
182+
```shell
183+
sudo rm -f /etc/httpd/sites-available/desters.localhost.conf
184+
```
185+
186+
* Restart httpd server
187+
188+
```shell
189+
sudo systemctl restart httpd
190+
```
191+
170192
## How do I create command aliases?
171193

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

0 commit comments

Comments
 (0)