1 Answer
- Newest
- Most votes
- Most comments
0
Hello,
The systemctl command is provided by the systemd package which is not available on Amazon Linux 2018.03.
Instead you can use the service command to restart the Apache server.
sudo service httpd restart
I recommend to check the configuration first.
sudo service httpd configtest
To use systemd with Amazon Linux, you can use Amazon Linux 2 with provides systemd and the systemctl command https://aws.amazon.com/amazon-linux-2/.
Thanks,
Paul
answered 5 years ago
Relevant content
- asked 2 years ago
- Accepted Answerasked a month ago
- Accepted Answerasked a year ago
- asked a year ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 9 months ago