Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install LNMP+wordpress for Centos7

2025-02-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to install LNMP+wordpress in Centos7". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to install LNMP+wordpress in Centos7.

1. Install nginx

# yum install nginx# configuration file in / etc/nginx#systemctl start nginx# startup nginx#systemctl enable nginx.service # set to boot # systemctl status firewalld # check the firewall, if it is active (running), then # vim / etc/firewalld/zones/public.xml # in zone … # systemctl reload firewalld

Test: 114.215.172.90 is the public network ip address

two。 Install mysql (not mariadb)

# rpm-uvh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm#yum repolist enabled | grep "mysql.*-community.*" # yum-y install mysql-community-server#yum-y install mysql-community-server# installation Community Edition # systemctl start mysqld # launch mysql#mysql_secure_installation # mysql security installation, enter root password, all the way y

3. Install php

# yum install php-fpm php-mysql#systemctl start php-fpm# Boot php-fpm#systemctl enable php-fpm# setup Boot Boot # mkdir / var/www#chown-r apache:apache / var/www

Modify the configuration file of nginx: create a new wordpress.conf in the / etc/nginx/conf.d directory

Server {listen 8000 × # pass the php scripts to fastcgi server listening on 127.0.0.1:9000location ~\ .php$ {root / usr/www;fastcgi_pass 127.0.0.1Plus 9000 × fastcgival index index.php;fastcgi_param script_filename $document_root$fastcgi_script_name;include fastcgi_params;} # systemctl reload nginx

Create a phpinfo.php in the / usr/www directory

External access:

4. Install wordpress

From downloading wordpress-4.4.2-zh_cn.tar.gz, decompress to / usr/www

Create a wordpress database

# mysql-uroot-p#create database wordpress

Through access, and installation prompts to install, you need to add the mysql user name and password, and develop the wordpress-related user name and password, and then create successfully.

Access can be done, or you can click on the login on the page for page setup and other related management work.

At this point, I believe you have a deeper understanding of "Centos7 how to install LNMP+wordpress". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report