Apache not starting with mod_session_crypto Announcing the arrival of Valued Associate #679:...

Why are there no cargo aircraft with "flying wing" design?

Models of set theory where not every set can be linearly ordered

Doubts about chords

How do I determine if the rules for a long jump or high jump are applicable for Monks?

What are the pros and cons of Aerospike nosecones?

How to deal with a team lead who never gives me credit?

Do I really need recursive chmod to restrict access to a folder?

Is above average number of years spent on PhD considered a red flag in future academia or industry positions?

Using et al. for a last / senior author rather than for a first author

Is there a Spanish version of "dot your i's and cross your t's" that includes the letter 'ñ'?

Right-skewed distribution with mean equals to mode?

Is 1 ppb equal to 1 μg/kg?

What do you call a plan that's an alternative plan in case your initial plan fails?

What's the purpose of writing one's academic bio in 3rd person?

Should I call the interviewer directly, if HR aren't responding?

Gastric acid as a weapon

How can players work together to take actions that are otherwise impossible?

Why is "Consequences inflicted." not a sentence?

Antler Helmet: Can it work?

How widely used is the term Treppenwitz? Is it something that most Germans know?

How do I mention the quality of my school without bragging

What makes black pepper strong or mild?

When to stop saving and start investing?

Sorting numerically



Apache not starting with mod_session_crypto



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Come Celebrate our 10 Year Anniversary!Apache Failure on Centos 7 not startingHttp request blocked on port 80Failed to start HTTP/2 ProxyApache sometimes not starting after rebootI can't start Apache with module mod_jkApache Wont Start with SSL (Mis?)ConfiguredApache crashed/not starting up while using Public IPApache won't start with systemdI get this error “Active: failed ” from the Process: 9666 ExecStart=/etc/init.d/apache2 start (code=exited, status=2)?Why is Apache trying to kill a process on startup and why would that cause a failure for Apache to start?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















When I enable mod_session_crypto by uncommenting it from the config, apache server fails to start. I found the following error from the journalctl:



