"Problem log" some problems with Linux installation Apache

Source: Internet
Author: User

The following are some of the problems that you encounter when installing Apache on Linux, which are recorded here, and will be updated occasionally when you encounter them ...
One. Installation ApacheTips APRWorkaround for not found

Workaround:

1. website http://apr.apache.org/download.cgi download apr-1.5.1.tar.gz ,apr-util-1.5.4.tar.gz

2. website http://www.pcre.org/download pcre-8.36.tar.gz

3. Unzip, install

Related commands:

1 [[email protected] ~]#  tar-zxvf xxx.tar.gz2 [[email protected] ~]#  . /configure--prefix=path  //path for installation path 3 [[email protected] ~]#  make4 [[ Email protected] ~]# make install

4. Apache sets the location of the specified library

1 [[email protected] ~]#  /configure--prefix=/usr/local/httpd-2.4.10 --with-apr =apr-path  --with-apr-util=aprutil-path  --with-pcre=pcre-path  --enable-so  //change path to the respective installation path 

5. Make && make install

Second,/xxx/httpd-2.4.x/support/ab.c:2273:undefined reference to ' Tlsv1_2_client_method ',/XXX/HTTPD-2.4.X/SUPPORT/AB.C : 2271:undefined reference to ' Tlsv1_1_client_method '

Error log:

...
function ' main ':/xxx/httpd-2.4.x/support/ab.c:2273: undefined reference to ' Tlsv1_2_client_method '/xxx/ httpd-2.4.x/support/ab.c:2271: Undefined reference to ' Tlsv1_1_client_method ' Collect2:ld returned 1 exit STATUSMAKE[2]: * * * [AB] Error 1make[2]: Leaving directory '/xxx/httpd-2.4.x/support' make[1]: * * * [all-recursive ] Error 1make[1]: Leaving directory '/xxx/httpd-2.4.x/support' Make: * * * [all-recursive] Error 1

Workaround:

OPEN-SSL Library has a problem, need to add when installing

1 [[Email protected] ~]#  ./config-fpic--prefix=path enable-shared2 [[email protected] ~]# c3>./config-t3 [[email protected] ~]# make depend4 [[email protected] ~]#   make 5 [[Email protected] ~]#6 [[email protected] ~]# make install

Then when installing Apache, specify

1 [[email protected] ~]#  /configure--prefix=/usr/local/httpd-2.4.10  --with-ssl= Openssl-path--enable-so

III. Relocation R_X86_64_32 against ' a local symbol ' can not is used when making a shared object; Recompile with-fpic

Error log:

1MAKE[4]: Entering directory '/home/zfh/httpd-2.2.9/modules/Filters '2/home/user/httpd-2.2.9/srclib/apr/libtool--silent--mode=link gcc-g-o2-pthread-l/usr/local/zlib//lib-o mod_d Eflate.la-rpath/usr/local/apache2/modules-module-avoid-version Mod_deflate.lo-LZ3/USR/BIN/LD:/usr/local/zlib//lib/libz.a (CRC32.O): Relocation r_x86_64_32 against ' a local symbol ' can not is used when MA King a shared object; Recompile with-FPIC4/usr/local/zlib//lib/libz.a:could Not read Symbols:bad value //Note this line 5Collect2:ld returned 1Exit Status6MAKE[4]: * * * [mod_deflate.la] Error 17MAKE[4]: Leaving directory '/home/zfh/httpd-2.2.9/modules/Filters '8MAKE[3]: * * * [shared-build-recursive] Error 19MAKE[3]: Leaving directory '/home/zfh/httpd-2.2.9/modules/Filters 'TenMAKE[2]: * * * [shared-build-recursive] Error 1 OneMAKE[2]: Leaving directory '/home/zfh/httpd-2.2.9/Modules ' AMAKE[1]: * * * [shared-build-recursive] Error 1 -MAKE[1]: Leaving directory '/home/zfh/httpd-2.2.9' -Make: * * * [all-recursive] Error 1 the[[email protected] httpd-2.2.9]# 

There is a problem with the zlib library, there is a hint in the error recompile with-FPIC is added-fPIC to compile.

Workaround:

1. Locate the Zlib source installation package, or download one directly. Address: http://www.zlib.net/

2. Execute the following related commands

[[Email protected] ~] # TAR-ZXVF zlib-1.2.3.tar.gz [[Email protected] ~] # CD zlib-1.2.3 [[Email protected] ~] # ./configure--prefix=path//path for a custom installation path [[Email protected] ~] # VI Makefile [[Email protected] ~] # Find Cflags=-o3-duse_mmap [[Email protected] ~] # by adding-fpic to the back, it becomes cflags=-o3-duse_mmap-fpic. [[Email protected] ~] # Make && make install

3. Install Apache, add--with-zlib-1.2.3=zlib-path parameter

1 [[Email protected] ~]#  /configure--prefix=/usr/local/httpd-2.4.10 --with-zlib-1.2.3= Zlib-path  --enable-so  //change path to the respective installation path

Not to be continued ...

"Problem log" some problems with Linux installation Apache

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.