Wxzh001. For more information, see how to install and configure APACHE + PHP + MYSQL + SSL in LINUX (from Osso)

Source: Internet
Author: User
Tags website server

Author: herodong OICQ: 6678705
/* Lone Wolf: the original article is too big, more than 36 K. I choose to paste the important part, if you need the original can MAILTO: wolflx@263.net
Our goal is to install a web server that allows us to host multiple websites, some of which are security solutions for e-commerce, most websites are script-driven by connecting to a database server and extracting its data.
The tools required for this task are:
Apache-a website Server
Mod_SSL-A Secure Socket Layer (SSL) Module
OpenSSL-open source toolkit (required for mod_ssl)
RSARef-only for American users
MySQL-A Database Server
PHP-a scripting language
"Rome is a great path "...... Therefore, this is only one of the many configurations that meet our requirements. I chose this configuration because it is the simplest and fastest. The reason for choosing Mod_SSL/OpenSSL is that I have previous experience and is the fastest configuration and the easiest installation. To facilitate integration with Apache, I chose PHP and MySQL. Remember, Perl can do whatever you want, But PHP is simple and easy for any programmer who wants to learn it.
We hope that you will successfully achieve the following goals after finishing this simple guide.
Install and set the MySQL database server
Install and set up an Apache website server with SSL
Install and configure the PHP 4.0 Hypertext Preprocessor for server scripts
Create sample certificates for Apache SSL
This document assumes that you have installed the following software on your system.
Perl (preferably ver 5 +)
Gzip or gunzip
Gcc and GNU make
Preparation
Apache-http://www.apache.org
Mod_SSL-http://www.modssl.org
OpenSSL (SSL Toolbox)-http://www.openssl.org
PHP (scripting language)-http://www.php.net
MySQL (SQL database server)-http://www.mysql.com
Download the source code of all (tar files) to a temporary directory. Make sure you put them in a place with a lot of space ...... You should download them as root to avoid permission issues.
Our plan
Our plan is to first install the MySQL server and ensure it works, then we will install PHP and Mod_SSL, and finally we will install the Apache website server. After Apache is installed, we can test whether PHP and Mod_SSL support works.
MySQL source code installation (UNIX)
The basic command you must use to install and install MySQL source code distribution is (from the "tar" file ):
Use su to become the root user.
$ Su
Directly go to the directory where you have the tar file. (Use a temporary directory. Use/tmp/download/here /)

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.