Score:0

http_ssl_module failed to install when compile from source code of nginx

mc flag
Jia

I am trying to setup my https using certbot , so I need to recompile ngx adding '--with-http_ssl_module', here is the complete steps:

 - sudo make clean  sudo  
 - ./auto/configure --prefix=/var/www/html
   --sbin-path=/usr/sbin/nginx --conf- path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log
       --error-log-path=/var/log/nginx/error.log --with-pcre --with-http_ssl_module  --lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid --modules-path=/etc/nginx/modules 
 - check Makefile , I can see 'http_ssl_module' added in objs/Makefile
 - ./auto/configure sudo make sudo make install

After completed all steps above(no error observed) I checked 'ngx_modules.o'(still missing ssl module) and ran command below

sudo certbot --nginx -d feedme.pub 
Saving debug log to /var/log/letsencrypt/letsencrypt.log 
The nginx plugin is not working; there may be problems with your existing configuration. 
The error was: PluginError('Nginx build is missing SSL module (--with-http_ssl_module).') 

Also , I checked my ssl lib- libssl is intalled:

ldconfig -p | grep libssl
    libssl3.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libssl3.so
    libssl.so.1.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libssl.so.1.1
    libssl.so.1.0.0 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0
    libssl.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libssl.so

Anyone can help to answer why I am not able to build '--with-http_ssl_module' in ?

Michael Hampton avatar
cz flag
Why are you compiling nginx from source code?!
anx avatar
fr flag
anx
You probably want to stick to the compile options your distribution uses.. who knows what else is different.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.