Study notes Centos7 Lamp job

Source: Internet
Author: User

Vhost1:pma.stu55.com, PhpMyAdmin, while providing HTTPS services;
Vhost2:wp.stu55.com, WordPress
Vhost3:dz.stu55.com, Discuz


Install httpd PHP mariadb


Start httpd First

650) this.width=650; "title=" Image 7.png "alt=" wkiom1ycew2i5iemaaay6hdhmt4141.jpg "src=" http://s3.51cto.com/wyfs02/M00 /73/a3/wkiom1ycew2i5iemaaay6hdhmt4141.jpg "/>

Check if the process is started, listening on port 80

650) this.width=650; "title=" Image 8.png "alt=" wkiol1ycefkx0c70aahlbnuxxtq800.jpg "src=" http://s3.51cto.com/wyfs02/M02 /73/a0/wkiol1ycefkx0c70aahlbnuxxtq800.jpg "/>650) this.width=650;" title= "Image 9.png" alt= " Wkiom1ycejowj8kzaaeearawwcy656.jpg "src=" http://s3.51cto.com/wyfs02/M01/73/A3/ Wkiom1ycejowj8kzaaeearawwcy656.jpg "/>http-m See if these two dynamic modules are loaded

650) this.width=650; "title=" Image 2.png "alt=" wkiom1ycdpyjojytaaazru--moq302.jpg "src=" http://s3.51cto.com/wyfs02/M02 /73/a3/wkiom1ycdpyjojytaaazru--moq302.jpg "/>

If both of these instructions are loaded, the PHP module has started and identifies files ending in PHP

Create a Directory

650) this.width=650; "title=" Image 5.png "alt=" wkiol1yceq6b3tikaacuiw7s2qq732.jpg "src=" http://s3.51cto.com/wyfs02/M01 /73/a0/wkiol1yceq6b3tikaacuiw7s2qq732.jpg "/>

First comment out the host in the/etc/httpd/conf/httpd.conf

650) this.width=650; "title=" Image 11.png "alt=" wkiom1ycit7dwvntaabmcsuur5u557.jpg "src=" http://s3.51cto.com/wyfs02/ M01/73/a3/wkiom1ycit7dwvntaabmcsuur5u557.jpg "/>

Creating a virtual host httpd will actively read all files ending in conf/etc/httpd/conf.d/directory

FQDN-based no longer requires namevirtualhost directives

650) this.width=650; "title=" Image 10.png "alt=" wkiom1ycfksrpjeyaacdhsmyq_y504.jpg "src=" http://s3.51cto.com/wyfs02/ M00/73/a3/wkiom1ycfksrpjeyaacdhsmyq_y504.jpg "/>

PhpMyAdmin is a PHP based on the Web-base schema on the site host. MySQL Database management tool that allows administrators to manage MySQL databases with a web interface.

Download phpMyAdmin on official website to extract

650) this.width=650; "title=" Image 12.png "alt=" wkiom1ycjuxjiyupaacmvjj_jze939.jpg "src=" http://s3.51cto.com/wyfs02/ M00/73/a4/wkiom1ycjuxjiyupaacmvjj_jze939.jpg "/>

Unzip the file to/vhost/vhost1

650) this.width=650; "title=" Image 13.png "alt=" wkiol1ycldfw-lpraabhht45yeo031.jpg "src=" http://s3.51cto.com/wyfs02/ M01/73/a1/wkiol1ycldfw-lpraabhht45yeo031.jpg "/>

650) this.width=650; "title=" Image 14.png "alt=" wkiol1ycliiden5iaabnjoo2cm4433.jpg "src=" http://s3.51cto.com/wyfs02/ M02/73/a1/wkiol1ycliiden5iaabnjoo2cm4433.jpg "/>

Renaming a configuration file

650) this.width=650; "title=" Image 15.png "alt=" wkiol1yclrpqjxb-aabere__mek292.jpg "src=" http://s3.51cto.com/wyfs02/ M00/73/a1/wkiol1yclrpqjxb-aabere__mek292.jpg "/>

Need to install Yum install php-mbstring

Enter the database to create the account password can be landed 650) this.width=650; "title=" Image 17.png "style=" float:left; alt= wkiol1ycl8_ Svjr7aagqwby5jjg365.jpg "src=" Http://s3.51cto.com/wyfs02/M01/73/A1/wKioL1YCl8_SvJR7AAGQwbY5jJg365.jpg "/>

650) this.width=650; "title=" Image 18.png "alt=" wkiol1ycmfjscxayaaomjxgjax0147.jpg "src=" http://s3.51cto.com/wyfs02/ M00/73/a1/wkiol1ycmfjscxayaaomjxgjax0147.jpg "/>

HTTPS Service

Create a private CA

650) this.width=650; "title=" Image 1.png "alt=" wkiol1yd7t3g5ae8aaci1-grbmm647.jpg "src=" http://s3.51cto.com/wyfs02/M01 /73/ae/wkiol1yd7t3g5ae8aaci1-grbmm647.jpg "/>

Generate key Pair

650) this.width=650; "title=" Image 2.png "alt=" wkiom1yd7cgap7riaacyarnrllk919.jpg "src=" http://s3.51cto.com/wyfs02/M00 /73/b1/wkiom1yd7cgap7riaacyarnrllk919.jpg "/>650) this.width=650;" title= "Image 3.png" alt= " Wkiol1yd7hhy9dwgaabafxczh7a694.jpg "src=" http://s3.51cto.com/wyfs02/M00/73/AE/ Wkiol1yd7hhy9dwgaabafxczh7a694.jpg "/>

