mirror of
https://github.com/teddysun/lamp.git
synced 2026-04-11 23:38:31 +00:00
update apache 2.4 compile option
enable all modules for apache 2.4 as much as possible update some dependencies installation sequence Signed-off-by: Teddysun <i@teddysun.com>
This commit is contained in:
@@ -39,18 +39,8 @@ apache_preinstall_settings(){
|
||||
--with-included-apr \
|
||||
--with-ssl=${openssl_location} \
|
||||
--with-nghttp2 \
|
||||
--enable-http2 \
|
||||
--enable-so \
|
||||
--enable-dav \
|
||||
--enable-suexec \
|
||||
--enable-deflate=shared \
|
||||
--enable-ssl=shared \
|
||||
--enable-expires=shared \
|
||||
--enable-headers=shared \
|
||||
--enable-rewrite=shared \
|
||||
--enable-static-support \
|
||||
--enable-modules=all \
|
||||
--enable-mods-shared=all"
|
||||
--enable-modules=reallyall \
|
||||
--enable-mods-shared=reallyall"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
@@ -60,10 +50,10 @@ install_apache(){
|
||||
|
||||
if check_sys packageManager apt;then
|
||||
apt-get -y remove apache2 apache2-doc apache2-utils apache2.2-common apache2.2-bin apache2-mpm-prefork apache2-doc apache2-mpm-worker
|
||||
apt-get -y install libssl-dev lynx
|
||||
apt-get -y install libssl-dev libxml2-dev lynx
|
||||
elif check_sys packageManager yum;then
|
||||
yum -y remove httpd*
|
||||
yum -y install zlib-devel openssl openssl-devel lynx
|
||||
yum -y install zlib-devel openssl openssl-devel libxml2-devel lynx
|
||||
fi
|
||||
|
||||
if [ "$apache" == "${apache2_2_filename}" ];then
|
||||
|
||||
@@ -88,8 +88,8 @@ install_php_depends(){
|
||||
apt_depends=(
|
||||
m4 autoconf bison libbz2-dev libgmp-dev libicu-dev libsasl2-dev libsasl2-modules-ldap
|
||||
libldap-2.4-2 libldap2-dev libldb-dev libpam0g-dev libcurl4-gnutls-dev snmp libsnmp-dev
|
||||
autoconf2.13 libxml2-dev openssl pkg-config libxslt1-dev zlib1g-dev libpcre3-dev libtool
|
||||
libjpeg-dev libpng12-dev libfreetype6-dev libmhash-dev libmcrypt-dev libssl-dev patch
|
||||
autoconf2.13 openssl pkg-config libxslt1-dev zlib1g-dev libpcre3-dev libtool
|
||||
libjpeg-dev libpng12-dev libfreetype6-dev libmhash-dev libmcrypt-dev patch
|
||||
)
|
||||
for depend in ${apt_depends[@]}
|
||||
do
|
||||
@@ -123,7 +123,7 @@ install_php_depends(){
|
||||
|
||||
yum_depends=(
|
||||
m4 autoconf bison bzip2-devel pam-devel gmp-devel libicu-devel openldap openldap-devel patch
|
||||
libxml2-devel openssl openssl-devel zlib-devel curl-devel pcre-devel libtool-libs libtool-ltdl-devel
|
||||
curl-devel pcre-devel libtool-libs libtool-ltdl-devel
|
||||
libjpeg-devel libpng-devel freetype-devel libxslt libxslt-devel
|
||||
net-snmp net-snmp-devel net-snmp-utils net-snmp-perl
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user