Ad Widget

Collapse

Problem with installing ssl

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lestho
    Junior Member
    • Dec 2021
    • 4

    #1

    Problem with installing ssl

    Hi,

    my server has been working for about 6 months without problems. Now I want to switch to https, I have found the following instructions for this:

    However, when I get to the point "Restart the Apache service to apply the changes:", I get an error:

    [root@appliance ~]# sudo systemctl status httpd
    ● httpd.service - The Apache HTTP Server
    Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
    Drop-In: /usr/lib/systemd/system/httpd.service.d
    └─php-fpm.conf
    Active: failed (Result: exit-code) since Thu 2021-12-23 13:57:39 UTC; 5min ago
    Docs: man:httpd.service(8)
    Process: 53767 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
    Main PID: 53767 (code=exited, status=1/FAILURE)
    Status: "Reading configuration..."

    Dec 23 13:57:39 appliance systemd[1]: Starting The Apache HTTP Server...
    Dec 23 13:57:39 appliance httpd[53767]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
    Dec 23 13:57:39 appliance httpd[53767]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
    Dec 23 13:57:39 appliance httpd[53767]: no listening sockets available, shutting down
    Dec 23 13:57:39 appliance httpd[53767]: AH00015: Unable to open logs
    Dec 23 13:57:39 appliance systemd[1]: httpd.service: Main process exited, code=exited, status=1/FAILURE
    Dec 23 13:57:39 appliance systemd[1]: httpd.service: Failed with result 'exit-code'.
    Dec 23 13:57:39 appliance systemd[1]: Failed to start The Apache HTTP Server.
    [root@appliance ~]# systemctl restart httpd.service
    Job for httpd.service failed because the control process exited with error code.
    See "systemctl status httpd.service" and "journalctl -xe" for details.

    this is the journalctl -xe:
    [root@appliance ~]#
    journalctl -xe
    -- The result is failed.
    Dec 23 13:57:39 appliance sudo[53764]: pam_unix(sudo:session): session closed for user root
    Dec 23 14:01:01 appliance CROND[53915]: (root) CMD (run-parts /etc/cron.hourly)
    Dec 23 14:01:01 appliance run-parts[53918]: (/etc/cron.hourly) starting 0anacron
    Dec 23 14:01:01 appliance run-parts[53924]: (/etc/cron.hourly) finished 0anacron
    Dec 23 14:01:11 appliance sudo[53937]: PAM unable to dlopen(/usr/lib64/security/pam_sss.so): /usr/lib64/security/pam_sss.so: cannot open shared object file: No such file or directory
    Dec 23 14:01:11 appliance sudo[53937]: PAM adding faulty module: /usr/lib64/security/pam_sss.so
    Dec 23 14:01:49 appliance sudo[53997]: PAM unable to dlopen(/usr/lib64/security/pam_sss.so): /usr/lib64/security/pam_sss.so: cannot open shared object file: No such file or directory
    Dec 23 14:01:49 appliance sudo[53997]: PAM adding faulty module: /usr/lib64/security/pam_sss.so
    Dec 23 14:01:49 appliance sudo[53997]: root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/bin/systemctl stop http.service
    Dec 23 14:01:49 appliance sudo[53997]: pam_systemd(sudo:session): Cannot create session: Already running in a session or user slice
    Dec 23 14:01:49 appliance sudo[53997]: pam_unix(sudo:session): session opened for user root by root(uid=0)
    Dec 23 14:01:49 appliance sudo[53997]: pam_unix(sudo:session): session closed for user root
    Dec 23 14:02:02 appliance network[54033]: You are using 'network' service provided by 'network-scripts', which are now deprecated.
    Dec 23 14:02:02 appliance network[54034]: 'network-scripts' will be removed in one of the next major releases of RHEL.
    Dec 23 14:02:02 appliance network[54035]: It is advised to switch to 'NetworkManager' instead for network management.
    Dec 23 14:02:28 appliance sudo[54039]: PAM unable to dlopen(/usr/lib64/security/pam_sss.so): /usr/lib64/security/pam_sss.so: cannot open shared object file: No such file or directory
    Dec 23 14:02:28 appliance sudo[54039]: PAM adding faulty module: /usr/lib64/security/pam_sss.so
    Dec 23 14:02:28 appliance sudo[54039]: root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/sbin/service --status-all
    Dec 23 14:02:28 appliance sudo[54039]: pam_systemd(sudo:session): Cannot create session: Already running in a session or user slice
    Dec 23 14:02:28 appliance sudo[54039]: pam_unix(sudo:session): session opened for user root by root(uid=0)
    Dec 23 14:02:28 appliance network[54060]: You are using 'network' service provided by 'network-scripts', which are now deprecated.
    Dec 23 14:02:28 appliance network[54061]: 'network-scripts' will be removed in one of the next major releases of RHEL.
    Dec 23 14:02:28 appliance network[54062]: It is advised to switch to 'NetworkManager' instead for network management.
    Dec 23 14:02:28 appliance sudo[54039]: pam_unix(sudo:session): session closed for user root
    Dec 23 14:03:01 appliance sudo[54085]: PAM unable to dlopen(/usr/lib64/security/pam_sss.so): /usr/lib64/security/pam_sss.so: cannot open shared object file: No such file or directory
    Dec 23 14:03:01 appliance sudo[54085]: PAM adding faulty module: /usr/lib64/security/pam_sss.so
    Dec 23 14:03:01 appliance sudo[54085]: root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/bin/systemctl status http
    Dec 23 14:03:01 appliance sudo[54085]: pam_systemd(sudo:session): Cannot create session: Already running in a session or user slice
    Dec 23 14:03:01 appliance sudo[54085]: pam_unix(sudo:session): session opened for user root by root(uid=0)
    Dec 23 14:03:01 appliance sudo[54085]: pam_unix(sudo:session): session closed for user root
    Dec 23 14:03:04 appliance sudo[54088]: PAM unable to dlopen(/usr/lib64/security/pam_sss.so): /usr/lib64/security/pam_sss.so: cannot open shared object file: No such file or directory
    Dec 23 14:03:04 appliance sudo[54088]: PAM adding faulty module: /usr/lib64/security/pam_sss.so
    Dec 23 14:03:04 appliance sudo[54088]: root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/bin/systemctl status httpd
    Dec 23 14:03:04 appliance sudo[54088]: pam_systemd(sudo:session): Cannot create session: Already running in a session or user slice
    Dec 23 14:03:04 appliance sudo[54088]: pam_unix(sudo:session): session opened for user root by root(uid=0)
    Dec 23 14:03:04 appliance sudo[54088]: pam_unix(sudo:session): session closed for user root
    Dec 23 14:07:48 appliance systemd[1]: Starting The Apache HTTP Server...
    -- Subject: Unit httpd.service has begun start-up
    -- Defined-By: systemd
    -- Support: https://access.redhat.com/support
    --
    -- Unit httpd.service has begun starting up.
    Dec 23 14:07:48 appliance httpd[54188]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
    Dec 23 14:07:48 appliance httpd[54188]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
    Dec 23 14:07:48 appliance httpd[54188]: no listening sockets available, shutting down
    Dec 23 14:07:48 appliance httpd[54188]: AH00015: Unable to open logs
    Dec 23 14:07:48 appliance systemd[1]: httpd.service: Main process exited, code=exited, status=1/FAILURE
    Dec 23 14:07:48 appliance systemd[1]: httpd.service: Failed with result 'exit-code'.
    -- Subject: Unit failed
    -- Defined-By: systemd
    -- Support: https://access.redhat.com/support
    --
    -- The unit httpd.service has entered the 'failed' state with result 'exit-code'.
    Dec 23 14:07:48 appliance systemd[1]: Failed to start The Apache HTTP Server.
    -- Subject: Unit httpd.service has failed
    -- Defined-By: systemd
    -- Support: https://access.redhat.com/support
    --
    -- Unit httpd.service has failed.
    --
    -- The result is failed.

    Who can help me?

    Thank
    Thomas
Working...