Jan 09 12:27:39 dbserver1 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Jan 09 12:27:39 dbserver1 kill[18321]: kill: cannot find process ""
Jan 09 12:27:39 dbserver1 systemd[1]: httpd.service: control process exited, code=exited status=1
Jan 09 12:27:39 dbserver1 systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has failed.
--
-- The result is failed.
Jan 09 12:27:39 dbserver1 systemd[1]: Unit httpd.service entered failed state.
Jan 09 12:27:39 dbserver1 systemd[1]: httpd.service failed.
Jan 09 12:27:39 dbserver1 polkitd[1053]: Unregistered Authentication Agent for unix-process:18219:214619083 (system bus name :1


I cannot figure out what's wrong from it.



When I disable the mod_session_crypto, mod_auth_form is not creating cookie - seems like it's refusing to create a cookie with unencrypted username and password when I use AuthProvider ldap. Worked fine with AuthProvider basic.



This setting worked just fine on my other computer I use for development.



Dev PC (works):

CentOS 7.4.1708

Apache 2.4.6-67.el7

mod_session 2.4.6-67.el7



Production PC (doesn't start):

CentOS 7.5.1808

Apache 2.4.6-80.el7

mod_session 2.4.6-80.el7



As you can see there's a slight difference in OS version. Beside that, I cannot find anything different.










share|improve this question























  • The first place you should be looking is in the apache error_log.

    – symcbean
    Jan 9 at 12:51











  • You are right. I found the following in it: The crypto library 'openssl' could not be loaded. I didn't think it would write into the log file without successfully starting.

    – bmakan
    Jan 9 at 13:23


















0















When I enable mod_session_crypto by uncommenting it from the config, apache server fails to start. I found the following error from the journalctl:



Jan 09 12:27:39 dbserver1 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Jan 09 12:27:39 dbserver1 kill[18321]: kill: cannot find process ""
Jan 09 12:27:39 dbserver1 systemd[1]: httpd.service: control process exited, code=exited status=1
Jan 09 12:27:39 dbserver1 systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has failed.
--
-- The result is failed.
Jan 09 12:27:39 dbserver1 systemd[1]: Unit httpd.service entered failed state.
Jan 09 12:27:39 dbserver1 systemd[1]: httpd.service failed.
Jan 09 12:27:39 dbserver1 polkitd[1053]: Unregistered Authentication Agent for unix-process:18219:214619083 (system bus name :1


I cannot figure out what's wrong from it.



When I disable the mod_session_crypto, mod_auth_form is not creating cookie - seems like it's refusing to create a cookie with unencrypted username and password when I use AuthProvider ldap. Worked fine with AuthProvider basic.



This setting worked just fine on my other computer I use for development.



Dev PC (works):

CentOS 7.4.1708

Apache 2.4.6-67.el7

mod_session 2.4.6-67.el7



Production PC (doesn't start):

CentOS 7.5.1808

Apache 2.4.6-80.el7

mod_session 2.4.6-80.el7



As you can see there's a slight difference in OS version. Beside that, I cannot find anything different.










share|improve this question























  • The first place you should be looking is in the apache error_log.

    – symcbean
    Jan 9 at 12:51











  • You are right. I found the following in it: The crypto library 'openssl' could not be loaded. I didn't think it would write into the log file without successfully starting.

    – bmakan
    Jan 9 at 13:23














0












0








0








When I enable mod_session_crypto by uncommenting it from the config, apache server fails to start. I found the following error from the journalctl:



Jan 09 12:27:39 dbserver1 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Jan 09 12:27:39 dbserver1 kill[18321]: kill: cannot find process ""
Jan 09 12:27:39 dbserver1 systemd[1]: httpd.service: control process exited, code=exited status=1
Jan 09 12:27:39 dbserver1 systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has failed.
--
-- The result is failed.
Jan 09 12:27:39 dbserver1 systemd[1]: Unit httpd.service entered failed state.
Jan 09 12:27:39 dbserver1 systemd[1]: httpd.service failed.
Jan 09 12:27:39 dbserver1 polkitd[1053]: Unregistered Authentication Agent for unix-process:18219:214619083 (system bus name :1


I cannot figure out what's wrong from it.



When I disable the mod_session_crypto, mod_auth_form is not creating cookie - seems like it's refusing to create a cookie with unencrypted username and password when I use AuthProvider ldap. Worked fine with AuthProvider basic.



This setting worked just fine on my other computer I use for development.



Dev PC (works):

CentOS 7.4.1708

Apache 2.4.6-67.el7

mod_session 2.4.6-67.el7



Production PC (doesn't start):

CentOS 7.5.1808

Apache 2.4.6-80.el7

mod_session 2.4.6-80.el7



As you can see there's a slight difference in OS version. Beside that, I cannot find anything different.










share|improve this question














When I enable mod_session_crypto by uncommenting it from the config, apache server fails to start. I found the following error from the journalctl:



Jan 09 12:27:39 dbserver1 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Jan 09 12:27:39 dbserver1 kill[18321]: kill: cannot find process ""
Jan 09 12:27:39 dbserver1 systemd[1]: httpd.service: control process exited, code=exited status=1
Jan 09 12:27:39 dbserver1 systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has failed.
--
-- The result is failed.
Jan 09 12:27:39 dbserver1 systemd[1]: Unit httpd.service entered failed state.
Jan 09 12:27:39 dbserver1 systemd[1]: httpd.service failed.
Jan 09 12:27:39 dbserver1 polkitd[1053]: Unregistered Authentication Agent for unix-process:18219:214619083 (system bus name :1


I cannot figure out what's wrong from it.



When I disable the mod_session_crypto, mod_auth_form is not creating cookie - seems like it's refusing to create a cookie with unencrypted username and password when I use AuthProvider ldap. Worked fine with AuthProvider basic.



This setting worked just fine on my other computer I use for development.



Dev PC (works):

CentOS 7.4.1708

Apache 2.4.6-67.el7

mod_session 2.4.6-67.el7



Production PC (doesn't start):

CentOS 7.5.1808

Apache 2.4.6-80.el7

mod_session 2.4.6-80.el7



As you can see there's a slight difference in OS version. Beside that, I cannot find anything different.







apache-2.4






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 9 at 12:16









bmakanbmakan

163




163













  • The first place you should be looking is in the apache error_log.

    – symcbean
    Jan 9 at 12:51











  • You are right. I found the following in it: The crypto library 'openssl' could not be loaded. I didn't think it would write into the log file without successfully starting.

    – bmakan
    Jan 9 at 13:23



















  • The first place you should be looking is in the apache error_log.

    – symcbean
    Jan 9 at 12:51











  • You are right. I found the following in it: The crypto library 'openssl' could not be loaded. I didn't think it would write into the log file without successfully starting.

    – bmakan
    Jan 9 at 13:23

















The first place you should be looking is in the apache error_log.

– symcbean
Jan 9 at 12:51





The first place you should be looking is in the apache error_log.

– symcbean
Jan 9 at 12:51













You are right. I found the following in it: The crypto library 'openssl' could not be loaded. I didn't think it would write into the log file without successfully starting.

– bmakan
Jan 9 at 13:23





You are right. I found the following in it: The crypto library 'openssl' could not be loaded. I didn't think it would write into the log file without successfully starting.

– bmakan
Jan 9 at 13:23










1 Answer
1






active

oldest

votes


















1














Thanks to the symcbean's tip, I found the following error message logged in the apache error log:



[Wed Jan 09 12:49:53.410386 2019] [session_crypto:error] [pid 30523] (20019)DSO load failed: AH01845: The crypto library 'openssl' could not be loaded: /usr/lib64/apr-util-1/apr_crypto_openssl-1.so: cannot open shared object file: No such file or directory (apr_crypto_openssl-1.so: 0)


According to the bug report here, all that's needed is to install apr-util-openssl package, e.g. with yum install apr-util-openssl.






share|improve this answer


























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "2"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f948241%2fapache-not-starting-with-mod-session-crypto%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    Thanks to the symcbean's tip, I found the following error message logged in the apache error log:



    [Wed Jan 09 12:49:53.410386 2019] [session_crypto:error] [pid 30523] (20019)DSO load failed: AH01845: The crypto library 'openssl' could not be loaded: /usr/lib64/apr-util-1/apr_crypto_openssl-1.so: cannot open shared object file: No such file or directory (apr_crypto_openssl-1.so: 0)


    According to the bug report here, all that's needed is to install apr-util-openssl package, e.g. with yum install apr-util-openssl.






    share|improve this answer






























      1














      Thanks to the symcbean's tip, I found the following error message logged in the apache error log:



      [Wed Jan 09 12:49:53.410386 2019] [session_crypto:error] [pid 30523] (20019)DSO load failed: AH01845: The crypto library 'openssl' could not be loaded: /usr/lib64/apr-util-1/apr_crypto_openssl-1.so: cannot open shared object file: No such file or directory (apr_crypto_openssl-1.so: 0)


      According to the bug report here, all that's needed is to install apr-util-openssl package, e.g. with yum install apr-util-openssl.






      share|improve this answer




























        1












        1








        1







        Thanks to the symcbean's tip, I found the following error message logged in the apache error log:



        [Wed Jan 09 12:49:53.410386 2019] [session_crypto:error] [pid 30523] (20019)DSO load failed: AH01845: The crypto library 'openssl' could not be loaded: /usr/lib64/apr-util-1/apr_crypto_openssl-1.so: cannot open shared object file: No such file or directory (apr_crypto_openssl-1.so: 0)


        According to the bug report here, all that's needed is to install apr-util-openssl package, e.g. with yum install apr-util-openssl.






        share|improve this answer















        Thanks to the symcbean's tip, I found the following error message logged in the apache error log:



        [Wed Jan 09 12:49:53.410386 2019] [session_crypto:error] [pid 30523] (20019)DSO load failed: AH01845: The crypto library 'openssl' could not be loaded: /usr/lib64/apr-util-1/apr_crypto_openssl-1.so: cannot open shared object file: No such file or directory (apr_crypto_openssl-1.so: 0)


        According to the bug report here, all that's needed is to install apr-util-openssl package, e.g. with yum install apr-util-openssl.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 10 mins ago









        Pang

        15316




        15316










        answered Jan 9 at 13:29









        bmakanbmakan

        163




        163






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Server Fault!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f948241%2fapache-not-starting-with-mod-session-crypto%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            As a Security Precaution, the user account has been locked The Next CEO of Stack OverflowMS...

            117736 Шеррод Примітки | Див. також | Посилання | Навігаційне...

            Маріан Котлеба Зміст Життєпис | Політичні погляди |...