search
Homephp教程php手册阿里云Centos 6.3 64位 安全加固版 升级 Php 中的 Curl 7.19 到 7.35
阿里云Centos 6.3 64位 安全加固版 升级 Php 中的 Curl 7.19 到 7.35Jun 14, 2016 am 12:02 AM
64 bitcentoscurlphpcodeOpen sourceprogrammingprogramming languagesoftware developmentAli Cloud

*注意是使用阿里云一键安装包的升级,升级前快照备份哟,小伙伴!

1.SSH远程到root下下载新版本curl 网址地址:http://curl.haxx.se/download.html

完成curl新版本的编译和安装

[root@AY1312584349346eZ ~]# wget http://curl.haxx.se/download/curl-7.35.0.tar.gz
[root@AY1312584349346eZ ~]# tar -zxvf  curl-7.35.0.tar.gz

[root@AY1312584349346eZ ~]# cd  curl-7.35.0.tar.gz

[root@AY1312584349346eZ ~]#./configure --prefix=/usr/local/curl

[root@AY1312584349346eZ ~]#make

[root@AY1312584349346eZ ~]#make install

  

2.删除原有alidata php版本相关文件

[root@AY1312584349346eZ ~]#cd /alidata/server
[root@AY1312584349346eZ ~]#rm -rf php

 

3.修改原来的安装脚本,我的是

install_php-5.2.17_nginx-1.0.4.sh 

修改为:(修改的地方 --with-curl=/usr/local/curl/)

rm -rf php-5.2.17.tar.gz php-5.2.17 php-5.2.17-fpm-0.5.14.diff.gz
#wget http://mirrors.sohu.com/php/php-5.2.17.tar.gz
#wget http://php-fpm.org/downloads/php-5.2.17-fpm-0.5.14.diff.gz
wget http://soft.phpwind.me/web/php-5.2.17.tar.gz
wget http://soft.phpwind.me/web/php-5.2.17-fpm-0.5.14.diff.gz
tar zxvf php-5.2.17.tar.gz

gzip -cd php-5.2.17-fpm-0.5.14.diff.gz | patch -d php-5.2.17 -p1

patch -d php-5.2.17 -p1 < php-5.2.17-max-input-vars.patch

cd php-5.2.17

./configure --prefix=/alidata/server/php --with-config-file-path=/alidata/server/php/etc --with-mysql=/alidata/server/mysql --with-mysqli=/alidata/server/mysql/bin/mysql_config --with-pdo-mysql=/alidata/server/mysql/bin/mysql_config --enable-fpm --enable-fastcgi --enable-static --enable-maintainer-zts --enable-zend-multibyte --enable-sockets --enable-wddx --enable-zip --enable-calendar --enable-bcmath --enable-soap --with-zlib --with-iconv --with-gd --with-xmlrpc --enable-mbstring --without-sqlite --with-curl=/usr/local/curl/ --enable-ftp --with-mcrypt  --with-freetype-dir=/usr/local/freetype.2.1.10 --with-jpeg-dir=/usr/local/jpeg.6 --with-png-dir=/usr/local/libpng.1.2.8 --disable-ipv6 --disable-debug --with-openssl

 

#make

make ZEND_EXTRA_LIBS='-liconv'

make install

cd ..

cp -f php-5.2.17.ini /alidata/server/php/etc/php.ini

cp -f php-fpm-5.2.17.conf /alidata/server/php/etc/php-fpm.conf

ln -s /alidata/server/php/sbin/php-fpm /etc/init.d/php-fpm

chmod 755 /alidata/server/php/sbin/php-fpm

/etc/init.d/php-fpm start

  

4.重新安装

[root@AY13121717584349346eZ sh]# ./install_php-5.2.17_nginx-1.0.4.sh 

就万事大吉啦!

 

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
如何使用Python连接阿里云接口实现数据上传如何使用Python连接阿里云接口实现数据上传Jul 06, 2023 am 08:06 AM

如何使用Python连接阿里云接口实现数据上传概述:阿里云是一家领先的云计算服务提供商,提供了丰富的服务和接口,方便用户进行数据存储和处理。本文将介绍如何使用Python连接阿里云接口实现数据上传。步骤一:安装阿里云PythonSDK在开始之前,我们需要安装阿里云PythonSDK。打开终端,输入以下命令:pipinstallaliyun-pytho

