小贝_php源代码安装
PHP安装
一、本文档相关文件下载
二、php安装
一、本文档相关文件下载
1、php下载地址: http://php.net/downloads.php
(备注:
本文档下载的是php版本号为php-5.6.11.tar.gz)
2、本測试机系统为 CentOS release 6.3 (Final)
二、php安装
1、安装php
a、解压压缩文件 tar –zxf php-5.6.11.tar.gz
b、进入解压文件夹后。运行
./configure --prefix=/usr/local/php--with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql--enable-fpm --enable-xml --enable-soap --enable-mbstring --enable-sockets--with-curl --enable-zip
--enable-ftp --with-gd --with-bz2--with-openssl --with-zlib --with-mhash --enable-exif --enable-sockets--enable-mbstring --enable-xml --enable-fpm --enable-soap --with-gd --with-curl--with-mcrypt=/usr/local/libmcrypt --with-imap --with-imap-ssl --with-jpeg-dir--with-png-dir
--with-zlib-dir --with-freetype-dir --enable-gd-native-ttf--enable-gd-jis-conv --with-kerberos
c、编译安装 make && make install
2、启动php
a、复制php.ini文件
[root@hadoop phpsrc]# cpphp.ini-production /usr/local/php/etc/php.ini
b、启动php-fpm
[root@hadoop etc]# cpphp-fpm.conf.default php-fpm.conf
[root@hadoop php]# ./sbin/php-fpm
c、检查php-fpmport
3、測试php
4、常见异常及处理
错误一
checking libxml2 installdir... no
checking for xml2-configpath...
configure: error:xml2-config not found. Please check your libxml2 installation.
解决方式
yum install libxml2
yum install libxml2-devel
错误二
configure: error: Cannot find OpenSSL's<evp.h>
解决方式
yum install openssl-devel
错误三
checking for BZip2 in default path...not found
configure: error: Please reinstall theBZip2 distribution
解决方式
yum install bzip2-devel
错误四
checking for cURL in default path...not found
configure: error: Please reinstall thelibcurl distribution -
easy.h should be in<curl-dir>/include/curl/
解决方式
yum install libcurl libcurl-devel
错误五
If configure fails try--with-vpx-dir=<DIR>
configure: error: jpeglib.h not found.
解决方式
yum install libjpeg libpng freetypelibjpeg-devel libpng-devel freetype-devel
错误六
configure: error: utf8_mime2text() hasnew signature, but U8T_CANONICAL is missing. This should not happen. Checkconfig.log for additional information
解决方式
yum install libc-client-devel
错误七
configure: error: This c-client libraryis built with Kerberos support.
Add --with-kerberos to your configureline. Check config.log for details.
解决方式
把--with-kerberos增加./configure中
错误八
configure: error: mcrypt.h not found.Please reinstall libmcrypt.
解决方式
yum install libmcrypt 或者
下载libmcrypt包
(编译安装 ./configure --prefix=/usr/local/libmcrypt make && make install)
小贝_php源代码安装的更多相关文章
- 小贝_php+redis简单实例
php+redis简单实例 一.说明 因为redis是c/s架构.从这个角度上.不论什么符合redis的client要求的.都能够与redis进行通讯.官方提供了非常多的client. php在web ...
- 小贝_php+redis类型组合使用
php_redis类型组合使用 一.类型组合说明 经过前面的文章介绍.已经知道redis有字符串.集合.列表.hash等内置数据类型. 这里以,无序集合为例,进行说明. 集合 set1的简图 1.从简 ...
- linux 下通过源代码安装程序 ./configure 解释
大家 都知道在 linux 通过源代码 安装程序 1. 下载源码 2.解压缩 3. 执行 ./configure 4. make 5 make install make 命令 是对 makefile ...
- Linux程序包管理之yum及源代码安装
第十六章.Linux程序包管理之yum及源代码安装 目录 yum介绍 yum配置文件 yum的repo配置文件中可用的变量 yum命令的使用 使用光盘作为本地yum仓库 如何创建yum仓库 编译安装的 ...
- ODOO 源代码安装要求
ODOO 源代码安装要求 ref:http://www.odoo.com/documentation/10.0/setup/install.html#setup-install-source pyth ...
- 源代码安装 MySQL 5.6.28
本文内容 创建 MySQL 用户和组 解压 MySQL 源代码包 生成配置安装文件 编译和安装 MySQL 配置文件 创建 MySQL 授权表 MySQL 目录授权 启动 MySQL 验证 MySQL ...
- Building nginx from Sources(从源代码安装nginx)
Building nginx from Sources(从源代码安装nginx) The build is configured using the configure command. 安装用配置 ...
- 【转载】绝对干货!Linux小白最佳实践:《超容易的Linux系统管理入门书》(连载九)如何通过源代码安装软件
除了使用Linux的包管理机制进行软件的安装.更新和卸载,从源代码进行软件的安装也是非常常见的,开源软件提供了源代码包,开发者可以方便的通过源代码进行安装.从源码安装软件一般经过软件配置.编译软件.执 ...
- 源代码安装GIT
参考URL:http://blog.chinaunix.net/xmlrpc.php?r=blog/article&uid=25150840&id=4250659 若是条件允许,从源代 ...
随机推荐
- Django REST Framework 认证 - 权限 - 限制
一. 认证 (你是谁?) REST framework 提供了一些开箱即用的身份验证方案,并且还允许你实现自定义方案. 自定义Token认证 第一步 : 建表>>>> 定义一个 ...
- MySql的replace into 语句
MySQL REPLACE语句介绍 MySQL的REPLACE语句是一个MySQL扩展于SQL标准的语句. 官方定义:REPLACE works exactly like INSERT, except ...
- WinServer-授权规则
授权规则: 使用谓词可以限制网站只能使用某一种请求 来自为知笔记(Wiz)
- oracle存储过程中使用execute immediate执行sql报ora-01031权限不足的问题
oracle存储过程中使用execute immediate执行sql报ora-01031权限不足的问题 学习了:http://blog.csdn.net/royzhang7/article/deta ...
- JDK+JDBC+MySQL实例及注意事项
by qx.zhong Hangzhou 29 Jun 2014 开发环境 OS: Win8.1 x64 JDK: 1.8 SE DB: MySQL 5.5 Lib: mysql-connec ...
- 《Head First 设计模式》学习笔记——适配器模式 + 外观模式
在ADO.NET中.对于我们从数据库中取出的数据都要放到一个DataSet中,无论你是Access的数据库,还是SQL的数据库,或者是Oracle的数据库都要放到DataSet中..NET中并没有提供 ...
- NOIP2017提高组模拟赛5 (总结)
NOIP2017提高组模拟赛5 (总结) 第一题 最远 奶牛们想建立一个新的城市.它们想建立一条长度为N (1 <= N <= 1,000,000)的 主线大街,然后建立K条 (2 < ...
- gson的安装和使用
gson的安装和使用 1.安装 2.布局 <?xml version="1.0" encoding="utf-8"?> <LinearLayo ...
- 去除iframe滚动条1
主页面的IFRAME中添加:scrolling="yes" 子页面程序代码: 让竖条消失: <body style='overflow:scroll;overflow-x:a ...
- PyCharm基本设置、常用快捷键
1. 下载安装 PyCharm官方下载地址: https://www.jetbrains.com/pycharm/download/index.html#section=windows 安装完成后在 ...