Home >Operation and Maintenance >CentOS >Summary of Apache installation under CentOS

Summary of Apache installation under CentOS

藏色散人
藏色散人forward
2021-02-16 09:21:502711browse

The following is a tutorial column of centos to summarize the Apache installation under CentOS. I hope it will be helpful to friends in need!

Summary of Apache installation under CentOS

Apache installation summary under CentOS

Environment

Operating system: CentOS 6.8
Server: Apache 2.4.29
Other key dependent libraries: apr 1.6.3, apr-util 1.6.1, pcre-8.41

Command )

  • Decompression command
##tar zxvf [dir1] -C [dir2]Extract the files under dir1 to the directory specified by dir2Nonerpm -qa [software-name]Query the specified softwareNonerpm -e --nodeps [software-full-name]Uninstall the software with the specified name--nodeps: Do not check the dependencies between software./configure --prefix=[dir] --with-[lib]None--prefix: Specify the installation directory --with-[ lib]: Dependency (personal understanding)
Command format Command description Command Parameter explanation
    Apache installation
  • Compile and install (make install)

Problem

Occurrence timeSolution (personal )Solution (Network)Weight##Apache installationerror :Cannot use an external APR with the bundled APR-utilWhen installing Apacheerror:Did not find pcre-config script at [dir]When pcre is installederror: You need a C Compiler for C SupportWhen Apache is installederror:pcre-config for libpcre not foundApache installationerror:no acceptable C complier found in $PATH##apr-util installation (Part of the error message )yum install expat-devellowWhen Apache is installed(Part of the error message)yum install openssl- develyum update openssl高#This is the first time I write this summary. If there is anything wrong, please feel free to point it out to Dalao (pass women's clothing to Dalao).
Error content
Recompile and install apr-util Google Low
Replace pcre2 with pcre, then compile and install Google Low
Google yum install -y gcc gcc-c Low
Use --with-pcre=[dir] to specify the pcre installation directory when ./configure configuration Reinstall or One-time installation of pcre low
Google yum -y install gcc
error:'apr_xml_parser' has no memebr named 'xp' Google
error: openssl version is too old Google

The above is the detailed content of Summary of Apache installation under CentOS. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete