From f62468575c2dbf29460e2bf134b8f5c2286db587 Mon Sep 17 00:00:00 2001 From: arhimede Date: Fri, 28 Nov 2025 14:33:42 +0200 Subject: [PATCH 1/2] add instructions to delete a virtualhost --- docs/book/v2/faq.md | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/docs/book/v2/faq.md b/docs/book/v2/faq.md index caa6baf..a08b5e2 100644 --- a/docs/book/v2/faq.md +++ b/docs/book/v2/faq.md @@ -155,8 +155,8 @@ composer --version The output should be similar to: ```text -Composer version 2.8.8 2025-04-04 16:56:46 -PHP version 8.3.20 (/usr/bin/php) +Composer version 2.9.0 2025-11-13 10:37:16 +PHP version 8.5.0 (/usr/bin/php) Run the "diagnose" command to get more detailed diagnostics output. ``` @@ -216,6 +216,29 @@ sudo mariadb-upgrade -uroot -p sudo systemctl restart mariadb ``` +## How do I delete a virtualhost? + +If for whatever reason you want to delete a virtualhost, you need to do the following: + +* Delete the folder where are the files located + +```shell +sudo rm -rf /var/www/tobedeleted.localhost +``` + +* Delete the Apache configuration file + +```shell +sudo rm -f /etc/httpd/sites-available/desters.localhost.conf +``` + +* Restart httpd server + +```shell +sudo systemctl restart httpd +``` + + ## How do I create command aliases? From either your terminal or file explorer, navigate to your home directory (`/home//`). From 26f05b7081e06229cf821d7a44a3d562a0d99419 Mon Sep 17 00:00:00 2001 From: arhimede Date: Fri, 28 Nov 2025 14:36:08 +0200 Subject: [PATCH 2/2] add instructions to delete a virtualhost --- docs/book/v2/faq.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/book/v2/faq.md b/docs/book/v2/faq.md index a08b5e2..2656668 100644 --- a/docs/book/v2/faq.md +++ b/docs/book/v2/faq.md @@ -238,7 +238,6 @@ sudo rm -f /etc/httpd/sites-available/desters.localhost.conf sudo systemctl restart httpd ``` - ## How do I create command aliases? From either your terminal or file explorer, navigate to your home directory (`/home//`).