Linux installation httpd52.4.10

Source: Internet
Author: User

1.

Cd/mnt

Tar zxvf httpd-2.4.10.tar.gz

./configure--prefix=/mnt/apache2--enable-dav--enable-modules=so

1.4. 0  is 1.3. 9

Solution: Install Apr and apr-utils
909tar ZXVF apr-1.5.1.tar.gz
910 CD apr-1.5.1
911./configure
912 Make
913 make Install

-------------

916 Tar zxvf apr-util-1.5.4.tar.gz
917 CD apr-util-1.5.4
918./configure--WITH-APR=/USR/LOCAL/APR
919 make
920 make Install

-------------------------------------------------

2. Reinstall httpd

./configure--prefix=/mnt/apache2--enable-dav--enable-modules=so--enable-maintainer-mode--enable-rewrite-- With-apr=/usr/local/apr/bin/apr-1-config--with-apr-util=/usr/local/apr/bin/apu-1-config

Pcre missing, not found

Solution: Yum Install pcre-devel-y

3. Make

make[31/usr/bin/ld:/usr/local/lib/libz.a (CRC32.O): Relocation r_x86_64_32 against '. Rodata'  can not is used when making a shared object; Recompile with-fpic

Solution: Recompile zlib in 64-bit fashion
961 Tar zxvf zlib-1.2.3.tar.gz
962 CD zlib-1.2.3
963 cflags= "-o3-fpic"./configure
964 make
965 make Install
966 Make clean

4. Finally recompile

967 CD.
968 CD httpd-2.4.10
969./configure--prefix=/mnt/apache2--enable-dav--enable-maintainer-mode--enable-rewrite--with-apr=/usr/local/ Apr/bin/apr-1-config--with-apr-util=/usr/local/apr/bin/apu-1-config
970 make
971 make Install
972 Pstree-p

5. Starting/mnt/apache2/bin/apachectl Start

Httpd:could not reliably determine the server's fully qualified domain name

Solution: HHTPD in Apache's installation directory. Conf file modified as follows "CD apache2/conf ls a bit"
(1) ServerName localhost:80 The comments in front of this line can be removed.

Question: Is it httpd to compile in this way, there is no problem

./configure--prefix=/usr/local/apache2--enable-dav--enable-modules=so

Reference article http://www.cnblogs.com/bluewelkin/p/4110759.html

--------------------------------------------------------------------------------

+--------------------------------------------------------------------+
| License: |
| This software was subject to the PHP License, available in this |
|  Distribution in the file LICENSE. By continuing this installation |
|     Process, you is bound by the terms of this License agreement. |
| If you don't agree with the terms of this license, you must abort |
|                            The installation process at this point. |
+--------------------------------------------------------------------+

Thank for using PHP.

Config.status:creating Php5.spec
Config.status:creating Main/build-defs.h
Config.status:creating scripts/phpize
Config.status:creating scripts/man1/phpize.1
Config.status:creating Scripts/php-config
Config.status:creating Scripts/man1/php-config.1
Config.status:creating SAPI/CLI/PHP.1
Config.status:creating SAPI/CGI/PHP-CGI.1
Config.status:creating Ext/phar/phar.1
Config.status:creating Ext/phar/phar.phar.1
Config.status:creating main/php_config.h
config.status:executing default Commands

Linux installation httpd52.4.10

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.