分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 前端开发

<小田吃饺子> LINUX:Contos7.0 / 7.2 LAMP+R 下载安装Php篇

发布时间:2023-09-06 01:12责任编辑:董明明关键词:暂无标签

更新时间:2017-09-21 16:03

简介

LAMP+R指Linux+Apache+Mysql+PHP+Redis是一组常用来搭建动态网站或者服务器的开源软件,本身都是各自独立的程序,但是因为常被放在一起使用,拥有了越来越高的兼容度,共同组成了一个强大的Web应用程序平台。

Apache 安装篇 Demo地址:http://www.cnblogs.com/hello-tl/articles/7568803.html

Php 安装篇 Demo地址:http://www.cnblogs.com/hello-tl/p/7569071.html

Mysql 安装篇 Demo地址:http://www.cnblogs.com/hello-tl/p/7569097.html 

Redis 安装篇 Demo地址:http://www.cnblogs.com/hello-tl/p/7569108.html 

1、yum 安装依赖和工具  和 libmcrypt 包

  # yum install gcc gcc++ libxml2-devel  # yum install openssl openssl-devel  # yum -y install curl-devel  # yum install libjpeg.x86_64 libpng.x86_64 freetype.x86_64 libjpeg-devel.x86_64 libpng-devel.x86_64 freetype-devel.x86_64 -y  # yum install libjpeg libpng freetype libjpeg-devel libpng-devel freetype-devel -y  # wget ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/attic/libmcrypt/libmcrypt-2.5.7.tar.gz  # tar -zxvf libmcrypt-2.5.7.tar.gz  # cd libmcrypt-2.5.7  # ./configure --prefix=/home/libmcrypt  # make install  # /home/libmcrypt/bin/libmcrypt-config --version  # /home/libmcrypt/lib/libmcrypt.la  # rpm -qa libmcrypt  # yum install libmcrypt  # yum install libmcrypt libmcrypt-devel mcrypt mhash.  //可能会报错 I was not able to diagnose which libmcrypt version you have installed    # yum install epel-release //扩展包更新包    # yum update //更新yum源

 2.下载php安装包及安装PHP

  # wget http://hk1.php.net/get/php-7.1.6.tar.gz/from/this/mirror  # mv mirror php-7.1.6.tar.gz  # tar -zxvf php-7.1.6.tar.gz  # cd php-7.1.6.tar.gz  # ./configure   --prefix=/home/php7   --with-apxs2=/home/apache/bin/apxs   --exec-prefix=/home/php7   --bindir=/home/php7/bin   --sbindir=/home/php7/sbin   --includedir=/home/php7/include  --libdir=/home/php7/lib/php   --mandir=/home/php7/php/man   --with-config-file-path=/home/php7/etc   --with-mysql-sock=/var/lib/mysql/mysql.sock   --with-mcrypt=/usr/include   --with-mhash   --with-openssl   --with-mysql=shared,mysqlnd   --with-mysqli=shared,mysqlnd   --with-pdo-mysql=shared,mysqlnd   --with-gd   --with-iconv   --with-zlib   --enable-zip   --enable-inline-optimization   --disable-debug   --disable-rpath   --enable-shared   --enable-xml   --enable-bcmath   --enable-shmop   --enable-sysvsem   --enable-mbregex   --enable-mbstring   --enable-ftp   --enable-gd-native-ttf   --enable-pcntl   --enable-sockets   --with-xmlrpc   --enable-soap   --without-pear   --with-gettext   --enable-session   --with-curl   --with-jpeg-dir   --with-freetype-dir   --enable-opcache   --enable-fpm   --enable-fastcgi   --with-fpm-user=nginx   --with-fpm-group=nginx   --without-gdbm   --with-mcrypt=/home/libmcrypt   --with-libdir=lib64   --disable-fileinfo  # make && make install

  

  

  

<小田吃饺子> LINUX:Contos7.0 / 7.2 LAMP+R 下载安装Php篇

原文地址:http://www.cnblogs.com/hello-tl/p/7569071.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved