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

6 steps for yum to install the php environment

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article will explain in detail the six steps of installing yum php environment for you. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

Yum installs php environment steps: 1, install nginx;2, install php;3, edit www.conf configuration file; 4, start php-fpm and nginx;5, edit php.ini configuration file, turn on file upload function; 6, configure database.

The specific steps are as follows:

Step one:

Sudo rpm-Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpmyum install php php-fpm php-mysql nginx mariadb-server-yyum install php-gd*-y

Step 2:

Vi / etc/php-fpm.d/www.conf

Modify

Step 3:

Systemctl start php-fpmsystemctl start nginx

Modify php.ini if you need to activate the file upload function

Vi / etc/php.iniupload_max_filesize = 100m

Simple configuration database

Systemctl start mariadbmysql_secure_installationEnter current password for root (enter for none): # directly enter Set root password for the first time? [root] # whether to set the password for the root user, enter y and enter or enter New password: # set the password for the root user Re-enter new password: # enter the password you set again, Remove anonymous users? Do you want to delete anonymous users and enter Disallow root login remotely? Is it forbidden for root to log in remotely, enter, Remove test database and access to it? Do you want to delete test database and enter Reload privilege tables now? [Yzone] # whether to reload the permission table, enter

Root users support remote access

Grant all privileges on *. * to 'root'@'%' identified by' 123456' with grant option;flush privileges; the six steps for yum to install the php environment are here. I hope the above content can be helpful to you and learn more. If you think the article is good, you can share it for more people to see.

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

Servers

Wechat

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

12
Report