Linux Apache Mysql PHP source install

CentOS6.5 Minimal setup

*可选 更换yum源

yum install gcc gcc-c++ setuptool ntsysv iptables vim system-config-securitylevel-tui system-config-network-tui openssl-devel curl-devel gd-devel libjpeg-devel perl perl-devel libxml2 libxml2-devel

1.apr1.6.2 ./configure --prefix=/usr/local/apr

2.expat2.2.1 ./configure --prefix=/usr/local/expat

3.apr-util1.6.0 ./configure --prefix=/usr/local/apu --with-apr=/usr/local/apr --with-expat=/usr/local/expat

4.pcre8.10 ./configure --prefix=/usr/local/pcre

5.httpd2.4.25 ./configure --prefix=/usr/local/apache2 --with-apr=/usr/local/apr --with-apr-util=/usr/local/apu --with-pcre=/usr/local/pcre

6.mysql5.7 rpm -Uvh mysql57-community-release-el6-11.noarch.rpm

7.mcrypt2.5.8 ./configure --prefix=/usr/local/mcrypt

8.php5.6.30

./configure --prefix=/usr/local/php5 --with-config-file-path=/usr/local/php5/etc --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --enable-static --enable-maintainer-zts --enable-inline-optimization --enable-sockets --enable-wddx --enable-zip --enable-calendar --enable-bcmath --enable-soap --with-zlib --with-iconv --with-gd --with-xmlrpc --enable-mbstring --with-curl --enable-ftp --with-freetype-dir=/usr/bin --with-jpeg-dir=/usr/bin --with-png-dir=/usr/bin --disable-ipv6 --disable-debug --with-openssl --disable-maintainer-zts --disable-fileinfo --with-mcrypt=/usr/local/mcrypt

nginx
Pre-Built Packages for Stable version

To set up the yum repository for RHEL/CentOS, create the file named /etc/yum.repos.d/nginx.repo with the following contents:

