小贝_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-fpm端口
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
解决方案
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
解决方案
yum install libcurl libcurl-devel
错误五
If configure fails try--with-vpx-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)
版权声明:本文为博主原创文章,未经博主允许不得转载。

热AI工具

Undresser.AI Undress
人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover
用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool
免费脱衣服图片

Clothoff.io
AI脱衣机

AI Hentai Generator
免费生成ai无尽的。

热门文章

热工具

记事本++7.3.1
好用且免费的代码编辑器

SublimeText3汉化版
中文版,非常好用

禅工作室 13.0.1
功能强大的PHP集成开发环境

Dreamweaver CS6
视觉化网页开发工具

SublimeText3 Mac版
神级代码编辑软件(SublimeText3)

Laravel使用其直观的闪存方法简化了处理临时会话数据。这非常适合在您的应用程序中显示简短的消息,警报或通知。 默认情况下,数据仅针对后续请求: $请求 -

PHP客户端URL(curl)扩展是开发人员的强大工具,可以与远程服务器和REST API无缝交互。通过利用Libcurl(备受尊敬的多协议文件传输库),PHP curl促进了有效的执行

Laravel 提供简洁的 HTTP 响应模拟语法,简化了 HTTP 交互测试。这种方法显着减少了代码冗余,同时使您的测试模拟更直观。 基本实现提供了多种响应类型快捷方式: use Illuminate\Support\Facades\Http; Http::fake([ 'google.com' => 'Hello World', 'github.com' => ['foo' => 'bar'], 'forge.laravel.com' =>

您是否想为客户最紧迫的问题提供实时的即时解决方案? 实时聊天使您可以与客户进行实时对话,并立即解决他们的问题。它允许您为您的自定义提供更快的服务

Laravel的服务容器和服务提供商是其架构的基础。 本文探讨了服务容器,详细信息服务提供商创建,注册,并通过示例演示了实际用法。 我们将从OVE开始

文章讨论了PHP 5.3中引入的PHP中的晚期静态结合(LSB),从而允许静态方法的运行时分辨率调用以获得更灵活的继承。 LSB的实用应用和潜在的触摸

PHP日志记录对于监视和调试Web应用程序以及捕获关键事件,错误和运行时行为至关重要。它为系统性能提供了宝贵的见解,有助于识别问题并支持更快的故障排除
