In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Apache,php,mariadb needs to be installed
Install Apache
Yum install-y httpd
Apache starts and sets self-boot
Systemctl start httpd.service
Systemctl enable httpd.service
Install PHP and its services
Yum-y install php php-gd php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-snmp php-soap curl curl-devel php-mysql
Install the MariaDB database
Yum-y install mariadb-server mariadb-client
Note: delete mariadb-client if you report an error
Mariadb starts and sets self-boot
Systemctl start mariadb.service
Systemctl enable mariadb.service
Set the password for the database root user
Log in as mysqladmin-u root password / / as root. Enter your password after entering enter.
Log into the database
Enter the set password after mysql-u root-p / / enter
After logging in to the database, you can create other users and grant full authority
Grant all privileges on mysql.* to user name @ localhost identified by 'username .me'; / / modify the user name that the user wants to create for himself
Note: don't leave out the semicolon ";"
Update mysql.user set password=password ('password') where User= "username" and Host= "localhost"; / / set the password for the newly created user
Flush privileges; / / Update the database
Exit; / / exit the database
Firewall opens port 80
Systemctl start firewalld.service
Firewall-cmd-zone=public-add-port=80/tcp-permanent
Firewall-cmd-- reload / / update firewall rules
Ftp uploads wordpress files
The Building tutorial of ftp: https://www.jb51.net/article/135565.htm
Decompress wordpress
Tar-zxvf wordpress-4.7.4-zh_CN.tar.gz / / should be extracted to / root/wordpress directory by default
Cp-fr / root/wordpress/* / var/www/html / / copy all wordpress files to the apache root directory
The browser enters the server's public network ip/ domain name and begins to install wordpress
Note: the database name is mysql, and the username and password are the username and password just created in mariadb. The prefix of wp_ table should be modified, and "_" should not be deleted.
After submission, you will be prompted that you cannot write to wp-config.php. You need to create a new one, and then copy the content to it.
Touch / var/www/html/wp-config.php
Vim / var/www/html/wp-config.php
Copy all the content in, save and exit, click submit, and start setting the site title and background user name and password. I won't repeat it.
Set site permissions
Chown-R apache:apache/var/www/html/ failure to change permissions will cause themes and plug-ins not to be installed
Chown root:root / var/www/html/wp-config.php / / for security reasons
Modify the upper limit for uploading wordpress files and the time limit for executing scripts:
Vim / etc/php.ini
Find upload_max_filesize=2M and modify it to upload_max_filesize=20M. 20m means a maximum of 20m files can be uploaded.
Find post_max_size = 8m and modify it to post_max_size = 20m
Find max_execution_time=30 and change it to max_execution_time=0. The 0 here means there is no time limit.
Delete readme and license files in the root directory of the website
Rm-fr / var/www/html/readme.html
Rm-fr / var/www/html/license.txt
Delete the xmlrpc.php in the root directory and back up before deletion (some topics will make errors if deleted)
Cp-fr / var/www/html/xmlrpc.php / root
Rm-fr / var/www/html/xmlrpc.php
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.