Study with me in linux 16

Source: Internet
Author: User
Learn about linux with me 16 -- Linux Enterprise Application-Linux server application information. The following is a detailed description. 1. In this lesson, we will learn how to configure a web server in apache, set up a php and mysql development environment, and add an ssl security protocol to ensure data transmission security.
First, go to http://httpd.apache.org/download.cgito download the latest version of apache2.2.4.
Unix Source: httpd-2.2.4.tar.gz [PGP] [MD5] We 'd better remember the md5 Verification Code, after the download of the software for testing, in case of your software errors, click [MD5] Here To See
[Root @ zy jishu] # md5sum httpd-2.0.59.tar.gz
35a4cebaa6b4548f9a48375ea9629c8f httpd-2.0.59.tar.gz
You can check whether your file is downloaded correctly.
2. [root @ zy jishu] # tar zxvf httpd-2.2.4.tar.gz unzip the file
[Root @ zy jishu] # cd httpd-2.2.4 to enter the Directory
[Root @ zy httpd-2.2.4] #./configure -- help | more View Script support
[Root @ zy httpd-2.2.4] #./configure -- sysconfdir =/etc -- enable-ssl -- enable-modules
-- Sysconfdir =/etc indicates to install the configuration file in the etc directory.
-- Enable-ssl activates the ssl security protocol for the security of web transmission
-- Enable-modules add this module for php later
Here I would like to introduce you to a few terms, ssl is the most widely used security communication protocol on the Internet, to ensure the security of data transmission between the server and client http://www.openssl.org you can download it here
No way, the moderator said that I sent 20 more posts to me, but it is better than nothing. So I am cutting corners, but I will continue to ensure the quality of the content only a few times, hope everyone supports
MODSSL
The ssl module of apache server software protects data in http Communication. It has been integrated into apache web server software since apache2.0.
Classic combination of dynamic websites
WindowsNT + iis + mssql + asp
Linux + apache + mysql + php
Depressed, I don't know how to install 2.2.4, so I always report an error. So I just installed 2.0.59 and it was successful. Maybe my download is wrong, the version is always stable. Please try it. Help me find the reason why it cannot be installed 2.2.4.
./After the configure check is successful, a makefire file will be created in the current directory. If the check fails, you cannot use the make command to compile the binary file.
[Root @ zy httpd-2.0.59] # make
[Root @ zy httpd-2.0.59] # make install
[Root @ zy root] #/usr/local/apache2/bin/apachectl start apache server
If you want to enable apache
[Root @ zy sbin] # vi/etc/rc. local
/Usr/local/apache2/bin/apachectl start add this sentence
Then you can use the website to test the http: // 192.168.1.144/my server address is this address.
[Root @ zy jishu] # lynx http: // localhost can also be tested like this
The default home page Directory is
[Root @ zy root] # more/usr/local/apache2/htdocs/index.html. zh-cn.gb2312
[Root @ zy htdocs] # netstat-tnlp check whether port 80 is occupied
Note that apache log files are not stored in/var/log.
[Root @ zy apache2] # tail/usr/local/apache2/logs/error_log logs are stored here
Now that apache is installed, We will install the mysql database.
Bytes

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.