The Golden Combination php+mysql Linux website construction

Source: Internet
Author: User
Tags auth web services mysql database phpmyadmin microsoft iis

Linux with its safe and reliable, code open, Low-cost and rich Third-party software, by the site designers of all ages, which apache+mysql+php is eye-catching, coupled with Mod―auth―mysql, phpMyAdmin and other modules support, So that the site developers are more powerful. Apache is a Web services program, features similar to the Microsoft IIS Information Server, MySQL is a multi-user, multi-threaded database servers, it is known for ease of use, even if you do not understand the database is not a problem, but you must not worry about its functional and security issues PHP is a new programming language, syntax similar to the C language, the function is very strong; phpMyAdmin is a free software written in PHP for MySQL database management; Mod―auth―mysql is a third-party module used by Apache for user authentication.

First, software acquisition

Apache―1.3.6.tar.gz

Can be downloaded from http://www.apache.org.

Php-3.0.12.tar.gz

Can be downloaded from the http://www.php.net, and this is the "home" of PHP.

Mysql-3.22.27.tar.gz

Can be downloaded from http://www.mysql.com.

Mod―auth―mysql-2.20.tar.gz

Can be downloaded from http://bourbon.netvision.net.il/mysql/mod―auth―mysql/.

Phpmyadmin―2.0.5.tar.gz

Can be downloaded from http://www.htmlwizard.net/phpMyAdmin/.

Note: All of the above are source code, not rpm packages.

Second, the Software installation

Log in as root and copy all of the above files to/tmp.

1. Install MySQL

  #tar -zvxf mysql-3.22.27.tar.gz(产生mysql-3.22.27目录)
  
  #mv mysql-3.22.27 /usr/local/mysql
  
  #cd /usr/local/mysql
  
  #./configure --prefix=/usr/local/mysql(把MySQL的安装目录定为/usr/local/mysql)
  
  #make ;make install

2. Install Apache, PHP3, Mod―auth―mysql

Since PHP3 and Mod―auth―mysql are compiled as two of Apache modules, Apache compiles with them.

  #tar xvzf apache―1.3.6.tar.gz (产生apache―1.3.6目录)
  
  #tar xvzf php-3.0.12.tar.gz (产生php-3.0.12目录)
  
  #tar xzvf mod―auth―mysql-2.20.tar.gz (产生mod―auth―mysql-2.20目录)
  
  #cd apache―1.3.6
  
  #./configure --prefix=/usr/local/apache (把Apache的安装目录定为/usr/local/apache)
  
  #cd ../php-3.0.12
  
  #./configure --with-mysql=/usr/local/mysql
--with-apache=../apache―1.3.6 --enable-track-vars

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.