LAMP源码编译安装配置

系统环境CentOS6.5

一、编译安装Apache

关闭selinux和防火墙

1、解决依赖关系

[[email protected] ~]# yum install gcc gcc-c++ openssl openssl-devel

编译安装apr(The mission of the Apache Portable Runtime (APR) project is to create and
maintain software libraries that provide a predictable and consistent interface
to underlying platform-specific implementations.  The primary goal is to
provide an API to which software developers may code and be assured of
predictable if not identical behaviour regardless of the platform on which
their software is built, relieving them of the need to code special-case
conditions to work around or take advantage of platform-specific deficiencies
or features.)

[[email protected] ~]# tar xf apr-1.5.1.tar.bz2
[[email protected] ~]# cd apr-1.5.1
[[email protected] ~]# ./configure --prefix=/usr/local/apr
[[email protected] ~]# make && make install

编译安装apr-util

[[email protected] ~]# tar xf apr-util-1.5.3.tar.bz2
[[email protected] ~]# cd apr-util-1.5.3
[[email protected] ~]# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
[[email protected] ~]# make && make install

安装依赖包pcre-devel

[[email protected] ~]# yum install pcre-devel

编译安装httpd

[[email protected] ~]# tar xf httpd-2.4.9.tar.bz2
[[email protected] ~]# cd httpd-2.4.9
[[email protected] ~]# ./configure --prefix=/usr/local/apache --enable-so --enable-ssl --enable-rewrite --enable-cgi --with-zlib --with-pcre --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --enable-modules=most --enable-mpms-shared=all
[[email protected] ~]# make && make install

在/etc/profile.d目录下创建httpd.sh环境变量文件

[[email protected] ~]# echo "export PATH=$PATH:/usr/local/apache/bin" > /etc/profile.d/httpd.sh
[[email protected] ~]# source /etc/profile

httpd的测试与启动

[[email protected] ~]# apachectl -t
Starting httpd: AH00558: httpd: Could not reliably determine the server‘s fully qualified domain name, using web.test.com. Set the ‘ServerName‘ directive globally to suppress this message
Syntax OK

编辑httpd.conf文件,搜索"/ServerName",添加ServerName localhost:80

[[email protected] ~]# apachectl start
时间: 2024-12-13 16:03:40

LAMP源码编译安装配置的相关文章

详解LAMP源码编译安装

实战:LAMP源码编译安装 家住海边喜欢浪:zhang789.blog.51cto.com 目录 详解LAMP源码编译安装 LAMP简介 一.准备工作 二.编译安装 Apache 三.编译安装 MySQL 四.编译安装 PHP 测试LAMP搭建开源数据web管理程序phpMyadmin 详解LAMP源码编译安装 LAMP简介 LAMP是当下非常流行的一套Web架构,我们可以在GNU/Linux下通过其他人打包的程序包来进行安装; 但是在生产环境中,很多时候都需要我们自己定制安装AMP,编译安装L

lamp源码编译安装及优化

lamp源码编译安装及优化

yum/源码编译安装配置apache+svn

本次整理的比较急.源码编译和命令解释后续加上.不多说开始吧 系统环境:CentOS6.5_x86_64 minimal YUM版 1.检查是否安装了httpd.mod_dav_svn(实现apache+svn的一个模块).subversion(默认是安装的.需要yum remove subversion卸载掉) [[email protected] ~]# rpm -ql httpd package httpd is not installed [[email protected] ~]# rp

mysql 5.6单机单实例源码编译安装配置

--linux 基础配置  指定机器名为sql1 --查看centos内核uname -acat /etc/issue --修改机器名 1. echo "192.168.33.190 sql1 localhost.localdomain localhost4 localhost4.localdomain4" >> /etc/hosts 2. vi /etc/sysconfig/networkNETWORKING=yesHOSTNAME=sql1 --修改ipvi /etc/

rsync 3.1.1源码编译安装配置

http://rsync.samba.org/ rsync-3.1.1.tar.gz ---0.卸载rpm # yum remove rsync -----1.安装: tar -zxvf rsync-3.1.1.tar.gz cd rsync-3.1.1 ./configure --prefix=/usr/local/rsync --disable-ipv6 make make install ln -s /usr/local/rsync/bin/rsync /usr/local/bin/rsy

LAMP源码编译安装

原文地址:http://blog.51cto.com/jiazuzhao/2071181

LAMP源码编译安装实录

[[email protected] ~]# rpm -ivh epel-release-6-8.noarch.rpm [[email protected] ~]# yum install -y expat-devel openssl openssl-devel pcre pcre-devel [[email protected] ~]# groupadd apache [[email protected] ~]# useradd apache -g apache -s /bin/nologin

PHP源码编译安装的简单整理

PHP源码编译安装配置   下载地址http://php.net/downloads.php CentOS下预装依赖,具体自己对应添加 一般情况下面足够yum install gcc make gd-devel libjpeg-devel libpng-devel libxml2-devel bzip2-devel libcurl-devel -y PHP常用配置添加 ./configure  --prefix=/usr/local/php \--with-config-file-path=/u

LAMP纯源码编译安装日志

一.LAMP构架的安装与经验技巧(源码安装好处.是便于管理,可以选定参数,可以使用新版本) 相关软件列表: # ls /soft/ | grep -E "*.gz|*.zip|*.xz|*.bz2"    apr-1.4.5.tar.gz    apr-util-1.3.12.tar.gz    autoconf-2.61.tar.gz    freetype-2.3.12.tar.gz    httpd-2.4.18.tar.bz2    jpegsrc.v6b.tar.gz