How to get into apache web?

Viewed 21

I am using AWS ec2 to build my WordPress. However, when I try to get in Apache environment. Firstly I type:

start httpd.service

it shows:

Failed to start httpd.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
See system logs and 'systemctl status httpd.service' for details.

then I type

systemctl start httpd.service

it shows:

httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
   Active: active (running) since Mon 2022-09-19 13:51:43 UTC; 33min ago
     Docs: man:httpd.service(8)
 Main PID: 32693 (httpd)
   Status: "Total requests: 2; Idle/Busy workers 100/0;Requests/sec: 0.00099; Bytes served/sec:   2 B/sec"
   CGroup: /system.slice/httpd.service
           ├─32693 /usr/sbin/httpd -DFOREGROUND
           ├─32694 /usr/sbin/httpd -DFOREGROUND
           ├─32695 /usr/sbin/httpd -DFOREGROUND
           ├─32696 /usr/sbin/httpd -DFOREGROUND
           ├─32697 /usr/sbin/httpd -DFOREGROUND
           ├─32698 /usr/sbin/httpd -DFOREGROUND
           └─32741 /usr/sbin/httpd -DFOREGROUND

Sep 19 13:51:43 ip-172-***.us-west-1.compute.internal systemd[1]: Starting The Apache HTTP Server...
Sep 19 13:51:43 ip-172-***.us-west-1.compute.internal systemd[1]: Started The Apache HTTP Server.
[ec2-user@ip-172-*** ~]$ ^C
[ec2-user@ip-172-*** ~]$ ^C
[ec2-user@ip-172-*** ~]$ Failed to start httpd.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
-bash: Failed: command not found
0 Answers
Related