从零开始:用Go语言对接阿里云接口的实战指南从零开始:用Go语言对接阿里云接口的实战指南Jul 05, 2023 pm 05:45 PM

从零开始:用Go语言对接阿里云接口的实战指南引言:作为一个云计算服务提供商,阿里云的接口为开发者提供了强大的功能和便利性。本文将介绍如何使用Go语言对接阿里云的接口,并提供了实战示例,帮助读者快速入门和上手。一、准备工作在开始对接阿里云接口之前,我们需要完成一些准备工作。注册阿里云账号:访问阿里云官网(https://www.aliyun.com),注册一个

如何使用PHP对接阿里云云盾接口实现网站防护功能如何使用PHP对接阿里云云盾接口实现网站防护功能Jul 05, 2023 pm 06:48 PM

如何使用PHP对接阿里云云盾接口实现网站防护功能随着互联网的快速发展,网站安全问题日益引起人们的关注。为了保障网站的安全性,防范黑客攻击和恶意代码注入等风险,适时采用一些安全防护工具是非常必要的。阿里云云盾是一种常用的云安全服务,提供多项安全防护功能。本文将介绍如何使用PHP对接阿里云云盾接口,实现网站的防护功能。一、准备工作在阿里云上购买云盾服务,并获取A

进阶Java技巧:使用阿里云函数计算快速搭建微服务进阶Java技巧:使用阿里云函数计算快速搭建微服务Jul 05, 2023 am 11:54 AM

进阶Java技巧:使用阿里云函数计算快速搭建微服务随着云计算的发展,微服务架构正在成为构建大型复杂应用的首选方案之一。在微服务架构中,每个功能模块都被拆分成一个个独立运行的微服务,通过基于HTTP的API接口进行通信。这种拆分和解耦的设计方式不仅提高了开发效率,还能实现应用的高可伸缩性和可维护性。在本文中,我将介绍如何使用阿里云函数计算(FunctionC

Java代码示例:利用阿里云DTS接口实现数据库同步Java代码示例:利用阿里云DTS接口实现数据库同步Jul 05, 2023 am 11:22 AM

Java代码示例:利用阿里云DTS接口实现数据库同步引言:随着云计算和大数据的快速发展,数据库同步成为了许多企业不可或缺的需求之一。阿里云的数据传输服务(DTS)提供了强大的数据库同步功能,能够帮助企业快速、高效地实现不同数据库之间的数据同步。本文将介绍如何利用阿里云DTS接口来实现数据库同步,并提供相应的Java代码示例。一、前期准备:在开始之前,我们需要

Python调用阿里云接口,实现数据清洗与可视化功能Python调用阿里云接口,实现数据清洗与可视化功能Jul 06, 2023 am 11:05 AM

Python调用阿里云接口,实现数据清洗与可视化功能引言:随着互联网的快速发展,数据已经成为了当今社会中不可或缺的一部分。然而,原始的数据通常是杂乱无章的,需要经过数据清洗的过程才能得到有用的信息。为了解决这个问题,阿里云提供了强大的数据处理和分析接口,本文将介绍如何使用Python调用阿里云接口,并将清洗过的数据进行可视化展示。一、准备工作在开始之前,需要

从零开始学习Java与阿里云CDN的对接技巧从零开始学习Java与阿里云CDN的对接技巧Jul 05, 2023 pm 06:11 PM

从零开始学习Java与阿里云CDN的对接技巧阿里云CDN(ContentDeliveryNetwork)是一种通过网络传输技术,将数据缓存在位于全球各地的分布式节点上,以提高数据访问速度的解决方案。在Java开发中,对接阿里云CDN可以极大地提升网站的访问速度和用户体验。本文将介绍如何从零开始学习Java与阿里云CDN的对接技巧,并提供一些代码示例。首先

PHP与阿里云短信接口对接实战中的短信模板审核与发送频率控制技巧PHP与阿里云短信接口对接实战中的短信模板审核与发送频率控制技巧Jul 05, 2023 pm 07:42 PM

PHP与阿里云短信接口对接实战中的短信模板审核与发送频率控制技巧随着互联网的迅速发展,短信成为了一种重要的通信方式。无论是注册验证、支付提醒还是电商推广,短信都扮演着不可或缺的角色。阿里云短信接口作为业界知名的短信服务提供商,广泛应用于各种应用场景。在PHP语言中,如何对接并合理使用阿里云短信接口,是每个开发者需要掌握的技术。一、短信模板审核在使用阿里云短信

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment