Linux安装httpd2.4.10
1、
cd /mnt
tar zxvf httpd-2.4.10.tar.gz
./configure --prefix=/mnt/apache2 --enable-dav --enable-modules=so
APR version 1.4. or later is required, found 1.3.
解决方案:安装APR与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、重新安装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缺少,找不到,configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/
解决方案:yum install pcre-devel -y
162 unzip -o pcre2-10.00.zip
163 cd pcre2-10.00
164 ./configure --prefix=/usr/local/pcre
165 make
166 make install
再来一遍./configure --prefix=/usr/local/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
configure: error: mod_so can not be built as a shared DSO
再来一遍 去掉--enable-modules=so
./configure --prefix=/usr/local/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
成功
3、make
make[]: *** [shared-build-recursive] Error /usr/bin/ld: /usr/local/lib/libz.a(crc32.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
解决方案:以64位的方式重新编译zlib
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、最后重新编译一下
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、启动/mnt/apache2/bin/apachectl start
httpd: Could not reliably determine the server's fully qualified domain name
解决方案: 在Apache的安装目录下的hhtpd。conf文件修改如下【 cd /usr/local/apache2/conf ls一下】
(1) ServerName localhost:80 这一行前面的注释去掉即可。
疑问:是不是httpd以这种方式编译,就什么问题也没有【一样的有问题,2015年0221亲测】
./configure --prefix=/usr/local/apache2 --enable-dav --enable-modules=so
最后还是以这个编译的
再来一遍 去掉--enable-modules=so ./configure --prefix=/usr/local/apache2 --enable-dav --enable-maintainer-mode --enable-rewrite --with-apr=/usr/local/apr/bin/apr--config --with-apr-util=/usr/local/apr/bin/apu--config
参考文章http://www.cnblogs.com/bluewelkin/p/4110759.html
256 tar zxvf libxml2-2.6.32.tar.gz
257 cd libxml2-2.6.32
258 ./configure --prefix=/usr/local/libxml2
259 make
260 make install
263 tar zxvf php-5.4.37.tar.gz
264 cd php-5.4.37
265 ls
266 ./configure --prefix=/usr/local/php --with-mysqli=/usr/bin/mysql_config --with-apxs2=/usr/local/apache2/bin/apxs
--with-libxml-dir=/usr/local/libxml2
出现错误
configure: error: xml2-config not found. Please check your libxml2 installation.
解决方案:
重新安装libxml2和libxml2-devel包
yum install libxml2
yum install libxml2-devel -y
--------------------------------------------------------------------------------
+--------------------------------------------------------------------+
| License: |
| This software is subject to the PHP License, available in this |
| distribution in the file LICENSE. By continuing this installation |
| process, you are bound by the terms of this license agreement. |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point. |
+--------------------------------------------------------------------+
Thank you 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
Bug #42718 (unsafe_raw filter not applied when configured as default filter) [ext/filter/tests/bug42718.phpt] XFAIL REASON: FILTER_UNSAFE_RAW not applied when configured as default filter, even with flags
Bug #67296 (filter_input doesn't validate variables) [ext/filter/tests/bug49184.phpt] XFAIL REASON: See Bug #49184
-----------------------------------------------------------
解决方案:php不支持mysqli,有什么办法生成mysqli.s
---------------------------------------------------------------------------------------------
2015年2月21日
说明:
1、安装apache+mysql+php,php总是最后装的,apache和mysql可以不分顺序。因为根据视频的那个源码包安装的时候,php是指定了目录的。指定了mysql和apache
2、apache中支持php,相当于apache中开启了php模块。然后php(其实是程序里面)开启了连接了数据库。
3、php里面开启例如zlib、mysql、xmlrpc、openssl 、gd库。在这个文件里面编辑vi /usr/local/php/etc/php.ini 添加即可【/usr/local/php是php按照的时候 --prefix的目录】
4、apache在windows的配置文件 路径在\Apache2.2\conf\httpd.conf linux在/usr/local/apache2/etc/httpd.conf 多了一个etc
5、添加别名 alias sta='/usr/local/apache2/bin/apachectl start'
Linux安装httpd2.4.10的更多相关文章
- [笔记] centos6.6编译安装httpd2.4.10
系统安装包是CentOS-6.6-x86_64-minimal.iso 查看一下uname信息 [root@localhost ~]# uname -a Linux localhost.localdo ...
- Linux 安装 httpd2.4.16
假设: apr安装在: /opt/httpd/apr apr-util安装在 /opt/httpd/apr-suite/apr-util apr-iconv安装在/opt/httpd/apr-suit ...
- Ubuntu/linux 安装 kernel-devel
这个问题,需要安装与系统内核配套的开发包. 查看内核: uname -r 内核头文件C header files下载地址: http://rpmfind.net/linux/rpm2html/sear ...
- 在GNU/Linux下制作Windows 10安装U盘
今年春节回家期间,我需要将家里的一台安装了Debian Stretch的ZaReason笔记本电脑更换为Windows 10系统,好让爸妈从老台式机上的XP系统升级到新的平台上来.回家前,小仙女已在微 ...
- linux服务基础(一)之CentOS6编译安装httpd2.4
安装http-2.4 Http依赖于apr-1.4+,apr-util-1.4+ CentOS6上默认是apr-1.3,apr-util1.3 先编译安装apr-1.5,apr-util-1.5 开始 ...
- Linux CentOS7下安装Zookeeper-3.4.10服务(最新)
Linux CentOS7下安装Zookeeper-3.4.10服务(最新) 2017年10月27日 01:25:26 极速-蜗牛 阅读数:1933 版权声明:本文为博主原创文章,未经博主允许不得 ...
- xmind2020 zen 10.2.1win/mac/linux安装教程
xmind是一款优秀的思维导图软件,本文教大家如何安装xmind zen 2020 10.2.1版本,解锁使用全部功能,包括去掉xmind zen水印.上传图片等功能,支持windows/mac/li ...
- Linux下Memcached-1.4.10安装
memcache是一款流行的缓存产品,它分为两个部分:一个是运行在服务器端的memcached进程,一个是在客户端进行调用获取缓存中数据客户端,例如比较常用的PHP客户端.这里,记录一下安装服务器端的 ...
- Centos7源码安装httpd2.4版本web服务器
我们的系统平台是在centos7.5的环境下安装httpd2.4版本的软件,2.4版本的软件有一个特征就是需要安装arp包以及arp-util包才可以. 1.首先是下载httpd2.4版本的包,以及安 ...
随机推荐
- 【转】网页游戏能用PHP做后端开发吗? PHP Libevent扩展安装及应用
网页游戏能用PHP做后端开发吗? 当然可以.最好走HTTP,也可以做网络编程,而且写代码超简单,1个函数就可以建一个服务器端.stream_socket_server()多线程不是什么好主意,你可以用 ...
- 2015年iOS开发总结
从我开始接触iOS到现在已经有一年的时间了,刚好年末总结一下. 我是去年11月份培训的,在培训公司苦逼的学习了4个月之后,找到了第一家公司,是个外包公司,在里面还是学到了很多东西,产品的需求,设计,框 ...
- 论文笔记(一)Re-ranking by Multi-feature Fusion with Diffusion for Image Retrieval
0x00 预备知识 $\DeclareMathOperator{\vol}{vol}$ 无向图上的随机游走 无向图 $G=(V,E)$,边权函数 $w\colon V\times V \to R_+$ ...
- POJ 1149 PIGS(Dinic最大流)
PIGS Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 20738 Accepted: 9481 Description ...
- 【EX_BSGS】BZOJ1467 Pku3243 clever Y
1467: Pku3243 clever Y Time Limit: 4 Sec Memory Limit: 64 MBSubmit: 425 Solved: 238[Submit][Status ...
- Ubuntu 硬盘大小扩展
注:途中所有图均为配置好补的截图,部分来自其它网页. 1.选择硬盘(SCSI) 2.点击扩展,在弹出框填写期望的硬盘大小(不能比原硬盘大小容量小) 3.进入虚拟机,安装GParted. 命令:sudo ...
- react 基础语法复习1- 搭建开发环境
之前有看过阮一峰老师的react教程跟着做了一遍,学习了一下.好久没看,有点忘记了,这次跟着脚手架工具系统的复习一遍.顺便学习学习 react-router 和 redux 首先,脚手架工具我使用的是 ...
- js汉字转拼音首字母
js汉字转拼音首字母 2018-04-09 阅读 1018 收藏 1 原链:segmentfault.com 分享到: 前端必备图书<JavaScript设计模式与开发实践> > ...
- linux下轻松修改pdf文件
前几天使用firefox打印了一个网页,后来查看有很多页面都是评论,对我来说,实在没有什么用处,就想把多余的内容给删除了,后来,终于找到了一个工具:pdf mod非常不错的工具,直接打开文件,选择要删 ...
- python+requests接口自动化测试框架
1.首先,我们先来理一下思路. 正常的接口测试流程是什么? 脑海里的反应是不是这样的: 确定测试接口的工具 —> 配置需要的接口参数 —> 进行测试 —> 检查测试结果(有的需要数据 ...