CentOS6.3 Compile and install lamp (1): Ready to work

Source: Internet
Author: User
Tags automake

Uninstalling the AMP software installed with yum or rpm

#在编译安装lamp之前, first uninstall the existing RPM package.

RPM-E httpdrpm-e mysqlrpm-e phpyum-y Remove httpdyum-y Remove mysql-server mysqlyum-y remove phpyum-y Remove php-my Sqlyum-y Install Yum-fastestmirror

Disable SELinux

#selinux可能会致使编译安装失败, let's disable it first.

Sed-i ' s/selinux=enforcing/selinux=disabled/g '/etc/selinux/config  #永久禁用, requires a reboot to take effect.

Or

Setenforce 0  #临时禁用, no restart required (recommended).

Yum Install the necessary tools

#安装编译工具gcc gcc-c++make automake autoconf kernel-devel, the dependencies required to install PHP, such as Libxml2-devel openssl-devel curl-devel libjpeg-devel Libpng-devel and so on.

Yum-y install gcc gcc-c++ kernel-devel NTP vim-enhanced Flex Bison autoconf make Automake bzip2-devel ncurses-devel zlib- Devel libjpeg-devel libpng-devel libtiff-devel freetype-devel libxpm-devel gettext-devel pam-devel  libtool Libtool-ltdl OpenSSL openssl-devel fontconfig-devel libxml2-devel curl-devel  libicu libicu-devel libmcrypt Libmcrypt-devel libmhash libmhash-devel pcre-devel libtool-libs gd file patch mlocate diffutils readline-devel glibc-deve L Glib2-devel Libcap-devel

Download the required source code

The source package is placed in the " Baidu Cloud Disk ": Enter the download page

The required source code package:

/usr/local/src/apache-2.2.25/httpd-2.2.25.tar.gz
/usr/local/src/mysql-5.5.25/cmake-2.8.8.tar.gz
/usr/local/src/mysql-5.5.25/mysql-5.5.25.tar.gz
/usr/local/src/php-5.3.27/libiconv-1.14.tar.gz
/usr/local/src/php-5.3.27/libmcrypt-2.5.8.tar.gz
/usr/local/src/php-5.3.27/mcrypt-2.6.8.tar.gz
/usr/local/src/php-5.3.27/mhash-0.9.9.9.tar.gz
/usr/local/src/php-5.3.27/php-5.3.27.tar.gz

The downloaded source package is uniformly placed under the /usr/local/src/ directory. (Download the Windows platform and upload it to the Linux server's/usr/local/src/directory using the FTP tool)

Unpack the package:

[Email protected] ~]# cd/usr/local/src/apache-2.2.25[[email protected] src]# tar-xzvf./httpd-2.2.25.tar.gz    # Other decompression can be ...

Extended reading:

centos6.x Compile and install lamp (1): Ready to work

centos6.x Compile and install lamp (2): Compile and install Apache2.2.25

centos6.x Compile and install lamp (2): Compile and install Apache2.4.6

centos6.x Compile and install lamp (3): Compile and install MySQL5.5.25

centos6.x Compile and install lamp (4): Compile and install PHP5.2.17

centos6.x Compile and install lamp (4): Compile and install PHP5.3.27

PHP5 do not recompile, how do I install a self-installed extension, such as a soap extension?

CentOS6.3 Compile and install lamp (1): Ready to work

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.