PHP assembly steps and operations

Source: Internet
Author: User
Install PHP step and Operation 1. configure pcre ?. /Configure -- prefix =/usr/local/pcre? Make & amp; makeinstall2. configure apr ?. /Configure -- prefix =/install PHP

1. configure pcre
? ./Configure -- prefix =/usr/local/pcre
? Make & make install

2. configure apr
? ./Configure -- prefix =/usr/local/apr
? Make & make install

3. configure apr-util
? ./Configure -- prefix =/usr/local/apr-util
? Make & make install

4. configure apache httpd
? . /Configure -- prefix =/usr/local/apache2 -- with-pcre =/usr/local/pcre -- with-apr =/usr/local/apr -- with-apr-util = /usr/local/apr-util -- enable-load-all-modules
? Make & make install
? Open httpd. conf and change ServerName to 127.0.0.1.
? Start the service httpd-k start or httpd-k restart
?
5. configure libiconv
?. /Configure -- prefix =/usr/local/libiconv
? Make & make install

6. configure php

? Yum install libtool-ltdl-devel
? Modify the libtool file, add/usr/lib64 (or wherever yours is) to sys_lib_search_path_spec AND sys_lib_dlsearch_path_spec
? . /Configure -- prefix =/usr/local/php5 -- with-apxs2 =/usr/local/apache2/bin/apxs -- with-iconv =/usr/local/libiconv -- with-freetype- dir -- with-jpeg-dir -- with-png-dir -- with-zlib -- with-curl -- with-gd -- enable-gd-native-ttf -- with-apxs2 =/usr/local /apache2/bin/apxs -- enable-sockets

? Make & make install

7. modify parameters of related configuration files

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.