开发者社区> 问答> 正文

LAMP一键安装包加装modssl

紧急求助!!!


我现在的服务器是当时用阿里提供的一键安装包装的,apache的版本选择了2.2.22,缺省没带mod_ssl。
而现在项目要求HTTPS。尝试过从 modssl.org下载单独的mod_ssl包进行单独编译安装,报错。



./configure --with-apache=/alidata/server/httpd/bin/ --with-ssl=/usr/bin/openssl
Configuring mod_ssl/2.8.31 for Apache/1.3.41
./configure:Error: Cannot find Apache 1.3 source tree under /alidata/server/httpd/bin/
./configure:Hint:  Please specify location via --with-apache=DIR


还试过把apache加上“enable-ssl”单独重新安装一遍,好像也不行。



./configure --prefix=/alidata/server/httpd \
--with-mpm=prefork \
--enable-so \
--enable-rewrite \
--enable-mods-shared=all \
--enable-nonportable-atomics=yes \
--disable-dav \
--enable-deflate \
--enable-cache \
--enable-disk-cache \
--enable-mem-cache \
--enable-file-cache
--enable-ssl
--enable-so
CPU_NUM=$(cat /proc/cpuinfo | grep processor | wc -l)
if [ $CPU_NUM -gt 1 ];then
    make -j$CPU_NUM
else
    make
fi
make install
cp support/apachectl /etc/init.d/httpd
chmod u+x /etc/init.d/httpd
cd ..
/etc/init.d/httpd start




求大侠指教。

展开
收起
himyblue 2015-01-04 21:41:23 7771 0
0 条回答
写回答
取消 提交回答
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载