Lamp compilation and installation coexist with nginx

Source: Internet
Author: User
Tags apache php
Lamp compilation and installation coexist with nginx 01 install php [lnmp compilation and installation] [1] on the top of/usr/local/path. This article describes lamp compilation and installation. Apache and nginx coexist. for apache php installation in/usr/02apache Installation 03 depends on two packages: apr, apr-util, and the resources are all in the ap... lamp compilation and installation coexist with nginx 01 install php [lnmp compilation and installation] [1] on the top of/usr/local/path. This article describes lamp compilation and installation. Apache and nginx coexist. for apache php installation in/usr/02apache Installation 03 relies on two packages: apr and apr-util. resources are available on the apache official website. 041. apr05tar xf apr-1.4.6.tar.bz206cd apr-1.4.607sudo. /configure -- help | less (you can view the help file) 08 sudo. /configure -- prefix =/usr/local/apr (specify the installation path) 09 sudo make10sudo make install11 122. apr-util13tar xf apr-util-1.5.2.tar.bz214 cd apr-util-1.5.215 sudo. /configure -- prefix =/usr/local/apr-util -- with-apr =/usr/local/apr16 (-- prefix specifies the installation path; -- with-apr specifies the installation path of apr, and apr-util depends on apr) 17 sudo make & make install18 193.ap Pache20 starts to compile 21tar xf httpd-2.4.4.tar.bz222cd httpd-2.4.423sudo. /configure -- prefix =/usr/local/apache -- sysconfdir =/etc/httpd -- enable-so -- enable-ssl -- enable-cgi -- enable-cgid -- enable-modules = most -- enable-MoD-shared = most -- enable-rewrite -- with-zlib -- with-pcre -- with-apr =/usr/local/apr -- with-apr-util =/usr /local/apr-util -- enable-mpms-shared = all -- with-mpm = event24 -- sysconfdir =/etc/httpd: configuration File installation location 25 -- enable-so: supports dynamic sharing modules. without this module, PHP cannot work with apache 26 -- enable-ssl: enable ssl27 -- enable-cgi: support for cgi28 -- enable-rewrite: Support for URL rewriting 29 -- with-zlib: compression library, saving bandwidth 30 when spreading on the Internet -- with-apr =/usr/local/apr: specify apr path 31 -- with-apr-util =/usr/local/apr-util: specify apr-util path 32 -- enable-mpms-shared = all support multi-channel processing module 33 -- with-mpm = event set default module 34 sudo make35sudo make install36 37 start apache38sudo/usr/ local/apache/bin/apachectl start39 40my SQL installation 41 is the same as the lnmp installation method on top, which is binary installation. 42 43php install 44 dependency File: libbz2 libfreetype6-dev libltdl-dev libxml2-dev libpng12-dev libjpeg-dev libmcrypt-dev libcurl4-openssl-dev45 build configuration: 46 sudo. /configure -- prefix =/usr/php -- with-config-file-path =/usr/php/etc -- with-config-file-scan-dir =/usr/php/ lib/php -- with-mcrypt -- with-jpeg-dir -- with-png-dir -- with-mysql =/usr/local/mysql -- with-pdo-mysql =/usr/ local/mysql/bin/mysql_config -- with-mysqli =/usr/local /Mysql/bin/mysql_config -- with-openssl -- with-zlib -- with-freetype-dir -- enable-mbstring -- enable-sockets -- with-curl -- with-gd -- with-iconv -dir -- with-pcre-dir -- with-xmlrpc -- enable-ftp -- enable-gd-jis-conv -- enable-gd-native-ttf -- enable-soap -- enable-mod -charset -- enable-mysqlnd -- enable-shmop -- enable-zip -- enable-static -- enable-debug -- enable-exif -- enable-bcmath -- enable-fpm -- with-apxs2 =/ Usr/local/apache/bin/apxs -- with-bz2 -- enable-maintainer-zts47sudo make48sudo make install49sudo cp php. ini-development/usr/php/etc/php. ini50sudo useradd -- no-create-home -- shell =/sbin/nologin www51cd/usr/php/etc52sudo cp php-fpm.conf.default php-fpm.conf53sudo vim php-fpm.conf (modify user = www group = www) 54 55 561. related question 57apache starts 581. AH00558: httpd: cocould not reliably determine the server's fully qual Ified domain name, using 127.0.1.1. set the 'servername' directive globally to suppress this message59 60 61 62 63 some content is captured from jqhoudun's [blog] [2], including apr, apr-util, apache compilation and installation, php configuration part of the compilation configuration.
Related Article

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.