Linux Deployment Network System

Source: Internet
Author: User
Tags fpm install php string find symlink fully qualified domain name

Basic Environment

Installing the Epel source


[Email protected] ~]# yum-y install Epel-release


Disable firewall


[Email protected] ~]# Systemctl stop Firewalld
[Email protected] ~]# systemctl disable FIREWALLD


Turn off SELinux

Temporarily closed:
Setenforce 0
Permanently closed:
Vim/etc/sysconfig/selinux
Selinux=disabled

Lamp environment

1. Install the relevant package

[email protected] ~]# Yum-~]# yum-y install php php-cli php-curl php-fpm php-intl php-mcrypt php-mysql php-gd php-mbstringphp-xml php-~]# yum-y install mariadb-~]# yum-y Install Mod_xsendfile

2. Configure Apache

[[email protected] ~]# systemctl start httpd[[email protected] ~]# systemctl enable httpdcreated symlink from/etc/systemd /system/multi-user.target.wants/httpd.service to/usr/lib/systemd/system/httpd.service.10/ 15 Browser Test Welcome page 192.168.119.126[[email Protected] ~]# rm-rf/etc/httpd/conf.d/welcome.conf[[email protected] ~]# vim/var/ Www/html/index.htmlwelcome to Edusoho!

3. Configure MySQL

[[email protected] ~]# systemctl start mariadb[[email protected] ~]# systemctl enable mariadbcreated symlink From/etc/sys Temd/system/multi-user.target.wants/mariadb.service To/usr/lib/systemd/system/mariadb.service. [[email protected] ~]# mysql_secure_installationyyyyy[[email protected] ~]# mysql-uroot-pmariadb [(none)]> Create Da Tabase Edusoho; Query OK, 1 row Affected (0.00 sec) MariaDB [(None)]> show databases;+--------------------+| Database |+--------------------+| Information_schema | | Edusoho | | MySQL | | Performance_schema |+--------------------+4 rows in Set (0.00 sec)

4. Configure PHP

[Email protected] ~]# Vim/etc/php.ini
/string Find and modify
Post_max_size = 1024M
Memory_limit = 1024M
Upload_max_filesize = 1024M
Date.timezone = Asia/shanghai
[Email protected] ~]# vim/etc/php-fpm.d/www.conf
Listen.owner = Apache
Listen.group = Apache
Listen.mode = 0666
[Email protected] web]# systemctl start php-fpm
[Email protected] web]# Systemctl enable PHP-FPM
11/15
[Email protected] ~]# cd/var/www/html/
[[email protected] html]# ls
Index.html
[Email protected] html]# vim index.php
<?php
Phpinfo ()
?>
Enter the IP address of this computer in the browser/index.php, the info page appears to indicate that the PHP installation was successful.
Otherwise, restart the httpd service, PHP-FPM service
Lamp environment OK ....

Edusoho deployment

1.download

[[email protected] ~]# wget http://download.edusoho.com/edusoho-7.5.12.tar.gz[[email protected] desktop]# tar XF Edusoho-7.5.12.tar.gz[[email protected]host desktop]# mv Edusoho/var/www/html/[[email protected] ~]# chown-r apache.apache/var/www/html/edusoho/

2. Deployment

[Email protected] ~]# vim/etc/httpd/conf.d/edusoho.conf

<virtualhost *:80>servername www.xiaochen.orgdocumentroot/var/www/html/edusoho/web</virtualhost>< Directory "/var/www/html/edusoho/web" >allowoverride allrequire all granted</directory>

Check configuration file for syntax errors

[[email protected] ~]# httpd-tah00558:httpd:could not reliably determine the server ' s fully qualified domain name, usin G:: 1. Set the ' ServerName ' directive globally to suppress this messagesyntax ok[[email protected] ~]# systemctl restart httpd

3. Access test and install Web site

AccessKey:B8V2t1Lu8d983R7Wz3oSMfigGvYY3hTESecretKey:pOHSPsnXGx6KoeGYh5Q4l9k1Ej0IATn0

  

Linux Deployment Network System

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.