Configuration record of apache + php in linux

Source: Internet
Author: User
Tags openldap

Linux apache + php setup configuration record Chapter 1 Environment Description 1st System Description Centos 1.1 (minimal installation) 1.2 Release chapter 2nd Apache build description 2.1 install dependency package yum install make openldap-devel ntp vim-enhanced gcc-c ++ gcc-g77 flex bison autoconf bzip2-devel ncurses-devel openssl-devel libtool * zlib-devel libxml2-devel libjpeg-devel libpng -Devel libtiff-devel fontconfig-devel freetype-devel libXpm-devel gettext-devel curl pam-devel openldap-devel e2fsprogs-devel krb5-devel libidn-devel-y2.2 install aprtar-zxvf apr-1.4.2.tar.gz cd apr-1.4.2.tar.gz. /configure -- prefix =/usr/local/aprmake & make install2.3 install apr-utiltar-zxvf apr-util-1.3.10.tar.gzcd. /configure \ -- prefix =/usr/local/apr-util \ -- wi Th-apr =/usr/local/apr make & make install2.4 install pcretar-zxvf pcre-8.10.tar.gzcd pcre-8.10. /configure -- prefix =/usr/local/pcremake & make install2.5 install apache. /configure \ -- prefix =/usr/local/apache \ -- with-apr-util =/usr/local/apr-util/\ -- with-pcre =/usr/local/ pcre/\ -- with-apr =/usr/local/apr/make & make install2.6 configuration file description/usr/local/apache/conf/httpd. confDocumentRoot "/usr/local/apache/htdocs" can be modified Configure the project running directory. Start file/usr/local/apache/bin/apachectl chapter 3rd Php build instructions 3.1 install libmcrypttar xvf libmcrypt-2.5.8.tar.gz. /configuremake & make install3.2 install mhashtar xvf mhash-0.9.9.9.tar.gzcd mhash-0.9.9.9. /configure make & make install3.3 install php. /configure -- prefix =/usr/local/php \ -- with-apxs2 =/usr/local/apache/bin/apxs \ -- with-config-file-path =/usr/local/ php/etc make & make install cp php. ini-production/usr/local/php/etc/ Php. ini3.4 error message modify description configure: error: Cannot find ldap libraries in/usr/libln-s/usr/lib64/libldap */usr/lib/configure: error: libjpeg. (a | so) not found. ln-s/usr/lib64/libjpeg. so/usr/lib/libjpeg. soconfigure: error: libpng. (a | so) not found. ln-s/usr/lib64/libpng. so/usr/lib/Chapter 4th modify configuration and test 4.1 modify apache configuration file support php modify DirectoryIndex index.html to DirectoryIndex index.html index. php and add AddType application/x-h Ttpd-php. php4.2 test php allows you to create and test the php page test. php, which is stored in the home directory of the website. <? Phpphpinfo ();?> After the apache service is restarted, visit http: // ip/test. php to view the site, which indicates that php has been built;

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.