Installing the PHP Software

Source: Internet
Author: User
Tags php software
Installing the PHP Software

①TAR-ZXVF php-5.2.5.tar.gz

②CD php-5.2.5

③ Configuring installation Information with configure (most important)

./configure

--prefix=/usr/local/php

--WITH-APXS2=/USR/LOCAL/APACHE/BIN/APXS: Specify the Apache directory

--with-mysql=/usr/local/mysql???????? : Specify the MySQL directory

④make

⑤make Install

After the installation is complete, in the virtual host Htdocs directory, write PHP code

Why is the current program not running?

A: Because PHP support has not yet been added to Apache.

⑥ set Apache to support PHP run

See if 53 is loaded into the PHP module

If you do not have this line of code, you must reset Apache and PHP, and add the following code on line 310:

Remember: After we modify the configuration file, we must reset the Apache server

Installing the PHP Software

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.