650) this.width=650; "title=" Image 4.png "alt=" wkiom1yd722xkyfhaajql8z3nk4403.jpg "src=" http://s3.51cto.com/wyfs02/M00 /73/b1/wkiom1yd722xkyfhaajql8z3nk4403.jpg "/>

Private CA Creation Complete


Generate a certificate signing request on the Web server

650) this.width=650; "title=" Image 6.png "alt=" wkiol1yd8qzxtpraaampkft8e_g868.jpg "src=" http://s3.51cto.com/wyfs02/M01 /73/ae/wkiol1yd8qzxtpraaampkft8e_g868.jpg "/>


To pass a request file to a private CA

The CA is signed and passed to the Web server

650) this.width=650; "title=" Image 7.png "alt=" wkiol1yd8vsql97taali4g8lytw488.jpg "src=" http://s3.51cto.com/wyfs02/M00 /73/ae/wkiol1yd8vsql97taali4g8lytw488.jpg "/>

Configure the Web to use the HTTPS service

The first thing to check

650) this.width=650; "title=" Image 8.png "alt=" wkiom1yd9b6q_w1daabrmtsejmq120.jpg "src=" http://s3.51cto.com/wyfs02/M02 /73/b1/wkiom1yd9b6q_w1daabrmtsejmq120.jpg "/>650) this.width=650;" title= "Image 10.png" alt= " Wkiom1yd9i7jpttgaaayqr-s5ai938.jpg "src=" http://s3.51cto.com/wyfs02/M00/73/B1/ Wkiom1yd9i7jpttgaaayqr-s5ai938.jpg "/>

Edit/etc/httpd/conf.d/ssl.conf Modify the path where the certificate and key are stored

650) this.width=650; "title=" Image 11.png "alt=" wkiol1yd9paqok5iaafysgg6jry913.jpg "src=" http://s3.51cto.com/wyfs02/ M01/73/ae/wkiol1yd9paqok5iaafysgg6jry913.jpg "/>

650) this.width=650; "title=" Image 12.png "alt=" wkiol1yediwwoascaacs8fwgeyy310.jpg "src=" http://s3.51cto.com/wyfs02/ M02/73/af/wkiol1yediwwoascaacs8fwgeyy310.jpg "/>

Restart the service to


Vhost2:wp.stu55.com, WordPress


Wp.stu55.com

Basically consistent with the above settings

WordPress First unzip the changes

650) this.width=650; "title=" Image 3.png "src=" http://s3.51cto.com/wyfs02/M00/73/EA/ Wkiol1yklsndla26aaa15eahlwo355.jpg "alt=" Wkiol1yklsndla26aaa15eahlwo355.jpg "/>

650) this.width=650; "title=" Image 2.png "src=" http://s3.51cto.com/wyfs02/M01/73/ED/wKiom1YKLS2iEu_ 5aagmb3mgzyi204.jpg "alt=" Wkiom1ykls2ieu_5aagmb3mgzyi204.jpg "/>

650) this.width=650; "title=" Image 4.png "src=" http://s3.51cto.com/wyfs02/M02/73/ED/ Wkiom1yklnftwpovaadma5xrysk405.jpg "alt=" Wkiom1yklnftwpovaadma5xrysk405.jpg "/>

650) this.width=650; "title=" Image 5.png "src=" http://s3.51cto.com/wyfs02/M00/73/ED/ Wkiom1yklphb8yndaacxfoaymsg325.jpg "alt=" Wkiom1yklphb8yndaacxfoaymsg325.jpg "/>

650) this.width=650; "title=" Image 8.png "src=" http://s3.51cto.com/wyfs02/M00/73/EB/ Wkiol1yknupctkklaafkdokz-bi623.jpg "alt=" wkiol1yknupctkklaafkdokz-bi623.jpg "/>650" this.width=650; "title=" image 10.png "src=" http://s3.51cto.com/wyfs02/M02/73/EE/wKiom1YKNVaja58kAAGJlKOaJ30971.jpg "alt=" Wkiom1yknvaja58kaagjlkoaj30971.jpg "/>

Vhost3:dz.stu55.com, Discuz

Unzip the Discuz

Direct access to unload/intall/index.php


650) this.width=650; "title=" Image 11.png "src=" http://s3.51cto.com/wyfs02/M01/73/EF/ Wkiom1ykpijzcqshaaqh18wfq2i684.jpg "alt=" Wkiom1ykpijzcqshaaqh18wfq2i684.jpg "/>

650) this.width=650; "title=" Image 12.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M01/73/EF/ Wkiom1ykpkfdioddaamq_r2dv8c360.jpg "alt=" Wkiom1ykpkfdioddaamq_r2dv8c360.jpg "/>

650) this.width=650; "title=" Image 13.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M01/73/ED/ Wkiol1ykpllxiyehaafq6j2jfb8719.jpg "alt=" Wkiol1ykpllxiyehaafq6j2jfb8719.jpg "/>

650) this.width=650; "title=" Image 14.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M02/73/EF/ Wkiom1ykpkjg2u3aaaf5zwod6uu104.jpg "alt=" Wkiom1ykpkjg2u3aaaf5zwod6uu104.jpg "/>

650) this.width=650; "title=" Image 15.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M02/73/ED/ Wkiol1ykploqqhqvaajmkavryuu478.jpg "alt=" Wkiol1ykploqqhqvaajmkavryuu478.jpg "/>

650) this.width=650; "title=" Image 16.png "src=" Http://s3.51cto.com/wyfs02/M00/73/ED/wKioL1YKPo_ Rxn9laakbfaxf4o8630.jpg "alt=" Wkiol1ykpo_rxn9laakbfaxf4o8630.jpg "/>

Learning note centos7 Lamp job

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.