Linux 下配置Apache Http Server
2017-08-11 14:53
447 查看
以前公司都是用的Apache的Tomcat,这个web 服务器用起来比较简单,下载解压就好了。最近在想弄个博客要用到Apache Http Server,在网上看了很多安装方法,感觉还是一脸懵,然后去看了下官网安装说明,弄懂了一点,现在记录一下我安装Apache Http Server 2.4.27的过程。 安装环境:apr 和apr-util 官网下载apr和apr-util并分别解压到 aprpath和apr-utilpath(路径自定义) 安装apr:
安装apr-util:
安装环境:pcre 官网下载pcre安装方法类似apr 最后安装httpd:官网下载httpd服务器 解压到目录 httpd-NN(路径自定义) cd httpd-NN
出现到错误
编译httpd的时候加上 --with-apr=aprpath/bin/apr-1-configure
cd aprpath
./configure --prefix=aprpath
sudo make
sudo make install
安装apr-util:
cd apr-utilpath
./configure --prefix=apr-utilpath --with-apr=aprpath/bin/apr-1-config
sudo make
sudo make install
安装环境:pcre 官网下载pcre安装方法类似apr 最后安装httpd:官网下载httpd服务器 解压到目录 httpd-NN(路径自定义) cd httpd-NN
sudo ./configure --prefix='/etc/httpd-2.4.27' --with-apr=aprpath/bin/apr-1-config --with-apr-util=apr-utilpath/bin/apu-1-config' --with-included-apr --with-pcre=pcrepath/bin/pcre-config
出现到错误
xml/apr_xml.c:35:19: fatal error: expat.h: 没有那个文件或目录解决:
sudo apt-get install libexpat1-dev错误:
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /etc/httpd-2.4.27/httpd_source_tree_root/pcre-8.41/missing aclocal-1.15 -I m4 /etc/httpd-2.4.27/httpd_source_tree_root/pcre-8.41/missing: 行 81: aclocal-1.15: 未找到命令 WARNING: 'aclocal-1.15' is missing on your system. You should only need it if you modified 'acinclude.m4' or 'configure.ac' or m4 files included by 'configure.ac'. The 'aclocal' program is part of the GNU Automake package: <http://www.gnu.org/software/automake> It also requires GNU Autoconf, GNU m4 and Perl in order to run: <http://www.gnu.org/software/autoconf> <http://www.gnu.org/software/m4/> <http://www.perl.org/> Makefile:1357: recipe for target 'aclocal.m4' failed解决:
sudo apt install autoconf autoreconf -ivf错误
collect2: error: ld returned 1 exit status Makefile:48: recipe for target 'htpasswd' failed make[2]: *** [htpasswd] Error 1 make[2]: Leaving directory '/etc/httpd-2.4.27/support' /etc/httpd-2.4.27/build/rules.mk:75: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/etc/httpd-2.4.27/support' /etc/httpd-2.4.27/build/rules.mk:75: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1解决;
编译httpd的时候加上 --with-apr=aprpath/bin/apr-1-configure
相关文章推荐
- 在Linux(Fedora 16)上配置Tomcat 7.0.x 和Apache Http Server 2.2.x 集成
- 第一季:Tomcat 8迷情】 第7集 apache http server+tomcat+mod_jk在linux上的负载均衡配置
- 利用 mod_jk 整合 Apache HTTP Server 与 Tomcat 配置(linux)
- Linux下安装Apache Http Server 的配置+一些错误信息的解决方法
- 在Windows 2003环境下配置 PHP 5.2.5 + Apache HTTP Server 2.2.8 + MySQL 6.0
- Apache http Server相关的安装与配置
- CentOS 7安装配置Apache HTTP Server
- linux 安装部署 apache http server
- Apache Http Server 安装配置
- linux后台server开发环境的部署配置和验证(nginx+apache+php-fpm+FASTCGI(C/C++))
- Linux下Apache HTTP Server 2.4.20安装
- Windows 下 Apache HTTP Server 安装、配置以及与 Tomcat 的整合(附图)
- CentOS Linux下配置svn HTTP server
- 在RedHat Enterprise Linux server 5.4下安装配置Apache
- linux 下eclipse配置apache服务器,选中server时server name为灰色状态
- tomcat6配置apache http server
- 下载编译安装Apache HTTP Server 2.4.23以及配置HTTP/HTTPS反向代理
- linux下使用apache http server 连接 tomcat 达到使用直接apache一个服务端口就可访问php和jsp
- linux下编译安装Apache HTTP Server
- 如何在Apache HTTP Server中配置mod_deflate?