Lab 3.1. Apache Web Server Status
Hello, everyone! This is yc, I am new here and am using Linux Mint.
I understand that Lab 3.1 will let me practise using systemctl to monitor and control the state of the Apache Web Server (apache2 or httpd, depending on my distribution). I do not know what to do with the following results from my Terminal:
yc@W530:~$ sudo systemctl status httpd
[sudo] password for yc:
Unit httpd.service could not be found.
yc@W530:~$ sudo systemctl status apache2
Unit apache2.service could not be found.
yc@W530:~$
Would anyone guide me how to take it further from here please?
Answers
-
Hi,
It looks like this post is in the incorrect forum. Can you please advise what course is this about?
Thank you,
Flavia0 -
Since Linux Mint is a Debian-based distribution, it uses apache2. However, based on your output, it looks like the Apache Web Server isn't installed on the system yet. You will need to first install it and them attempt the lab again.
0 -
Dear Flavia
Thank you for responding to me. My replies:
- "Can you please advise what course is this about?" - it is from the "Introduction to Linux (LSF101)", see the attached screenshot.
- How to install the apache2? Could you guide me please.
0 -
Dear @Yin Chen LEE
Apache just isn't installed yet on the system. Please follow below commands to install and practice the commands further.
- sudo apt update
- sudo apt install apache2
- systemctl status apache2
- curl -I localhost
- sudo systemctl stop apache2
- sudo systemctl start apache2
- sudo systemctl restart apache2
- sudo systemctl reload apache2 # re-read config, no dropped connections
- sudo systemctl disable apache2 # don't start at boot
- sudo systemctl enable apache2 # start at boot
- systemctl is-active apache2
- systemctl is-enabled apache2
0
Categories
- All Categories
- 178 LFX Mentorship
- 178 LFX Mentorship: Linux Kernel
- 772 Linux Foundation IT Professional Programs
- 382 Cloud Engineer IT Professional Program
- 175 Advanced Cloud Engineer IT Professional Program
- 75 DevOps IT Professional Program - Discontinued
- 7 DevOps & GitOps IT Professional Program
- 102 Cloud Native Developer IT Professional Program
- 7.6K Training Courses & Learning Paths
- 7 AI & ML Training
- 1 Blockchain & Decentralized Identity Training
- 19 Cloud & Containers Training
- 2 Cybersecurity Training
- 2 DevOps & Site-Reliability Training
- 1 Linux Kernel Development Training
- 2 Networking Training
- 2 Open Source Best Practice Training
- 5 System Administration Training
- 1 System Engineering Training
- 3 Web & Application Development Training
- 797 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 96 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 91 Storage
- 771 Linux Distributions
- 81 Debian
- 68 Fedora
- 23 Linux Mint
- 13 Mageia
- 24 openSUSE
- 151 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 467 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 99 Linux Security
- 79 Network Management
- 101 System Management
- 46 Web Management
- 135 Mobile Computing
- 20 Android
- 100 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 402 Off Topic
- 125 Introductions
- 33 Study Material
- 1K Programming and Development
- 310 Kernel Development
- 709 Software Development
- 1K Software
- 415 Applications
- 182 Command Line
- 5 Compiling/Installing
- 71 Games
- 319 Installation
- Archived
- 183 Small Talk
- 2 LFD140 Class Forum
- 1.4K LFS258 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)