[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/OS/OSRELEASE/$basearch/
gpgcheck=0
enabled=1
Replace “OS” with “rhel” or “centos”, depending on the distribution used, and “OSRELEASE” with “6” or “7”, for 6.x or 7.x versions, respectively.

yum install nginx

(php7.1.8
./configure --prefix=/usr/local/php7 --with-config-file-path=/usr/local/php7/etc --with-apxs2=/usr/local/apache2/bin/apxs --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --enable-static --enable-maintainer-zts --enable-inline-optimization --enable-sockets --enable-wddx --enable-zip --enable-calendar --enable-bcmath --enable-soap --with-zlib --with-iconv --with-gd --with-xmlrpc --enable-mbstring --with-curl --enable-ftp --with-freetype-dir=/usr/bin --with-jpeg-dir=/usr/bin --with-png-dir=/usr/bin --disable-ipv6 --disable-debug --with-openssl --disable-maintainer-zts --disable-fileinfo --with-mcrypt=/usr/local/mcrypt --with-openssl --enable-fpm
)
Wrote PEAR system config file at: /usr/local/php7/etc/pear.conf
You may want to add: /usr/local/php7/lib/php to your php.ini include_path
/root/soft/php-7.1.8/build/shtool install -c ext/phar/phar.phar /usr/local/php7/bin
ln -s -f phar.phar /usr/local/php7/bin/phar
Installing PDO headers: /usr/local/php7/include/php/ext/pdo/

开启两个nginx配置文件
配置nginx,server配置
{
server {
listen 80;
server_name localhost;

#charset koi8-r;

#access_log logs/host.access.log main;
root /www
location / {
index index.html index.htm index.php l.php;
autoindex off;
try_files $uri $uri/ /index.php?$query_string;
}

#error_page 404 /404.html;

# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}

# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}

# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php(.*)$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
include fastcgi_params;
}

# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}

}

配置apache

vim /usr/local/apache2/conf/httpd.conf

Addtype application/x-httpd-php .php

开启rewrite模块,去掉#

将AllowOverride 改为All

svnserver的安装

1.sqlite3.19.3 ./configure --prefix=/usr/local/sqlite

./configure --prefix=/usr/local/svn --with-apr=/usr/local/apr --with-apr-util=/usr/local/apu

转载于:https://www.cnblogs.com/gm-lotus/p/7364514.html

centos65编译安装lamp和lnmp相关推荐

  1. 编译安装LAMP及分离式LAMP平台构建

    前言 LAMP网站架构是目前国际流行的Web框架,该框架包括:Linux操作系统,Apache网站服务器,MySQL数据库,Perl.PHP或者Python编程语言,所有组成产品均是开源软件,是国际上 ...

  2. 2-21-源码编译安装LAMP

      编译安装LAMP所需要及其所使用的源码版本: httpd version:httpd-2.4.16 apr version:apr-1.5.2 pcre version:pcre-8.37 apr ...

  3. Web服务 源码编译安装LAMP架构

    Web服务 源码编译安装LAMP架构 一.LAMP架构 1.LAMP架构是什么 2.各组件的主要作用 二.编译安装Apache httpd服务 1.关闭防火墙,将安装Apache所需软件包传到/opt ...

  4. (1)编译安装lamp三部曲之apache-技术流ken

    简介 采用yum安装lamp简单,快捷,在工作中也得到了普遍应用.但是如果我们需要某些特定模块功能,以及制定安装位置等,就需要用到编译安装了,接下来将编译安装lamp之apache. 系统环境及服务版 ...

  5. 源码编译安装LAMP

    源码编译安装LAMP 前言 一.LAMP概述 (1)各组件的作用 (2)各组件安装顺序 (3)数据流向 二.编译安装apache httpd服务 (1)关闭防火墙,将安装apache的所需软件包上传到 ...

  6. 一键编译安装LAMP环境

    一键编译安装LAMP环境 说明:请把所需要的软件包放在文件夹中,把文件夹重命名为packages,然后压缩成packages.zip的包,上传到linux系统上任何目录都可以,然后在上传package ...

  7. 宝塔安装php成功无显示,宝塔面板安装 LAMP 或 LNMP 后没有成功的原因

    现在云主机越来越流行普及了,但在主机服务器上安装可视化管理还是大多人的需求,毕竟操作都直接简单:而宝塔面板作为不错的主机管理面板是现在很多朋友的首选. 大家在选择主机服务器安装宝塔面板后一般都会一键安 ...

  8. 盘古开天辟地之源码编译安装LAMP

    盘古开天辟地之源码编译安装LAMP Apache简介 Apache起源 源于APatchy Server,著名的开源Web服务软件 1995年时,发布Apache服务程序的1.0版本 由Apache软 ...

  9. 源码编译安装LAMP环境

    1.请描述一次完整的http请求处理过程: 2.httpd所支持的处理模型有哪些,他们的分别使用于哪些环境. 3.源码编译安装LAMP环境(基于wordpress程序),并写出详细的安装.配置.测试过 ...

最新文章

  1. 【jQuery源码】select方法
  2. 幂法的c语言程序例子,数值分析之幂法及反幂法C语言程序实例.doc
  3. sublime代码整理
  4. MFC工作笔记0010---PeekMessage 详解
  5. IO流 (二) ----- 文件流
  6. 154 万 AI 开发者用数据告诉你,中国 AI 如何才能弯道超车?| 中国 AI 应用开发者报告
  7. asp.net基础 笔试题(全解完整答案)
  8. kinit无密码登录配置
  9. 又一个PS2汉化入门
  10. 华为项目管理法读后小结
  11. 计算机装系统找不到硬盘分区,U盘重装系统找不到硬盘分区怎么办|安装系统找不到硬盘分区...
  12. 光学算法——PSD功率谱密度
  13. 在安装anaconda3(自带python3.7)和自己安装的python2.7的win10系统中安装pymol
  14. 「Linux-基础」CentOS8 权限管理
  15. ul 原点显示_li前面的原点或者方的样式修改html中列表项li所显示的圆点的颜色?,以及相关样式的设定...
  16. ROOT(a Data analysis Framework)-Note6: iSTEP day3-Random
  17. 高德地图之周边信息查询
  18. Kymeta加入美国陆军装甲旅战斗队试点项目
  19. 基于QT的CHAI3D开发框架搭建
  20. ESP8266 快速对接小爱同学 语音控制

热门文章

  1. javaweb框架--自定义标签与freemaker结合
  2. erlang监控树 supervisor
  3. ICCV 2021 oral 重构+预测,双管齐下提升视频异常检测性能
  4. 虽然有点“2”,但还是有意义的:PoseNet+LSTM 实现虚拟“逛街”
  5. CVPR2020 夜间目标检测挑战赛冠军方案解读
  6. SinGAN实现的单图动画,ICCV 2019 Best Paper
  7. 500位全球算法开发者零奖金参加阿里云天池大赛 AI预测台风助力防灾减灾
  8. Github | 人脸识别手册 (分类论文集)
  9. 两种方法解决pip、conda安装库时慢的问题
  10. 决策树随笔-深度AI科普团队