PHP Service Installation

Source: Internet
Author: User
Tags aliyun

The premise is: Nginx and MySQL services start

650) this.width=650; "Width=" "height=" 303 "title=" 18.jpg "style=" width:600px;height:303px; "src=" https:// S1.51cto.com/wyfs02/m00/00/d0/wkiom1mdoi3gqydlaacr7awlaqe098.jpg "border=" 0 "vspace=" 0 "hspace=" 0 "alt=" Wkiom1mdoi3gqydlaacr7awlaqe098.jpg "/>

[Email protected] mysql]# netstat-lntup|egrep "Nginx|mysql"
TCP 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 2742/mysqld
TCP 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 2931/nginx


Installation Environment:

[Email protected] mysql]# cat/etc/redhat-release CentOS release 6.8 (Final) [[email protected] mysql]# uname-r2.6.32-642 . El6.x86_64[[email protected] mysql]# uname-mx86_64

Check that there are two libraries installed:

Rpm-qa freetype-devel libpng-devel gd-devel libcurl-devel libxslt-devel

Rpm-qa zlib-devel libxm12-devel libjpeg-devel libjpeg-turbo-devel libiconv-devel

[Email protected] mysql]# rpm-qa freetype-devel libpng-devel gd-devel libcurl-devel libxslt-devel[[email protected] Mys ql]# rpm-qa zlib-devel libxm12-devel libjpeg-devel libjpeg-turbo-devel libiconv-develzlib-devel-1.2.3-29.el6.x86_64[ [Email protected] mysql]#

Hint: Libjpeg-turbo-devel is the new name of the early Libjpeg-devel, Libcurl-devel is the new name of the early curl-devel.

Each lib will typically have a corresponding "*-devel"-named package installed corresponding "-devel" package, the corresponding LIB package will be installed automatically, such as installation of Gd-devel will install GD.

These Lib libraries are not required to be installed, but are typically installed in the current enterprise environment. Otherwise, the PHP program runs a problem, such as the verification code cannot be displayed.

Execute the following command to install the relevant LIB package:

[email protected] mysql]# Yum install zlib-devel libxm12-devel libjpeg-devel libjpeg-turbo-devel libiconv-devel-y[[ Email protected] mysql]# Yum install freetype-devel libpng-devel gd-devel libcurl-devel libxslt-devel-y

Check if Yum installation is successful

[Email protected] mysql]# rpm-qa freetype-devel libpng-devel gd-devel libcurl-devel Libxslt-develgd-devel-2.0.35-11.el6.x86_64freetype-devel-2.3.11-17.el6.x86_64libpng-devel-1.2.49-2.el6_7.x86_ 64libxslt-devel-1.1.26-2.el6_3.1.x86_64libcurl-devel-7.19.7-53.el6_9.x86_64[[email protected] mysql]# Rpm-qa Zlib-devel libxm12-devel libjpeg-devel libjpeg-turbo-devel libiconv-devellibjpeg-turbo-devel-1.2.1-3.el6_5.x86_ 64zlib-devel-1.2.3-29.el6.x86_64

Found that two packages were not successfully installed: No package libxm12-devel available. And no pack libiconv-devel available.

[[email protected] mysql]# yum install zlib-devel libxm12-devel  libjpeg-devel libjpeg-turbo-devel libiconv-devel -yfailed to set locale,  Defaulting to cloaded plugins: fastestmirror, securitysetting up install  ProcessLoading mirror speeds from cached hostfile * base:  mirrors.aliyun.com * extras: mirrors.aliyun.com * updates:  Mirrors.aliyun.compackage zlib-devel-1.2.3-29.el6.x86_64 already installed and latest  versionno package libxm12-devel available. package libjpeg-turbo-devel-1.2.1-3.el6_5.x86_64 already installed and latest  Versionpackage libjpeg-turbo-devel-1.2.1-3.el6_5.x86_64 already installed and latest  versionno package libiconv-devel available. Nothing to do

As seen from the above results, only libiconv-devel This package is satisfied with the installation, because the default Yum source does not have this package, and the installation is later compiled.

Of course you can either one of the Yum install or manually compile the installation through the source files, this method is too cumbersome, after all, efficiency first.

Install the Libiconv library that Yum cannot install.

This article is from the "Sandshell" blog, make sure to keep this source http://sandshell.blog.51cto.com/9055959/1958843

PHP Service Installation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.