LAMP installation note

Source: Internet
Author: User
LAMP installation note-Linux Enterprise Application-Linux server application information. The following is a detailed description. My release version is Debian 4 kernel: 2.6.18-5-k7

1) I installed MYSQL first because I think apache and php may have dependency problems, so I installed MYSQL first (after an article found online, it proves that I am right ), MYSQL installation mainly depends on the INSTALL file that comes with MYSQL (it will prompt you to add a user who starts MYSQL, this is due to security reasons .)

2) install apache2. (at first, I still don't know the differences between apache and apache2. I found someone who said that PHP is best used with apache2)

./Configure -- prefix =/opt/apache2 -- enable-modules = "all" -- enable-mod-shared = "all" -- enable-so -- enable-rewrite

This is all the parameters of my generation! After the installation, you can start apache with apachectl start under the root user. Then, you can directly enter your IP address in the browser to see if it can be used! If you cannot see "It works! "You have to check whether your apache has been started. If it has been started, you need to check the apache configuration file.

3) install PHP (I am prompted that the software libxml2 is not installed, and the software is downloaded online)

. /Configure -- prefix =/opt/php5 -- with-mysql =/opt/MySql/mysql-5.0.51a-linux-i686-icc-glibc23 -- with-apxs2 =/opt/apache2/bin/apxs -- with-libxml-dir =/opt libxml2-2.6.23

This is all the parameters of my generation!

Add a test. php file to the htdocs directory of apache and write:

Phpinfo ();
?>

Then, enter http: // 127.0.0.1/test. php In the browser to check whether something has appeared! If yes, PHP will be ready!

(Note: The main process of installing PHP is, of course, INSTALL)

Then you can put your website on!

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.