---
# System prepended metadata

title: 安裝httpd 2.4.52
tags: [Other]

---

# 安裝httpd 2.4.52
[toc]

ref:
https://www.jianshu.com/p/4727f50ef218

ref2: （較簡單）且有成功
https://www.maximumbuilders.my/news/installing-apache-httpd-web-server-on-centos-7-using-rpm
## **解壓&安裝所有文件**
先到apache/mypackage
`rpm -Uvh *.rpm --nodeps --force`
解壓tar
`tar -xvf .....-C /usr/local``

## **安裝apr**
```
cd /usr/local/apr-1.7.0
./configure --prefix=/usr/local/apr
make
make install
```
```
cd /usr/local/apr-util-1.6.1
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make
make install
```

## **安裝httpd**
```
cd /usr/local/httpd-2.4.48
./configure --prefix=/usr/local/apache24 --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre
make
make install
```


###### tags: `Other`
Edit by Mario