centos7.0 manually compiling the lamp environment

Source: Internet
Author: User

First create a new user Lamper, and add the Sodu permission two methods:Is isn't in the sudoers file resolved (EXT)

XX is not in the sudoers file problem solved "reprint"

Then download and install APR 1.5.1, Apr-util 1.5.4, Pcre
wget http://ftp.cuhk.edu.hk/pub/packages/apache.org////http ftp.cuhk.edu.hk/pub/packages/apache.org//apr/apr-1.5.1.tar.gzftp://ftp.csx.cam.ac.uk/pub/software/ Programming/pcre/pcre-8.36.tar.gz

You need to specify the APR path manually when compiling Apr-util

./configure --with-apr=/usr/local/apr/bin

By default, Apr and Apr-util are installed in the/usr/local/apr/lib/

Installing Apache HTTPD

[Email protected] httpd-2.4.10]$/configure --enable-so
[[email protected] httpd-2.4.10]$ make
[[email protected] httpd-2.4.10]$sudo make install

The default Apache is installed in the/usr/local/apache2/

Compiling and installing PHP

./configure --with-apxs2=/usr/local/apache2/bin/apxs--with-mysql

centos7.0 manually compiling the lamp environment

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.