Installation of linux+mysql+apache+php

Source: Internet
Author: User
Tags apache php mysql linux
As a result of the work, these days have been studying the installation of Linux+apache+php+mysql. Initially, Google search the next "Linux MYQSL Apache Php", search out the n more records installed articles, from the inside picked a few try to dress, The meaning of righteousness failed. With depressed. Online articles are copied to copy, it is not very meaningful. Later I went to PHP's official website www.php.net, find PHP Manual, according to the above steps, installation success.

Lesson: As far as possible from the source to seek solutions to the problem, such as the official website, the program with the Readme,install document.
Grasp the essence and seek the essence of computer science.

Here's how to write down my installation steps
Environment: Redhat FedoraCore3
apache_1.3.34 PHP-4.0.2
A few notes: This step does not guarantee that other versions can be installed successfully, for Apache-2 some different, see www.php.net
This step is the use of PHP to the DSO to install to the Apache, static installation slightly different
Steps:
TAR-ZXVF apache_1.3.34.tar.gz
CD apache_1.3.34
./configure--prefix=/usr/local/apache--enable-module=so
Make
Make install

TAR-ZXVF php-4.0.2.tar.gz
CD php-4.0.2
./configure--with-apxs=/usr/local/apache/bin/apxs
Make
Make install

CD apache_1.3.34
CP Php.ini-dist/usr/local/lib

Modify Apache's configuration file httpd.conf, add
AddType application/x-httpd-php. php

To reboot the Apache server

Writing Test Documents info.php
<?phpinfo ()?>

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.