Solution to the error "/usr/sbin/apachectl: 113: www-browser: not found"

Apache is one of the most used webservers throughout the web. It is easy to configure, easy to install, and customizable. When installing Apache for the first time on Linux and obtaining a current service status, you may get an error like the one shown below.
/usr/sbin/apachectl: 113: www-browser: not found
'www-browser -dump http://localhost:80/server-status' failed.
Maybe you need to install a package providing www-browser or you
need to adjust the APACHE_LYNX variable in /etc/apache2/envvars
This error generally appears when executing the apachectl status
command and happens because Linux tries to find a text web browser to make an HTTP call to the server and check that everything is OK. This error is very easy to solve, you only need to install some text browser such as w3m. Depending on your Linux distro, the way to install it will be different. In Ubuntu, you can execute, for example, the following command:
sudo apt install w3m
Once this is done, the output of the status command will be similar to the following:
Apache Server Status for localhost (via 127.0.0.1)
Server Version: Apache/2.4.52 (Ubuntu)
Server MPM: prefork
Server Built: 2022-03-25T00:35:40
-------------------------------------------------------------------------------
Current Time: Thursday, 12-May-2022 21:21:57 -05
Restart Time: Thursday, 12-May-2022 14:48:14 -05
Parent Server Config. Generation: 1
Parent Server MPM Generation: 0
Server uptime: 6 hours 33 minutes 42 seconds
Server load: 0.71 1.53 0.93
Total accesses: 0 - Total Traffic: 0 kB - Total Duration: 0
CPU Usage: u.13 s.36 cu0 cs0 - .00207% CPU load
0 requests/sec - 0 B/second
1 requests currently being processed, 4 idle workers
W____...........................................................
................................................................
......................
Scoreboard Key:
"_" Waiting for Connection, "S" Starting up, "R" Reading Request,
"W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
"C" Closing connection, "L" Logging, "G" Gracefully finishing,
"I" Idle cleanup of worker, "." Open slot with no current process