Build PHP Environment under Linux

Source: Internet
Author: User
Tags apache download php download php mysql
The simplest and most brutal approach: yum install php

will automatically download dependent packages, including Apache, default directory/var/www/html;

If you need to install MySQL you need to use yum-y install httpd php mysql mysql-server php-mysql

Start command: Service httpd start

If a firewall is required to configure the port: Vi/etc/sysconfig/iptables

Reference: http://blog.csdn.net/phpboy005/article/details/4352436

Custom configuration:

Apr and apr-util Download Address http://apr.apache.org/download.cgi
Pcre Download Address http://www.pcre.org/
LIBXML2 Download Address http://www.linuxfromscratch.org/blfs/view/svn/general/libxml2.html
PHP Download Address Http://php.net/get/php-5.5.30.tar.gz/from/a/mirror
Apache Download Address http://httpd.apache.org/download.cgi

Installation process is more, but more introduction, reference: http://www.2cto.com/kf/201505/401216.html

Note: Download pcre do not download pcre2, download response time can use the Thunderbolt copy URL to download, installation LIBXML2 error , should be an operating system problem.

The above describes the Linux build PHP environment, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

  • 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.